Getting errors on Circle Ci that are inconsistent with local and Heroku builds
The stack you’re using
Ruby 2.3
, Ruby on Rails 5.0.1
The exact error message you are getting
export RAILS_ENV=“test”
export RACK_ENV=“test”
bundle exec rake db:create db:schema:load --trace
rake aborted!
LoadError: libruby.so.2.3: cannot open shared object file: No such file or directory - /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/bcrypt-3.1.11/lib/bcrypt_ext.so
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:inrequire' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
block in require’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:inload_dependency' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
require’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:16:inrescue in <top (required)>' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:12:in
<top (required)>’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:inrequire' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in
block (2 levels) in require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:ineach' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in
block in require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:ineach' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in
require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler.rb:106:inrequire' /home/ubuntu/designershare-server/config/application.rb:19:in
<top (required)>’
/home/ubuntu/designershare-server/Rakefile:4:inrequire_relative' /home/ubuntu/designershare-server/Rakefile:4:in
<top (required)>’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:inload' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in
load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:687:inraw_load_rakefile' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:96:in
block in load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:instandard_exception_handling' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:95:in
load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:79:inblock in run' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in
standard_exception_handling’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:inrun' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in
<top (required)>’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/bin/rake:22:inload' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/bin/rake:22:in
<top (required)>’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:inload' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in
kernel_load’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:inrun' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in
exec’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:indispatch' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in
dispatch’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:instart' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in
start’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/exe/bundle:34:inblock in <top (required)>' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in
with_friendly_errors’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/exe/bundle:26:in<top (required)>' /opt/circleci/.rvm/gems/ruby-2.3.3/bin/bundle:22:in
load’
/opt/circleci/.rvm/gems/ruby-2.3.3/bin/bundle:22:in<main>' LoadError: cannot load such file -- 2.3/bcrypt_ext /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
require’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:inblock in require' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
load_dependency’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:inrequire' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:14:in
<top (required)>’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:inrequire' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in
block (2 levels) in require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:ineach' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in
block in require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:ineach' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in
require’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler.rb:106:inrequire' /home/ubuntu/designershare-server/config/application.rb:19:in
<top (required)>’
/home/ubuntu/designershare-server/Rakefile:4:inrequire_relative' /home/ubuntu/designershare-server/Rakefile:4:in
<top (required)>’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:inload' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in
load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:687:inraw_load_rakefile' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:96:in
block in load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:instandard_exception_handling' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:95:in
load_rakefile’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:79:inblock in run' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in
standard_exception_handling’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:inrun' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in
<top (required)>’
/home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/bin/rake:22:inload' /home/ubuntu/designershare-server/vendor/bundle/ruby/2.3.0/bin/rake:22:in
<top (required)>’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:inload' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in
kernel_load’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:inrun' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in
exec’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:indispatch' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in
dispatch’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:instart' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in
start’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/exe/bundle:34:inblock in <top (required)>' /opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in
with_friendly_errors’
/opt/circleci/.rvm/gems/ruby-2.3.3/gems/bundler-1.13.7/exe/bundle:26:in<top (required)>' /opt/circleci/.rvm/gems/ruby-2.3.3/bin/bundle:22:in
load’
/opt/circleci/.rvm/gems/ruby-2.3.3/bin/bundle:22:in `’
export RAILS_ENV="test" export RACK_ENV="test" bundle exec rake db:create db:schema:load --trace returned exit code 1
Action failed: rake db:create db:schema:load
Which troubleshooting steps you’ve already taken
- Tried locking down the
nokogiri
gem version to1.7.0
, which we suspected to be the cause, but that didn’t change the behavior. - Tried to rebuild without cache, no dice
Any recent changes either in the codebase or the stack
None. We have previously passing builds now failing.
Build # 234 on our account is an example (can share link with support)
What happens when you run the tests locally
Full pass. Same with Heroku.
What is supposed to happen when your build runs
Full pass, as before
The build URL if the project is public
Private repo