I, [2023-01-17T16:40:30.885959 #1] INFO -- : done configuring web
I, [2023-01-17T16:40:30.886580 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERROR: Loading command: install (RuntimeError)
failed to get urandom
/usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `urandom'
/usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `singleton class'
/usr/local/lib/ruby/3.1.0/securerandom.rb:42:in `<module:SecureRandom>'
/usr/local/lib/ruby/3.1.0/securerandom.rb:41:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/resolv.rb:8:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/net/http.rb:25:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/rubygems/request.rb:2:in `<top (required)>'
/usr/local/lib/ruby/3.1.0/rubygems/remote_fetcher.rb:3:in `require_relative'
/usr/local/lib/ruby/3.1.0/rubygems/remote_fetcher.rb:3:in `<top (required)>'
/usr/local/lib/ruby/3.1.0/rubygems/spec_fetcher.rb:2:in `require_relative'
/usr/local/lib/ruby/3.1.0/rubygems/spec_fetcher.rb:2:in `<top (required)>'
/usr/local/lib/ruby/3.1.0/rubygems/dependency_installer.rb:6:in `require_relative'
/usr/local/lib/ruby/3.1.0/rubygems/dependency_installer.rb:6:in `<top (required)>'
/usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:4:in `require_relative'
/usr/local/lib/ruby/3.1.0/rubygems/commands/install_command.rb:4:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:228:in `load_and_instantiate'
/usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:135:in `[]'
/usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:201:in `find_command'
/usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:183:in `process_args'
/usr/local/lib/ruby/3.1.0/rubygems/command_manager.rb:149:in `run'
/usr/local/lib/ruby/3.1.0/rubygems/gem_runner.rb:51:in `run'
/usr/local/bin/gem:21:in `<main>'
ERROR: While executing gem ... (NoMethodError)
undefined method `deprecated?' for nil:NilClass
cmd.deprecation_warning if cmd.deprecated?
Please share full rebuild logs and your app.yml
Looks similar to the recent and also unsolved
” undefined method `deprecated?’ for nil:NilClass” on rebuild
1 Like
So it should be the same problem. What is your distro and kernel version @jaswinder ?
I had a very similar problem today, with multiple failed rebuilds and a very similar error.
I did a manual ./launcher cleanup
and then a git pull
- this magically fixed the problem and the rebuild progressed just fine after that.
Was glad I have a 2-container install so I could drop it and come back to it at my leisure!!
(Kernel is 5.4.0-126-generic on Ubuntu 20.04.5 LTS)
1 Like