Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.6 LoadError: cannot load such file -- etc (LoadError) #851

Closed
Justin-W opened this issue Feb 13, 2020 · 3 comments
Closed

v1.1.6 LoadError: cannot load such file -- etc (LoadError) #851

Justin-W opened this issue Feb 13, 2020 · 3 comments
Labels
question An user question, does not change the library.

Comments

@Justin-W
Copy link

v1.1.6 seems to have introduced a new code usage of the etc gem, but does not properly register it as a gem dependency, resulting in a runtime LoadError while attempting to install v1.1.6 via bundler.

FYI: Our gem depends on concurrent-ruby indirectly.

Error trace:

	14: from /usr/lib/ruby/gems/2.5.0/gems/azure_mgmt_network-0.17.4/lib/azure_mgmt_network.rb:5:in `<top (required)>'
	13: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	12: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	11: from /usr/lib/ruby/gems/2.5.0/gems/azure_mgmt_network-0.17.4/lib/2018-08-01/generated/azure_mgmt_network.rb:17:in `<top (required)>'
	10: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 9: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 8: from /usr/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent.rb:4:in `<top (required)>'
	 7: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 6: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 5: from /usr/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/configuration.rb:9:in `<top (required)>'
	 4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 3: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 2: from /usr/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/processor_counter.rb:1:in `<top (required)>'
	 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'  
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- etc (LoadError)

Env info

  • Operating system: linux
  • Ruby implementation: ruby 2.5.1p57 (2018-03-29 revision 63029)
  • concurrent-ruby version: 1.1.6 (1.1.5 was fine)
  • concurrent-ruby-ext installed: unknown
  • concurrent-ruby-edge used: unknown

cat /etc/os-release:
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.8.1
PRETTY_NAME="Alpine Linux v3.8"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"

@pitr-ch
Copy link
Member

pitr-ch commented Feb 16, 2020

As far as I know etc is part of the stdlib https://ruby-doc.org/stdlib-2.5.1/libdoc/etc/rdoc/index.html as a default gem. Could it be an issue with your environment?

@pitr-ch pitr-ch added the question An user question, does not change the library. label Feb 16, 2020
@Justin-W
Copy link
Author

As far as I know etc is part of the stdlib https://ruby-doc.org/stdlib-2.5.1/libdoc/etc/rdoc/index.html as a default gem. Could it be an issue with your environment?

After further investigation, it seems that the root cause of this issue is alpine linux issue #9216, where the ruby-etc package was excluded from the alpine linux v3.8 image despite the fact that etc has been a standard gem since ruby v2.5.0. Apparently, this issue caused problems for multiple ruby-based systems when built on top of alpine v3.8.

References:

My apologies for initially misattributing the issue as a ruby-concurrency issue. 😃

@pitr-ch
Copy link
Member

pitr-ch commented Feb 19, 2020

No problem. Thanks for the detailed followup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question An user question, does not change the library.
Projects
None yet
Development

No branches or pull requests

2 participants