I'm trying to push my RoR app to Heroku after a few months of not deploying anything new. I commited my changes to my local repo and tried my usual shell script deploy that calls the git push heroku-production master
heroku-production is my git remote name for the Heroku app
I've also noticed that my Cedar version was outdated so I upgraded it to Cedar 22. After doing that I had to upgrade my Bundler too and my Ruby version. After testing it out locally I went on to deploy it to my Heroku
The deploy seems to go well until it breaks with the following messages:
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
rake aborted!
Could not find cache store adapter for dalli_store (cannot load such file -- active_support/cache/dalli_store)
and
! [remote rejected] master -> master (pre-receive hook declined)
Here's the whole trace
-----> Building on the Heroku-22 stack
-----> Using buildpack: heroku/ruby
-----> Ruby app detected
-----> Installing bundler 2.3.25
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
###### WARNING:
Your app was upgraded to bundler 2.3.25.
Previously you had a successful deploy with bundler 1.15.2.
If you see problems related to the bundler version please refer to:
https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues
-----> Using Ruby version: ruby-3.1.2
Purging Cache. Changing stack from cedar-14 to heroku-22
-----> Installing dependencies using bundler 2.3.25
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
Fetching gem metadata from https://rubygems.org/..........
Fetching rake 13.0.6
Installing rake 13.0.6
Fetching concurrent-ruby 1.1.9
Fetching builder 3.2.4
Fetching minitest 5.15.0
Fetching thread_safe 0.3.6
Installing builder 3.2.4
Installing minitest 5.15.0
Installing thread_safe 0.3.6
Fetching erubis 2.7.0
Installing concurrent-ruby 1.1.9
Installing erubis 2.7.0
Using racc 1.6.0
Fetching crass 1.0.6
Fetching rack 2.2.3
Installing crass 1.0.6
Fetching nio4r 2.5.8
Installing nio4r 2.5.8 with native extensions
Installing rack 2.2.3
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching mini_mime 1.1.2
Fetching jsonapi-renderer 0.2.2
Installing mini_mime 1.1.2
Installing jsonapi-renderer 0.2.2
Fetching arel 7.1.4
Fetching public_suffix 4.0.6
Installing arel 7.1.4
Installing public_suffix 4.0.6
Fetching bcrypt 3.1.16
Fetching coderay 1.1.3
Installing bcrypt 3.1.16 with native extensions
Fetching erubi 1.10.0
Installing erubi 1.10.0
Installing coderay 1.1.3
Fetching debug_inspector 1.1.0
Installing debug_inspector 1.1.0 with native extensions
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching method_source 1.0.0
Installing method_source 1.0.0
Using bundler 2.3.25
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.8.1
Installing execjs 2.8.1
Fetching connection_pool 2.2.5
Installing connection_pool 2.2.5
Fetching dalli 3.2.3
Installing dalli 3.2.3
Fetching ffi 1.15.5
Installing ffi 1.15.5 with native extensions
Fetching foreman 0.87.2
Installing foreman 0.87.2
Fetching geocoder 1.7.3
Installing geocoder 1.7.3
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching sexp_processor 4.16.0
Installing sexp_processor 4.16.0
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching mime-types-data 3.2022.0105
Installing mime-types-data 3.2022.0105
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching memcached 1.8.0
Installing memcached 1.8.0 with native extensions
Fetching rb-fsevent 0.11.1
Installing rb-fsevent 0.11.1
Fetching select2-rails 3.5.11
Installing select2-rails 3.5.11
Fetching truncate_html 0.9.3
Installing truncate_html 0.9.3
Fetching newrelic_rpm 8.4.0
Installing newrelic_rpm 8.4.0
Fetching oj 3.13.11
Installing oj 3.13.11 with native extensions
Fetching pg 1.3.2
Installing pg 1.3.2 with native extensions
Fetching puma 3.12.6
Installing puma 3.12.6 with native extensions
Fetching redis 4.6.0
Installing redis 4.6.0
Fetching rolify 6.0.0
Installing rolify 6.0.0
Fetching rollbar 3.3.0
Installing rollbar 3.3.0
Fetching will_paginate 3.1.8
Installing will_paginate 3.1.8
Fetching nokogiri 1.13.1 (x86_64-linux)
Installing nokogiri 1.13.1 (x86_64-linux)
Fetching tzinfo 1.2.9
Installing tzinfo 1.2.9
Fetching i18n 1.10.0
Installing i18n 1.10.0
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching warden 1.2.9
Installing warden 1.2.9
Fetching request_store 1.5.1
Installing request_store 1.5.1
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching addressable 2.8.0
Installing addressable 2.8.0
Fetching better_errors 2.9.1
Installing better_errors 2.9.1
Fetching bitters 2.0.3
Installing bitters 2.0.3
Fetching bourbon 6.0.0
Installing bourbon 6.0.0
Fetching neat 4.0.0
Installing neat 4.0.0
Fetching pry 0.14.1
Installing pry 0.14.1
Fetching terrapin 0.6.0
Installing terrapin 0.6.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.2.0
Installing uglifier 4.2.0
Fetching binding_of_caller 1.0.0
Installing binding_of_caller 1.0.0
Fetching haml 4.0.7
Installing haml 4.0.7
Fetching ruby_parser 3.18.1
Installing ruby_parser 3.18.1
Fetching mime-types 3.4.1
Installing mime-types 3.4.1
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching sidekiq 6.4.1
Installing sidekiq 6.4.1
Fetching loofah 2.14.0
Installing loofah 2.14.0
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching money 6.16.0
Installing money 6.16.0
Fetching css_parser 1.11.0
Installing css_parser 1.11.0
Fetching cocaine 0.6.0
Installing cocaine 0.6.0
Fetching html2haml 2.2.0
Installing html2haml 2.2.0
Fetching httparty 0.20.0
Installing httparty 0.20.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching rails-html-sanitizer 1.4.2
Installing rails-html-sanitizer 1.4.2
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 1.0.0
Installing globalid 1.0.0
Fetching activemodel 5.0.7.2
Installing activemodel 5.0.7.2
Fetching case_transform 0.2
Installing case_transform 0.2
Fetching intercom-rails 0.4.2
Installing intercom-rails 0.4.2
Fetching pundit 2.2.0
Installing pundit 2.2.0
Fetching monetize 1.12.0
Installing monetize 1.12.0
Fetching premailer 1.15.0
Installing premailer 1.15.0
Fetching ckeditor 4.1.6
Installing ckeditor 4.1.6
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching actionview 5.0.7.2
Installing actionview 5.0.7.2
Fetching activejob 5.0.7.2
Installing activejob 5.0.7.2
Fetching activerecord 5.0.7.2
Installing activerecord 5.0.7.2
Fetching actionpack 5.0.7.2
Fetching jbuilder 2.11.5
Installing actionpack 5.0.7.2
Installing jbuilder 2.11.5
Fetching annotate 3.2.0
Installing annotate 3.2.0
Fetching friendly_id 5.1.0
Fetching actioncable 5.0.7.2
Installing friendly_id 5.1.0
Installing actioncable 5.0.7.2
Fetching actionmailer 5.0.7.2
Fetching active_model_serializers 0.10.13
Installing actionmailer 5.0.7.2
Installing active_model_serializers 0.10.13
Fetching railties 5.0.7.2
Fetching gon 6.4.0
Installing railties 5.0.7.2
Installing gon 6.4.0
Fetching sprockets-rails 3.2.2
Installing sprockets-rails 3.2.2
Fetching premailer-rails 1.11.1
Installing premailer-rails 1.11.1
Fetching breadcrumbs_on_rails 4.1.0
Fetching coffee-rails 4.2.2
Installing breadcrumbs_on_rails 4.1.0
Installing coffee-rails 4.2.2
Fetching haml-rails 0.9.0
Fetching responders 2.1.2
Installing haml-rails 0.9.0
Installing responders 2.1.2
Fetching money-rails 1.15.0
Fetching jquery-rails 4.4.0
Installing money-rails 1.15.0
Installing jquery-rails 4.4.0
Fetching rails 5.0.7.2
Installing rails 5.0.7.2
Fetching rails-i18n 5.1.3
Fetching sass-rails 5.0.7
Installing sass-rails 5.0.7
Fetching devise 4.8.1
Installing rails-i18n 5.1.3
Installing devise 4.8.1
Fetching devise-i18n 1.10.1
Installing devise-i18n 1.10.1
Fetching monologue 0.5.0
Installing monologue 0.5.0
Bundle complete! 51 Gemfile dependencies, 118 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from haml:
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:
* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem
For more info see:
http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
Post-install message from httparty:
When you HTTParty, you must party hard!
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Bundle completed (62.09s)
Cleaning up the bundler cache.
-----> Installing node-v16.13.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
rake aborted!
Could not find cache store adapter for dalli_store (cannot load such file -- active_support/cache/dalli_store)
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/cache.rb:106:in `rescue in retrieve_store_class'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/cache.rb:103:in `retrieve_store_class'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/cache.rb:60:in `lookup_store'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application/bootstrap.rb:64:in `block in <module:Bootstrap>'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in `run'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:352:in `initialize!'
/tmp/build_1e810a44/config/environment.rb:4:in `<top (required)>'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `block in require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:259:in `load_dependency'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:328:in `require_environment!'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
Caused by:
LoadError: cannot load such file -- active_support/cache/dalli_store
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `block in require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:259:in `load_dependency'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/cache.rb:104:in `retrieve_store_class'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/cache.rb:60:in `lookup_store'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application/bootstrap.rb:64:in `block in <module:Bootstrap>'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in `run'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:352:in `initialize!'
/tmp/build_1e810a44/config/environment.rb:4:in `<top (required)>'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `block in require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:259:in `load_dependency'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:328:in `require_environment!'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/railties-5.0.7.2/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/tmp/build_1e810a44/vendor/bundle/ruby/3.1.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
Tasks: TOP => environment
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to subasteo-eu-production.
remote:
To https://git.heroku.com/subasteo-eu-production.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/subasteo-eu-production.git'
I've tried Googling around the fixes to no avail...
I tried changing my Gemfile and updading the Dalli, I added gem 'memcached'to the Gemfile too, but that didn't fix the problem
Here is my Gemfile.lock too if it helps:
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.7.2)
actionpack (= 5.0.7.2)
nio4r (>= 1.2, < 3.0)
websocket-driver (~> 0.6.1)
actionmailer (5.0.7.2)
actionpack (= 5.0.7.2)
actionview (= 5.0.7.2)
activejob (= 5.0.7.2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.7.2)
actionview (= 5.0.7.2)
activesupport (= 5.0.7.2)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.7.2)
activesupport (= 5.0.7.2)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
active_model_serializers (0.10.13)
actionpack (>= 4.1, < 7.1)
activemodel (>= 4.1, < 7.1)
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
activejob (5.0.7.2)
activesupport (= 5.0.7.2)
globalid (>= 0.3.6)
activemodel (5.0.7.2)
activesupport (= 5.0.7.2)
activerecord (5.0.7.2)
activemodel (= 5.0.7.2)
activesupport (= 5.0.7.2)
arel (~> 7.0)
activesupport (5.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
annotate (3.2.0)
activerecord (>= 3.2, < 8.0)
rake (>= 10.4, < 14.0)
arel (7.1.4)
bcrypt (3.1.16)
better_errors (2.9.1)
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
bindex (0.8.1)
binding_of_caller (1.0.0)
debug_inspector (>= 0.0.1)
bitters (2.0.3)
thor (~> 0.19)
bourbon (6.0.0)
thor (~> 0.19)
breadcrumbs_on_rails (4.1.0)
railties (>= 5.0)
builder (3.2.4)
bullet (7.0.1)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
byebug (11.1.3)
case_transform (0.2)
activesupport
ckeditor (4.1.6)
cocaine
orm_adapter (~> 0.5.0)
climate_control (0.2.0)
cocaine (0.6.0)
terrapin (= 0.6.0)
coderay (1.1.3)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.9)
connection_pool (2.2.5)
crass (1.0.6)
css_parser (1.11.0)
addressable
dalli (3.2.3)
debug_inspector (1.1.0)
devise (4.8.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise-i18n (1.10.1)
devise (>= 4.8.0)
erubi (1.10.0)
erubis (2.7.0)
execjs (2.8.1)
ffi (1.15.5)
foreman (0.87.2)
friendly_id (5.1.0)
activerecord (>= 4.0.0)
geocoder (1.7.3)
globalid (1.0.0)
activesupport (>= 5.0)
gon (6.4.0)
actionpack (>= 3.0.20)
i18n (>= 0.7)
multi_json
request_store (>= 1.0)
haml (4.0.7)
tilt
haml-rails (0.9.0)
actionpack (>= 4.0.1)
activesupport (>= 4.0.1)
haml (>= 4.0.6, < 5.0)
html2haml (>= 1.0.1)
railties (>= 4.0.1)
html2haml (2.2.0)
erubis (~> 2.7.0)
haml (>= 4.0, < 6)
nokogiri (>= 1.6.0)
ruby_parser (~> 3.5)
htmlentities (4.3.4)
httparty (0.20.0)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
intercom-rails (0.4.2)
activesupport (> 3.0)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jquery-rails (4.4.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jsonapi-renderer (0.2.2)
launchy (2.5.0)
addressable (~> 2.7)
letter_opener (1.7.0)
launchy (~> 2.2)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
loofah (2.14.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
memcached (1.8.0)
method_source (1.0.0)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
mini_mime (1.1.2)
minitest (5.15.0)
monetize (1.12.0)
money (~> 6.12)
money (6.16.0)
i18n (>= 0.6.4, <= 2)
money-rails (1.15.0)
activesupport (>= 3.0)
monetize (~> 1.9)
money (~> 6.13)
railties (>= 3.0)
monologue (0.5.0)
bcrypt (~> 3.1.7)
ckeditor (~> 4.1.1)
coffee-rails (>= 4.0.0)
jquery-rails
rails (>= 4.0.4)
rails-i18n
responders (~> 2.1.0)
sass-rails (~> 5.0.0)
select2-rails (~> 3.2)
truncate_html
multi_json (1.15.0)
multi_xml (0.6.0)
neat (4.0.0)
thor (~> 0.19)
newrelic_rpm (8.4.0)
nio4r (2.5.8)
nokogiri (1.13.1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.1-x86_64-linux)
racc (~> 1.4)
oj (3.13.11)
orm_adapter (0.5.0)
pg (1.3.2)
premailer (1.15.0)
addressable
css_parser (>= 1.6.0)
htmlentities (>= 4.0.0)
premailer-rails (1.11.1)
actionmailer (>= 3)
premailer (~> 1.7, >= 1.7.9)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
puma (3.12.6)
pundit (2.2.0)
activesupport (>= 3.0.0)
racc (1.6.0)
rack (2.2.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.7.2)
actioncable (= 5.0.7.2)
actionmailer (= 5.0.7.2)
actionpack (= 5.0.7.2)
actionview (= 5.0.7.2)
activejob (= 5.0.7.2)
activemodel (= 5.0.7.2)
activerecord (= 5.0.7.2)
activesupport (= 5.0.7.2)
bundler (>= 1.3.0)
railties (= 5.0.7.2)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
rails-i18n (5.1.3)
i18n (>= 0.7, < 2)
railties (>= 5.0, < 6)
railties (5.0.7.2)
actionpack (= 5.0.7.2)
activesupport (= 5.0.7.2)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (13.0.6)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
redis (4.6.0)
request_store (1.5.1)
rack (>= 1.4)
responders (2.1.2)
railties (>= 4.2.0, < 5.1)
rolify (6.0.0)
rollbar (3.3.0)
ruby_parser (3.18.1)
sexp_processor (~> 4.16)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
select2-rails (3.5.11)
sexp_processor (4.16.0)
sidekiq (6.4.1)
connection_pool (>= 2.2.2)
rack (~> 2.0)
redis (>= 4.2.0)
spring (2.1.1)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.10)
truncate_html (0.9.3)
tzinfo (1.2.9)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
uniform_notifier (1.14.2)
warden (1.2.9)
rack (>= 2.0.9)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
will_paginate (3.1.8)
xray-rails (0.3.2)
rails (>= 3.1.0)
PLATFORMS
x86_64-darwin-20
x86_64-darwin-21
x86_64-linux
DEPENDENCIES
active_model_serializers (~> 0.10.0)
annotate
better_errors
binding_of_caller
bitters
bourbon
breadcrumbs_on_rails
bullet
byebug
coffee-rails (~> 4.2)
dalli
devise
devise-i18n
foreman
friendly_id (~> 5.1.0)
geocoder
gon
haml
haml-rails (~> 0.9)
httparty
intercom-rails
jbuilder (~> 2.5)
jquery-rails
letter_opener
listen (~> 3.0.5)
memcached
monetize
money
money-rails
monologue (~> 0.5.0)
neat
newrelic_rpm
nokogiri
oj
pg
premailer-rails
pry
puma (~> 3.0)
pundit
rails (~> 5.0.0, >= 5.0.0.1)
rolify
rollbar
sass-rails (~> 5.0)
sidekiq
spring
spring-watcher-listen (~> 2.0.0)
tzinfo-data
uglifier (>= 1.3.0)
web-console
will_paginate (~> 3.1.0)
xray-rails
RUBY VERSION
ruby 3.1.2p20
BUNDLED WITH
2.3.7
UPDATE
Here's my production.rb and the staging.rb. I checked the API keys / credentials and they're correct
config.cache_store = :dalli_store,
(ENV["MEMCACHIER_SERVERS"] || "").split(","),
{:username => ENV["MEMCACHIER_USERNAME"],
:password => ENV["MEMCACHIER_PASSWORD"],
:failover => true,
:socket_timeout => 1.5,
:socket_failure_delay => 0.2,
:down_retry_delay => 60
}
Take a look at your config.cache_store setting in config/environments/production.rb ... it should be this:
config.cache_store = :mem_cache_store
Related
When my Rails application encounters any error, instead of reporting the error I am getting the same error "undefined method [] for nil:NilClass" no matter what the underlying error is that is triggered. This happens regardless of wether I enable the better_errors gem or not.
I thought this was because of an upgrade to Puma 4.3.5 but the error persists after downgrading to 4.3.3 again.
The headers array is nil causing headers[CACHE_CONTROL] to fail in line 38.
callrack (2.2.3) lib/rack/etag.rb
33 original_body.close if original_body.respond_to?(:close)
34 end
35 headers[ETAG_STRING] = %(W/"#{digest}") if digest
36 end
37
38 unless headers[CACHE_CONTROL]
39 if digest
40 headers[CACHE_CONTROL] = #cache_control if #cache_control
41 else
42 headers[CACHE_CONTROL] = #no_cache_control if #no_cache_control
43 end
I am using the following gem list:
actioncable (5.2.4.3, 5.2.3)
actionmailer (5.2.4.3, 5.2.3)
actionpack (5.2.4.3, 5.2.3)
actionview (5.2.4.3, 5.2.3)
active_model_serializers (0.10.10)
activejob (5.2.4.3, 5.2.3)
activemodel (5.2.4.3, 5.2.3)
activerecord (5.2.4.3, 5.2.3)
activestorage (5.2.4.3, 5.2.3)
activesupport (5.2.4.3, 5.2.3)
addressable (2.7.0)
akami (1.3.1)
animate-rails (1.0.10)
arel (9.0.0)
ast (2.4.1, 2.4.0)
attr_encrypted (3.1.0)
autoprefixer-rails (9.8.5, 9.7.4)
backports (3.16.1)
bcrypt (3.1.13)
better_errors (2.7.1, 2.5.1)
bigdecimal (default: 1.3.4)
binding_of_caller (0.8.0)
bootsnap (1.4.6, 1.4.5)
bootstrap-datepicker-rails (1.9.0.1)
bootstrap-sass (3.4.1)
bootstrap-select-rails (1.13.8)
bootstrap-tooltip-rails (0.1)
bootstrap_form (2.7.0)
bson (4.9.4, 4.7.1)
bson_ext (1.5.1)
builder (3.2.4)
bundler (default: 1.17.3)
bundler-unload (1.0.2)
cancancan (3.1.0, 3.0.2)
capybara (3.33.0, 3.31.0)
carrierwave (2.1.0)
carrierwave-base64 (2.8.1, 2.8.0)
carrierwave-i18n (0.2.0)
carrierwave-mongoid (1.3.0)
case_transform (0.2)
chunky_png (1.3.11)
cmath (default: 1.0.0)
coderay (1.1.3, 1.1.2)
coffee-rails (5.0.0)
coffee-script (2.4.1)
coffee-script-source (1.12.2)
concurrent-ruby (1.1.6)
connection_pool (2.2.3, 2.2.2)
crass (1.0.6)
csv (default: 1.0.0)
cuba (3.9.2)
cucumber (4.1.0, 3.1.2)
cucumber-core (7.1.0, 3.2.1)
cucumber-create-meta (1.0.0)
cucumber-cucumber-expressions (10.2.1)
cucumber-expressions (6.0.1)
cucumber-gherkin (14.0.1)
cucumber-html-formatter (7.0.0)
cucumber-messages (12.2.0)
cucumber-rails (2.1.0, 2.0.0)
cucumber-tag-expressions (2.0.4)
cucumber-tag_expressions (1.1.1)
cucumber-wire (3.1.0, 0.0.1)
daemons (1.3.1)
database_cleaner (1.8.5, 1.8.3)
date (default: 1.0.0)
dbm (default: 1.0.0)
debug_inspector (0.0.3)
devise (4.7.2, 4.7.1)
devise-bootstrap-views (1.1.0)
devise-i18n (1.9.1, 1.9.0)
devise-two-factor (3.1.0)
did_you_mean (1.2.0)
diff-lcs (1.3)
domain_name (0.5.20190701)
doorkeeper (4.4.3)
doorkeeper-mongodb (4.2.0)
down (5.1.1)
encryptor (3.0.0)
erubi (1.9.0)
et-orbi (1.2.4, 1.2.2)
etc (default: 1.0.0)
execjs (2.7.0)
executable-hooks (1.6.0)
exonio (0.5.4, 0.5.3)
factory_bot (6.1.0, 5.1.1)
factory_bot_rails (6.1.0, 5.1.1)
faker (2.13.0, 2.10.2)
fcntl (default: 1.0.0)
ffi (1.13.1, 1.12.2)
fiddle (default: 1.0.0)
fileutils (default: 1.0.2)
flamegraph (0.9.5)
font-awesome-sass (5.13.0, 5.12.0)
fugit (1.3.6, 1.3.3)
gdbm (default: 2.0.0)
gem-wrappers (1.4.0)
geocoder (1.6.3, 1.6.1)
gherkin (5.1.0)
globalid (0.4.2)
google_custom_search_api (2.0.0)
gyoku (1.3.1)
http-accept (1.7.0)
http-cookie (1.0.3)
httparty (0.18.1, 0.18.0)
httpi (2.4.5, 2.4.4)
i18n (1.8.3, 1.8.2)
image_processing (1.11.0, 1.10.3)
interactor (3.1.2)
io-console (default: 0.4.6)
ipaddr (default: 1.2.0)
iye (1.1.1)
jaro_winkler (1.5.4)
jasny-bootstrap-rails (3.1.3)
jbuilder (2.10.0)
jquery-easing-rails (0.0.2)
jquery-rails (4.4.0, 4.3.5)
jquery-tablesorter (1.27.2, 1.27.1)
jquery-ui-rails (6.0.1)
json (2.3.1, 2.3.0, default: 2.1.0)
jsonapi-renderer (0.2.2)
jwt (2.2.1)
launchy (2.5.0, 2.4.3)
letter_opener (1.7.0)
listen (3.2.1)
localized_fields (0.1.0)
loofah (2.6.0, 2.4.0)
mail (2.7.1)
marcel (0.3.3)
material_icons (2.2.1)
materialize-form (1.0.8)
materialize-sass (0.99.0)
memory_profiler (0.9.14)
method_source (1.0.0, 0.9.2)
middleware (0.1.0)
mime-types (3.3.1)
mime-types-data (3.2020.0512, 3.2019.1009)
mimemagic (0.3.5, 0.3.4)
mini_magick (4.10.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.1, 5.14.0, 5.10.3)
mollie-api-ruby (4.7.1)
momentjs-rails (2.20.1)
mongo (2.12.1, 2.11.3)
mongo_session_store (3.2.1, 3.2.0)
mongoid (6.4.4)
mongoid-compatibility (0.5.1)
mongoid-grid_fs (2.4.0)
mongoid-rspec (4.1.0, 4.0.1)
msgpack (1.3.3)
multi_json (1.14.1)
multi_test (0.1.2)
multi_xml (0.6.0)
nested_form (0.3.2)
net-telnet (0.1.1)
netrc (0.11.0)
nio4r (2.5.2)
nokogiri (1.10.10, 1.10.8)
nori (2.6.0)
okcomputer (1.18.2, 1.18.1)
openssl (default: 2.1.2)
orm_adapter (0.5.0)
parallel (1.19.2, 1.19.1)
parser (2.7.1.4, 2.7.0.2)
pdfjs_viewer-rails (0.3.1)
pdfkit (0.8.4.3.1, 0.8.4.1)
popper_js (1.16.0)
power_assert (1.1.1)
protobuf-cucumber (3.10.8)
pry (0.13.1, 0.12.2)
pry-rails (0.3.9)
psych (3.1.0, default: 3.0.2)
public_suffix (4.0.5, 4.0.3)
puma (4.3.5, 4.3.3)
raabro (1.3.1, 1.1.6)
rack (2.2.3, 2.2.2)
rack-mini-profiler (2.0.2, 1.1.6)
rack-protection (2.0.8.1)
rack-test (1.1.0) rails (5.2.4.3, 5.2.3)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.3.0)
rails-i18n (5.1.3)
rails-static-router (1.0.3)
rails_12factor (0.0.3)
rails_bootstrap_sortable (2.0.7)
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (5.2.4.3, 5.2.3)
rainbow (3.0.0)
rake (13.0.1, 12.3.3)
rb-fsevent (0.10.4, 0.10.3)
rb-inotify (0.10.1)
rdoc (default: 6.0.1.1)
redis (4.2.1, 4.1.3)
regexp_parser (1.7.1, 1.7.0)
responders (3.0.1, 3.0.0)
rest-client (2.1.0)
rexml (3.2.4)
rotp (2.1.2)
rqrcode (1.1.2)
rqrcode_core (0.1.2, 0.1.1)
rspec (3.9.0)
rspec-core (3.9.2, 3.9.1)
rspec-expectations (3.9.2, 3.9.0)
rspec-mocks (3.9.1)
rspec-rails (3.9.1, 3.9.0)
rspec-support (3.9.3, 3.9.2)
rubocop (0.88.0, 0.80.0)
rubocop-ast (0.1.0)
ruby-prof (1.4.1, 1.3.0)
ruby-progressbar (1.10.1)
ruby-vips (2.0.17)
rubygems-bundler (1.4.5)
rufus-scheduler (3.6.0)
rvm (1.11.3.9)
sass (3.7.4)
sass-listen (4.0.0)
sass-rails (5.1.0)
sassc (2.4.0, 2.2.1)
sassc-rails (2.1.2)
savon (2.12.1, 2.12.0)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
sidekiq (5.2.2)
simple-form-datepicker (0.1.3)
simple_calendar (2.4.1, 2.3.0)
simple_form (5.0.2)
smarter_csv (1.2.6)
socksify (1.7.1)
spring (2.1.0)
sprockets (3.7.2)
sprockets-rails (3.2.1)
stackprof (0.2.15)
stringio (default: 0.0.1)
strscan (default: 1.0.0)
summernote-rails (0.8.12.0)
sys-uname (1.2.1)
test-unit (3.2.7)
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
time_difference (0.7.0)
tzinfo (1.2.7, 1.2.6)
uglifier (4.2.0)
unf (0.1.4)
unf_ext (0.0.7.7, 0.0.7.6)
unicode-display_width (1.7.0, 1.6.1)
warden (1.2.8)
wasabi (3.5.0)
webrick (default: 1.4.2)
websocket-driver (0.7.3, 0.7.1)
websocket-extensions (0.1.5, 0.1.4)
wicked (1.3.4)
wkhtmltopdf-binary-edge (0.12.5.1)
wkhtmltopdf-heroku (2.12.5.0)
xmlrpc (0.3.0)
xpath (3.2.0)
zlib (default: 1.0.0)
These are the gem changes that were done with the latest update:
Installing i18n 1.8.3 (was 1.8.2)
Installing minitest 5.14.1 (was 5.14.0)
Installing tzinfo 1.2.7 (was 1.2.6)
Installing nokogiri 1.10.10 (was 1.10.8) with native extensions
Installing loofah 2.6.0 (was 2.4.0)
Installing rack 2.2.3 (was 2.2.2)
Installing websocket-extensions 0.1.5 (was 0.1.4)
Installing websocket-driver 0.7.3 (was 0.7.1) with native extensions
Installing mimemagic 0.3.5 (was 0.3.4)
Installing public_suffix 4.0.5 (was 4.0.3)
Installing method_source 1.0.0 (was 0.9.2)
Installing ast 2.4.1 (was 2.4.0)
Installing autoprefixer-rails 9.8.5 (was 9.7.4)
Installing coderay 1.1.3 (was 1.1.2)
Installing better_errors 2.7.1 (was 2.5.1)
Installing bootsnap 1.4.6 (was 1.4.5) with native extensions
Installing ffi 1.13.1 (was 1.12.2) with native extensions
Installing sassc 2.4.0 (was 2.2.1) with native extensions
Installing bson 4.9.4 (was 4.7.1) with native extensions
Installing cancancan 3.1.0 (was 3.0.2)
Installing regexp_parser 1.7.1 (was 1.7.0)
Installing capybara 3.33.0 (was 3.31.0)
Installing image_processing 1.11.0 (was 1.10.3)
Installing mime-types-data 3.2020.0512 (was 3.2019.1009)
Installing carrierwave-base64 2.8.1 (was 2.8.0)
Installing mongo 2.12.1 (was 2.11.3)
Installing connection_pool 2.2.3 (was 2.2.2)
Installing cucumber-core 7.1.0 (was 3.2.1)
Installing cucumber-wire 3.1.0 (was 0.0.1)
Installing cucumber 4.1.0 (was 3.1.2)
Installing cucumber-rails 2.1.0 (was 2.0.0)
Installing database_cleaner 1.8.5 (was 1.8.3)
Installing responders 3.0.1 (was 3.0.0)
Installing devise 4.7.2 (was 4.7.1)
Installing devise-i18n 1.9.1 (was 1.9.0)
Installing unf_ext 0.0.7.7 (was 0.0.7.6) with native extensions
Installing et-orbi 1.2.4 (was 1.2.2)
Installing exonio 0.5.4 (was 0.5.3)
Installing factory_bot 6.1.0 (was 5.1.1)
Installing factory_bot_rails 6.1.0 (was 5.1.1)
Installing faker 2.13.0 (was 2.10.2)
Installing font-awesome-sass 5.13.0 (was 5.12.0)
Installing raabro 1.3.1 (was 1.1.6)
Installing fugit 1.3.6 (was 1.3.3)
Installing geocoder 1.6.3 (was 1.6.1)
Installing httparty 0.18.1 (was 0.18.0)
Installing httpi 2.4.5 (was 2.4.4)
Installing jquery-rails 4.4.0 (was 4.3.5)
Installing jquery-tablesorter 1.27.2 (was 1.27.1)
Installing json 2.3.1 (was 2.3.0) with native extensions
Installing launchy 2.5.0 (was 2.4.3)
Installing rb-fsevent 0.10.4 (was 0.10.3)
Installing mongo_session_store 3.2.1 (was 3.2.0)
Installing rspec-support 3.9.3 (was 3.9.2)
Installing rspec-core 3.9.2 (was 3.9.1)
Installing rspec-expectations 3.9.2 (was 3.9.0)
Installing mongoid-rspec 4.1.0 (was 4.0.1)
Installing okcomputer 1.18.2 (was 1.18.1)
Installing parallel 1.19.2 (was 1.19.1)
Installing parser 2.7.1.4 (was 2.7.0.2)
Installing pdfkit 0.8.4.3.1 (was 0.8.4.1)
Installing pry 0.13.1 (was 0.12.2)
Installing puma 4.3.5 (was 4.3.3) with native extensions
Installing rack-mini-profiler 2.0.2 (was 1.1.6)
Installing redis 4.2.1 (was 4.1.3)
Installing rqrcode_core 0.1.2 (was 0.1.1)
Installing rspec-rails 3.9.1 (was 3.9.0)
Installing unicode-display_width 1.7.0 (was 1.6.1)
Installing rubocop 0.88.0 (was 0.80.0)
Installing ruby-prof 1.4.1 (was 1.3.0) with native extensions
Installing savon 2.12.1 (was 2.12.0)
Installing simple_calendar 2.4.1 (was 2.3.0)
I manualy downgraded the gems that i thought would have had an impact but there is no difference.
gem 'rails', '5.2.3'
gem 'puma', '4.3.3'
gem 'rack', '2.2.2'
gem 'websocket-extensions', '0.1.4'
gem 'websocket-driver', '0.7.1'
gem 'connection_pool', '2.2.2'
gem 'httparty', '0.18.0'
gem 'better_errors', '2.5.1'
gem 'rack-mini-profiler', '1.1.6'
I finally found the error on my side, it's related to the pdfkit gem:
https://github.com/rack/rack/issues/1698
You need to lock pdfkit to 0.8.4.2 for the moment
Note: I gave up on this and decided to try Rails 6 and Webpacker rather than fighting this fight. Moving on to other fights.
An error occurred while installing ffi (1.13.1), and Bundler cannot continue. I know this a recurring problem and I've run into it before with nokogiri, but can't seem to find the solution this time. I have read and tried many suggestions based on searching SO and what shows up as similar questions.
Partial Gemfile:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
ruby '2.7.0'
gem 'rails', '~> 5.2.0'
gem 'pg' , '~> 0.18'
gem 'puma'
gem 'bootstrap', '~> 4'
Terminal (edited slightly), starting at responding to the error:
➜ gem install ffi -v '1.13.1' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
Successfully installed ffi-1.13.1
1 gem installed
➜ bundle update
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies..........
Using rake 13.0.1
<long list of gems installed>
Using bundler 2.1.4
Using rails 5.2.4.3
Using execjs 2.7.0
Fetching ffi 1.13.1
Installing ffi 1.13.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: <project>/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1/ext/ffi_c
/Users/me/.rubies/ruby-2.7.0/bin/ruby -I ~/.rubies/ruby-2.7.0/lib/ruby/2.7.0 -r ./siteconf20200613-94985-w9dh35.rb extconf.rb
checking for ffi_prep_closure_loc() in -lffi... no
checking for ffi_prep_closure_loc() in -llibffi... no
checking for ffi_prep_closure_loc() in -llibffi-8... no
creating extconf.h
creating Makefile
current directory: <project>/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1/ext/ffi_c
make "DESTDIR=" clean
current directory: <project>/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1/ext/ffi_c
make "DESTDIR="
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** ["/Users/me/Documents/Folder] Error 2
make failed, exit code 2
Gem files will remain installed in <project>/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1 for inspection.
Results logged to <project>/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-18/2.7.0-static/ffi-1.13.1/gem_make.out
An error occurred while installing ffi (1.13.1), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.13.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
ffi
Some of the things I've tried based on SO posts on this and similar problems
Removed Gemfile.lock and still bundle install failed
Tried ruby-install ruby 2.7.0 just in case. I'm using chruby and still bundle install failed
sudo xcodebuild -license and still bundle install failed
Tried commenting out source github and still bundle install failed
Tried gem install ffi and still bundle install failed
I have another app that uses similar gems but I had updated it to Rails 6, but it was at ruby-2.6.6, so tried changing to ruby-2.6.6 in terminal and Gemfile, ran bundle install and got the same kind of failure but for nokogiri.
I got trapped in this while trying to make changes on a two-year old app and then couldn't push to heroku.
I think I get that this a dependency issue, but am lost beyond that. Thanks for any suggestions.
Gemfile.lock with everything that depends on ffi removed (bootstrap) so bundle update could run without errors.
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.4.3)
actionpack (= 5.2.4.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.4.3)
actionpack (= 5.2.4.3)
actionview (= 5.2.4.3)
activejob (= 5.2.4.3)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.4.3)
actionview (= 5.2.4.3)
activesupport (= 5.2.4.3)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.4.3)
activesupport (= 5.2.4.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.4.3)
activesupport (= 5.2.4.3)
globalid (>= 0.3.6)
activemodel (5.2.4.3)
activesupport (= 5.2.4.3)
activerecord (5.2.4.3)
activemodel (= 5.2.4.3)
activesupport (= 5.2.4.3)
arel (>= 9.0)
activerecord-postgis-adapter (5.2.2)
activerecord (~> 5.1)
rgeo-activerecord (~> 6.0)
activestorage (5.2.4.3)
actionpack (= 5.2.4.3)
activerecord (= 5.2.4.3)
marcel (~> 0.3.1)
activesupport (5.2.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ansi (1.5.0)
arel (9.0.0)
ast (2.4.1)
awesome_print (1.8.0)
aws-eventstream (1.1.0)
aws-partitions (1.329.0)
aws-sdk-core (3.99.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.34.1)
aws-sdk-core (~> 3, >= 3.99.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.68.1)
aws-sdk-core (~> 3, >= 3.99.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.1.4)
aws-eventstream (~> 1.0, >= 1.0.2)
bcrypt (3.1.13)
better_errors (2.7.1)
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
bindex (0.8.1)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
builder (3.2.4)
byebug (11.1.3)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (>= 2.0, < 4.0)
carrierwave (1.1.0)
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
childprocess (3.0.0)
choice (0.2.0)
coderay (1.1.3)
comfy_bootstrap_form (4.0.9)
rails (>= 5.0.0)
concurrent-ruby (1.1.6)
crass (1.0.6)
database_cleaner (1.8.5)
debug_inspector (0.0.3)
docile (1.3.2)
dotenv (2.7.5)
dotenv-rails (2.7.5)
dotenv (= 2.7.5)
railties (>= 3.2, < 6.1)
erubi (1.9.0)
execjs (2.7.0)
font-awesome-rails (4.7.0.5)
railties (>= 3.2, < 6.1)
globalid (0.4.2)
activesupport (>= 4.2.0)
gon (6.3.2)
actionpack (>= 3.0.20)
i18n (>= 0.7)
multi_json
request_store (>= 1.0)
guard-compat (1.2.1)
guard-minitest (2.4.6)
guard-compat (~> 1.2)
minitest (>= 3.0)
heroku_db_restore (0.0.5)
i18n (1.8.3)
concurrent-ruby (~> 1.0)
jbuilder (2.10.0)
activesupport (>= 5.0.0)
jmespath (1.4.0)
jquery-rails (4.4.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
leaflet-draw-rails (0.1.0)
loofah (2.5.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (1.0.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2020.0512)
mimemagic (0.3.5)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.1)
minitest-reporters (1.1.9)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.14.1)
nio4r (2.5.2)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
paper_trail (10.3.1)
activerecord (>= 4.2)
request_store (~> 1.1)
parallel (1.19.1)
parser (2.7.1.3)
ast (~> 2.4.0)
pg (0.21.0)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
public_suffix (4.0.5)
puma (4.3.5)
nio4r (~> 2.0)
rack (2.2.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.4.3)
actioncable (= 5.2.4.3)
actionmailer (= 5.2.4.3)
actionpack (= 5.2.4.3)
actionview (= 5.2.4.3)
activejob (= 5.2.4.3)
activemodel (= 5.2.4.3)
activerecord (= 5.2.4.3)
activestorage (= 5.2.4.3)
activesupport (= 5.2.4.3)
bundler (>= 1.3.0)
railties (= 5.2.4.3)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.2)
actionpack (~> 5.x, >= 5.0.1)
actionview (~> 5.x, >= 5.0.1)
activesupport (~> 5.x)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-erd (1.6.0)
activerecord (>= 4.2)
activesupport (>= 4.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.2.4.3)
actionpack (= 5.2.4.3)
activesupport (= 5.2.4.3)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (13.0.1)
regexp_parser (1.7.1)
request_store (1.5.0)
rack (>= 1.4)
rexml (3.2.4)
rgeo (2.1.1)
rgeo-activerecord (6.2.1)
activerecord (>= 5.0)
rgeo (>= 1.0.0)
rgeo-geojson (2.1.1)
rgeo (>= 1.0.0)
rubocop (0.85.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.0.3)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.0.3)
parser (>= 2.7.0.1)
ruby-graphviz (1.2.5)
rexml
ruby-progressbar (1.10.1)
rubyzip (2.3.0)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
super_awesome_print (0.2.5)
awesome_print
tether-rails (1.4.0)
rails (>= 3.1)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.7.0)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.7.2)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
PLATFORMS
ruby
DEPENDENCIES
activerecord-postgis-adapter
awesome_print
aws-sdk-s3 (~> 1)
bcrypt (~> 3.1.11)
better_errors
binding_of_caller
byebug
capybara (~> 2.13)
carrierwave (= 1.1.0)
comfy_bootstrap_form (~> 4.0.0)
database_cleaner
dotenv-rails
font-awesome-rails
gon
guard-minitest (= 2.4.6)
heroku_db_restore
jbuilder (~> 2.7)
jquery-rails
jquery-ui-rails
leaflet-draw-rails
minitest-reporters (= 1.1.9)
paper_trail
pg (~> 0.18)
pry-byebug
puma
rails (~> 5.2.0)
rails-controller-testing (= 1.0.2)
rails-erd
rgeo-geojson
rubocop
selenium-webdriver
simplecov
super_awesome_print
tether-rails
uglifier
web-console (>= 3.5.1)
RUBY VERSION
ruby 2.7.0p0
BUNDLED WITH
2.1.4
I found this answer (from https://stackoverflow.com/a/63267668/592820) helpful:
brew upgrade libffi
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
bundle install
Was getting this error and resolved by following steps in:
https://medium.com/#leoliang.climber/missing-ffi-prep-closure-error-for-ffi-1-13-1-gem-70f800a48090
gem install ffi -- --disable-system-libffi
bundle install
Edit: I had to install xcode in appstore as well. ruby version 2.6.5, rails 6.
I used the example above that #chubb5000 and added the version to make it work:
gem install ffi -v 1.13.1 -- --disable-system-libffi
You need to install the system-wide libraries first. On Debian-derived systems, run the following commands in your terminal:
$ sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libwebp-dev
$ bundle install
For me, none of these solutions works. I had an issue with xcode so running fix the issue for me.
xcodebuild -runFirstLaunch
If none of these solutions works for you, just remove the Gemfile.lock and run bundle install again
I'm having trouble trying to push to heroku a fresh new rails app: git push heroku master
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Could not find concurrent-ruby-1.1.0 in any of the sources
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
It's true, concurrent-ruby-1.1.0 doesn't exist, version 1.0.5 does. concurrent-ruby-1.0.5
When i looked to my local Gemfile.lock , i can see a line concurrent-ruby (1.1.0)
I tried to uninstall Bundler, reinstall Bundler, remove Gemfile.lock. In my Gemfile file there is nothing related to concurrent-ruby.
I show you my Gemfile.lock , you can double check that there is several concurrent-ruby dependencies but just only one is -v 1.1.0 (witch doesn't exist on rubygems.org
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.1)
actionpack (= 5.2.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.1)
actionpack (= 5.2.1)
actionview (= 5.2.1)
activejob (= 5.2.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.1)
actionview (= 5.2.1)
activesupport (= 5.2.1)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.1)
activesupport (= 5.2.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.1)
activesupport (= 5.2.1)
globalid (>= 0.3.6)
activemodel (5.2.1)
activesupport (= 5.2.1)
activerecord (5.2.1)
activemodel (= 5.2.1)
activesupport (= 5.2.1)
arel (>= 9.0)
activestorage (5.2.1)
actionpack (= 5.2.1)
activerecord (= 5.2.1)
marcel (~> 0.3.1)
activesupport (5.2.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
archive-zip (0.11.0)
io-like (~> 0.3.0)
arel (9.0.0)
bindex (0.5.0)
bootsnap (1.3.2)
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
capybara (3.10.1)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~> 1.2)
xpath (~> 3.2)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
chromedriver-helper (2.1.0)
archive-zip (~> 0.10)
nokogiri (~> 1.8)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.0)
crass (1.0.4)
erubi (1.7.1)
execjs (2.7.0)
ffi (1.9.25)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (1.1.1)
concurrent-ruby (~> 1.0)
io-like (0.3.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.3)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.1)
mimemagic (0.3.2)
mini_mime (1.0.1)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
nio4r (2.3.1)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
pg (1.1.3)
public_suffix (3.0.3)
puma (3.12.0)
rack (2.0.5)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.1)
actioncable (= 5.2.1)
actionmailer (= 5.2.1)
actionpack (= 5.2.1)
actionview (= 5.2.1)
activejob (= 5.2.1)
activemodel (= 5.2.1)
activerecord (= 5.2.1)
activestorage (= 5.2.1)
activesupport (= 5.2.1)
bundler (>= 1.3.0)
railties (= 5.2.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.1)
actionpack (= 5.2.1)
activesupport (= 5.2.1)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
regexp_parser (1.2.0)
ruby_dep (1.5.0)
rubyzip (1.2.2)
sass (3.6.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.141.0)
childprocess (~> 0.5)
rubyzip (~> 1.2, >= 1.2.2)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.2.0)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.19)
execjs (>= 0.3.0, < 3)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
xpath (3.2.0)
nokogiri (~> 1.8)
PLATFORMS
ruby
DEPENDENCIES
bootsnap (>= 1.1.0)
byebug
capybara (>= 2.15)
chromedriver-helper
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
pg (>= 0.18, < 2.0)
puma (~> 3.11)
rails (~> 5.2.1)
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
RUBY VERSION
ruby 2.5.1p57
BUNDLED WITH
1.17.1
Am I the only one with this issue ? Thank you for you help
EDIT: SOLUTION
To resolve this issue, add to your Gemfile this line:
gem 'concurrent-ruby', '~> 1.0.5'
Then run bundle update concurrent-ruby , git add, git push then you are ready to deploy to Heroku.
I had the same issue and to fix it I run a bundle update that updated on my local app to the version concurrent-ruby (1.1.2).
I tested in local and after commit on git, deploy it with git push heroku master:master and it works now.
I post below the Gemfile.lock and the log of the deploy.
Good luck,
Marc
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.1)
actionpack (= 5.2.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.1)
actionpack (= 5.2.1)
actionview (= 5.2.1)
activejob (= 5.2.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.1)
actionview (= 5.2.1)
activesupport (= 5.2.1)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.1)
activesupport (= 5.2.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.1)
activesupport (= 5.2.1)
globalid (>= 0.3.6)
activemodel (5.2.1)
activesupport (= 5.2.1)
activerecord (5.2.1)
activemodel (= 5.2.1)
activesupport (= 5.2.1)
arel (>= 9.0)
activestorage (5.2.1)
actionpack (= 5.2.1)
activerecord (= 5.2.1)
marcel (~> 0.3.1)
activesupport (5.2.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
archive-zip (0.11.0)
io-like (~> 0.3.0)
arel (9.0.0)
bindex (0.5.0)
bootsnap (1.3.2)
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
capybara (3.10.1)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~> 1.2)
xpath (~> 3.2)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
chromedriver-helper (2.1.0)
archive-zip (~> 0.10)
nokogiri (~> 1.8)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.2)
crass (1.0.4)
erubi (1.7.1)
execjs (2.7.0)
ffi (1.9.25)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (1.1.1)
concurrent-ruby (~> 1.0)
io-like (0.3.0)
jbuilder (2.8.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.3)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.1)
mimemagic (0.3.2)
mini_mime (1.0.1)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
nio4r (2.3.1)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
pg (1.1.3)
public_suffix (3.0.3)
puma (3.12.0)
rack (2.0.6)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.1)
actioncable (= 5.2.1)
actionmailer (= 5.2.1)
actionpack (= 5.2.1)
actionview (= 5.2.1)
activejob (= 5.2.1)
activemodel (= 5.2.1)
activerecord (= 5.2.1)
activestorage (= 5.2.1)
activesupport (= 5.2.1)
bundler (>= 1.3.0)
railties (= 5.2.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.1)
actionpack (= 5.2.1)
activesupport (= 5.2.1)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
regexp_parser (1.2.0)
ruby_dep (1.5.0)
rubyzip (1.2.2)
sass (3.6.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.141.0)
childprocess (~> 0.5)
rubyzip (~> 1.2, >= 1.2.2)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.2.0)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.19)
execjs (>= 0.3.0, < 3)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
xpath (3.2.0)
nokogiri (~> 1.8)
PLATFORMS
ruby
DEPENDENCIES
bootsnap (>= 1.1.0)
byebug
capybara (>= 2.15)
chromedriver-helper
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
pg
puma (~> 3.11)
rails (~> 5.2.1)
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
RUBY VERSION
ruby 2.5.1p57
BUNDLED WITH
1.16.2
Here below the log of the deploy:
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 311 bytes | 311.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.5.1
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Using rake 12.3.1
remote: Fetching concurrent-ruby 1.1.2
remote: Using minitest 5.11.3
remote: Using thread_safe 0.3.6
remote: Using builder 3.2.3
remote: Using erubi 1.7.1
remote: Using mini_portile2 2.3.0
remote: Using crass 1.0.4
remote: Fetching rack 2.0.6
remote: Using nio4r 2.3.1
remote: Using websocket-extensions 0.1.3
remote: Using mini_mime 1.0.1
remote: Using arel 9.0.0
remote: Using mimemagic 0.3.2
remote: Using msgpack 1.2.4
remote: Using bundler 1.15.2
remote: Using coffee-script-source 1.12.2
remote: Using execjs 2.7.0
remote: Using method_source 0.9.1
remote: Using thor 0.20.0
remote: Using ffi 1.9.25
remote: Using multi_json 1.13.1
remote: Using pg 1.1.3
remote: Using puma 3.12.0
remote: Using rb-fsevent 0.10.3
remote: Using tilt 2.0.8
remote: Using turbolinks-source 5.2.0
remote: Using tzinfo 1.2.5
remote: Using nokogiri 1.8.5
remote: Using websocket-driver 0.7.0
remote: Using mail 2.7.1
remote: Using marcel 0.3.3
remote: Using bootsnap 1.3.2
remote: Using coffee-script 2.4.1
remote: Using uglifier 4.1.19
remote: Using rb-inotify 0.9.10
remote: Using turbolinks 5.2.0
remote: Using loofah 2.2.3
remote: Using sass-listen 4.0.0
remote: Using rails-html-sanitizer 1.0.4
remote: Using sass 3.6.0
remote: Installing rack 2.0.6
remote: Installing concurrent-ruby 1.1.2
remote: Using i18n 1.1.1
remote: Using activesupport 5.2.1
remote: Using rails-dom-testing 2.0.3
remote: Using globalid 0.4.1
remote: Using activemodel 5.2.1
remote: Fetching jbuilder 2.8.0
remote: Using activejob 5.2.1
remote: Using actionview 5.2.1
remote: Using activerecord 5.2.1
remote: Installing jbuilder 2.8.0
remote: Using rack-test 1.1.0
remote: Using sprockets 3.7.2
remote: Using actionpack 5.2.1
remote: Using actioncable 5.2.1
remote: Using actionmailer 5.2.1
remote: Using activestorage 5.2.1
remote: Using railties 5.2.1
remote: Using sprockets-rails 3.2.1
remote: Using coffee-rails 4.2.2
remote: Using rails 5.2.1
remote: Using sass-rails 5.0.7
remote: Bundle complete! 19 Gemfile dependencies, 61 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Bundle completed (3.58s)
remote: Cleaning up the bundler cache.
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Removing rack (2.0.5)
remote: Removing concurrent-ruby (1.1.1)
remote: Removing jbuilder (2.7.0)
remote: The latest bundler is 1.17.1, but you are currently running 1.15.2.
remote: To update, run `gem install bundler`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: Asset precompilation completed (1.10s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: -----> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: You set your `config.active_storage.service` to :local in production.
remote: If you are uploading files to this app, they will not persist after the app
remote: is restarted, on one-off dynos, or if the app has multiple dynos.
remote: Heroku applications have an ephemeral file system. To
remote: persist uploaded files, please use a service such as S3 and update your Rails
remote: configuration.
remote:
remote: For more information can be found in this article:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote: ###### WARNING:
remote:
remote: We detected that some binary dependencies required to
remote: use all the preview features of Active Storage are not
remote: present on this system.
remote:
remote: For more information please see:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote: ###### WARNING:
remote:
remote: No Procfile detected, using the default web server.
remote: We recommend explicitly declaring how to boot your server process via a Procfile.
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web
remote:
remote: -----> Compressing...
remote: Done: 48.2M
remote: -----> Launching...
remote: Released v8
I am not able to upload a ruby application in Heroku, I have done several searches on the error, but nothing worked, could anyone help me? follows error log:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.4
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 10.5.0
Fetching i18n 0.7.0
Using json 1.8.3
Fetching minitest 5.8.4
Installing i18n 0.7.0
Installing minitest 5.8.4
Installing rake 10.5.0
Fetching thread_safe 0.3.5
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Installing builder 3.2.2
Fetching erubis 2.7.0
Fetching nokogiri 1.6.7.2
Fetching rack 1.6.4
Installing erubis 2.7.0
Installing rack 1.6.4
Fetching mime-types 2.6.1
Installing mime-types 2.6.1
Fetching arel 6.0.3
Installing arel 6.0.3
Using bundler 1.15.2
Fetching coffee-script-source 1.9.1.1
Fetching execjs 2.6.0
Installing execjs 2.6.0
Installing coffee-script-source 1.9.1.1
Fetching thor 0.19.1
Fetching multi_json 1.11.2
Installing thor 0.19.1
Installing multi_json 1.11.2
Fetching pg 1.0.0
Installing pg 1.0.0 with native extensions
Using rdoc 4.2.1
Fetching sass 3.4.21
Installing sass 3.4.21
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching sprockets 3.3.0
Fetching mail 2.6.3
Installing sprockets 3.3.0
Fetching uglifier 2.7.2
Installing mail 2.6.3
Installing uglifier 2.7.2
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching sdoc 0.4.1
Installing sdoc 0.4.1
Downloading nokogiri-1.6.7.2 revealed dependencies not in the API or the
lockfile (mini_portile2 (~> 2.0.0.rc2)).
Either installing with --full-index or running bundle update nokogiri should
fix the problem.
Bundler Output: Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 10.5.0
Fetching i18n 0.7.0
Using json 1.8.3
Fetching minitest 5.8.4
Installing i18n 0.7.0
Installing minitest 5.8.4
Installing rake 10.5.0
Fetching thread_safe 0.3.5
Installing thread_safe 0.3.5
Fetching builder 3.2.2
Installing builder 3.2.2
Fetching erubis 2.7.0
Fetching nokogiri 1.6.7.2
Fetching rack 1.6.4
Installing erubis 2.7.0
Installing rack 1.6.4
Fetching mime-types 2.6.1
Installing mime-types 2.6.1
Fetching arel 6.0.3
Installing arel 6.0.3
Using bundler 1.15.2
Fetching coffee-script-source 1.9.1.1
Fetching execjs 2.6.0
Installing execjs 2.6.0
Installing coffee-script-source 1.9.1.1
Fetching thor 0.19.1
Fetching multi_json 1.11.2
Installing thor 0.19.1
Installing multi_json 1.11.2
Fetching pg 1.0.0
Installing pg 1.0.0 with native extensions
Using rdoc 4.2.1
Fetching sass 3.4.21
Installing sass 3.4.21
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching tzinfo 1.2.2
Installing tzinfo 1.2.2
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching sprockets 3.3.0
Fetching mail 2.6.3
Installing sprockets 3.3.0
Fetching uglifier 2.7.2
Installing mail 2.6.3
Installing uglifier 2.7.2
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching sdoc 0.4.1
Installing sdoc 0.4.1
Downloading nokogiri-1.6.7.2 revealed dependencies not in the API or the
lockfile (mini_portile2 (~> 2.0.0.rc2)).
Either installing with --full-index or running bundle update nokogiri should
fix the problem. ! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby
app. ! Push failed
Follow my Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.6)
actionview (= 4.2.6)
activesupport (= 4.2.6)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.6)
activesupport (= 4.2.6)
globalid (>= 0.3.0)
activemodel (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
activerecord (4.2.6)
activemodel (= 4.2.6)
activesupport (= 4.2.6)
arel (~> 6.0)
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.4)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
builder (3.2.3)
byebug (10.0.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.3)
debug_inspector (0.0.3)
erubis (2.7.0)
execjs (2.7.0)
ffi (1.9.21)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (0.9.3)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.6)
loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
multi_json (1.13.1)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
pg (1.0.0)
rack (1.6.8)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.6)
actionmailer (= 4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
activemodel (= 4.2.6)
activerecord (= 4.2.6)
activesupport (= 4.2.6)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.6)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.9)
activesupport (>= 4.2.0, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.6)
actionpack (= 4.2.6)
activesupport (= 4.2.6)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rdoc (4.3.0)
sass (3.5.5)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.2)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (2.0.2)
activesupport (>= 4.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.0)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.5)
execjs (>= 0.3.0, < 3)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
PLATFORMS
ruby
DEPENDENCIES
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
pg
rails (= 4.2.6)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
BUNDLED WITH
1.16.1
run bundle update on your local repo and upload those changes to heroku.
I would uninstall the nokogiri gem and then reinstall it and try bundle install again.
If that doesn't work you can try running
bundle lock --update=nokogiri
bundle install
If neither of those work I've seen that downgrading bundler to version 1.14.6 might do the trick.
Hope this helps
If you look in vendor/bundle/ruby/<ruby version no>/gems there should be nokogiri-1.6.7.2 but you need nokogiri-1.8.2
I've resolved this issue in the past by:
cd vendor/bundle/ruby; rm -rf <ruby version nos>
and then run bundle install again.
I'm beginner in RoR, I have an error When I run rspec in rails I'm getting this error message:
You have already activated json 2.0.2, but your Gemfile requires json 1.8.6. Prepending bundle exec to your command may solve this. (Gem::LoadError)
I have tried to update json gem by "bundle update json", but still getting the same error message.
Could someone helps me on this.
I'm using:- Ruby 2.3.0
- Rails 4.2.7.1
- gem version 2.5.1
Thank you!
Here is my Gemfile content:
source "https://rubygems.org"
ruby "2.3.0"
gem "dhis2", github: 'BLSQ/dhis2'
gem "rails", "4.2.7.1"
gem "awesome_print", "1.6.1"
gem "pg", "0.18.4"
gem "sass-rails", "5.0.6"
gem "uglifier", "3.0.0"
gem "coffee-rails", "4.1.0"
gem "therubyracer", "0.12.2"
gem "jquery-rails", "4.1.1"
gem "translation", "1.6"
gem "slim", "3.0.6"
gem "bootstrap-sass", "3.3.6"
gem "rails_admin", "0.8.1"
gem "devise", "4.0.0"
gem "simple_form", "3.2.1"
gem "rest-client", "2.0.0"
gem "figaro", "1.1.1"
gem "sidekiq", "4.1.1"
gem "unicorn", "5.1.0"
gem "sentry-raven", "0.15.6"
gem "sinatra", require: nil
gem "will_paginate", "3.1.0"
gem "will_paginate-bootstrap", "1.0.1"
gem "rubyzip", "~> 1.1.0"
gem "axlsx", "2.1.0.pre"
gem "axlsx_rails"
gem "jquery-ui-rails"
gem "rails4-autocomplete"
gem "chosen-rails"
group :production do
gem "rails_12factor", "0.0.3"
end
group :development, :test do
gem "derailed"
gem "byebug"
gem "database_cleaner"
gem "factory_girl_rails", " 4.0"
gem "faker"
gem "rspec-its"
gem "rspec-rails", "~> 3.0"
gem "shoulda-matchers", require: false
gem "rails-erd"
gem "mailcatcher"
gem "rest-client-logger"
end
group :development do
gem "annotate"
gem "web-console", "2.0"
gem "spring"
gem 'rack-mini-profiler'
gem 'memory_profiler'
gem 'flamegraph'
gem 'stackprof'
end
group :test do
gem "simplecov", require: false
gem "codeclimate-test-reporter", "~> 1.0.0"
gem "webmock"
gem "rspec-sidekiq", "~> 2.2.0"
end
And Here is Gemfile.lock:
GIT
revision: d91e3ebecefc3ded8c17d7d786a7de6d42efebfb
specs:
dhis2 (2.2.1)
rest-client
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.7.1)
actionview (= 4.2.7.1)
activesupport (= 4.2.7.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.7.1)
activesupport (= 4.2.7.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.7.1)
activesupport (= 4.2.7.1)
globalid (>= 0.3.0)
activemodel (4.2.7.1)
activesupport (= 4.2.7.1)
builder (~> 3.1)
activerecord (4.2.7.1)
activemodel (= 4.2.7.1)
activesupport (= 4.2.7.1)
arel (~> 6.0)
activesupport (4.2.7.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
annotate (2.7.1)
activerecord (>= 3.2, < 6.0)
rake (>= 10.4, < 12.0)
arel (6.0.4)
autoprefixer-rails (6.6.1)
execjs
awesome_print (1.6.1)
axlsx (2.1.0.pre)
htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1)
rubyzip (~> 1.1.7)
axlsx_rails (0.5.0)
actionpack (>= 3.1)
axlsx (>= 2.0.1)
bcrypt (3.1.11)
benchmark-ips (2.7.2)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.3)
byebug (9.0.6)
choice (0.2.0)
chosen-rails (1.5.2)
coffee-rails (>= 3.2)
railties (>= 3.0)
sass-rails (>= 3.2)
codeclimate-test-reporter (1.0.4)
simplecov
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.4)
connection_pool (2.2.1)
crack (0.4.3)
safe_yaml (~> 1.0.0)
daemons (1.2.4)
database_cleaner (1.5.3)
debug_inspector (0.0.2)
derailed (0.1.0)
derailed_benchmarks
derailed_benchmarks (1.3.2)
benchmark-ips (~> 2)
get_process_mem (~> 0)
heapy (~> 0)
memory_profiler (~> 0)
rack (>= 1)
rake (> 10, < 13)
thor (~> 0.19)
devise (4.0.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.1)
responders
warden (~> 1.2.3)
diff-lcs (1.2.5)
docile (1.1.5)
domain_name (0.5.20161129)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
eventmachine (1.0.9.1)
execjs (2.7.0)
factory_girl (4.0.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.0.0)
factory_girl (~> 4.0.0)
railties (>= 3.0.0)
faker (1.7.2)
i18n (~> 0.5)
faraday (0.11.0)
multipart-post (>= 1.2, < 3)
figaro (1.1.1)
thor (~> 0.14)
flamegraph (0.9.5)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
get_process_mem (0.2.1)
gettext (3.1.7)
locale (>= 2.0.5)
text (>= 1.3.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
haml (4.0.7)
tilt
hashdiff (0.3.2)
heapy (0.1.2)
htmlentities (4.3.4)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (0.7.0)
jquery-rails (4.1.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.6)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.11.0)
libv8 (3.16.14.17)
locale (2.1.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
mailcatcher (0.6.5)
eventmachine (= 1.0.9.1)
mail (~> 2.3)
rack (~> 1.5)
sinatra (~> 1.2)
skinny (~> 0.2.3)
sqlite3 (~> 1.3)
thin (~> 1.5.0)
memory_profiler (0.9.7)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1)
multipart-post (2.0.0)
nested_form (0.3.2)
netrc (0.11.0)
nokogiri (1.7.0.1)
mini_portile2 (~> 2.1.0)
orm_adapter (0.5.0)
pg (0.18.4)
public_suffix (2.0.5)
rack (1.6.5)
rack-mini-profiler (0.10.1)
rack (>= 1.2.0)
rack-pjax (0.8.0)
nokogiri (~> 1.5)
rack (~> 1.1)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.7.1)
actionmailer (= 4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
activemodel (= 4.2.7.1)
activerecord (= 4.2.7.1)
activesupport (= 4.2.7.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.7.1)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-erd (1.5.0)
activerecord (>= 3.2)
activesupport (>= 3.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails4-autocomplete (1.1.1)
rails (>= 3.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_admin (0.8.1)
builder (~> 3.1)
coffee-rails (~> 4.0)
font-awesome-rails (>= 3.0, < 5)
haml (~> 4.0)
jquery-rails (>= 3.0, < 5)
jquery-ui-rails (~> 5.0)
kaminari (~> 0.14)
nested_form (~> 0.3)
rack-pjax (~> 0.7)
rails (~> 4.0)
remotipart (~> 1.0)
safe_yaml (~> 1.0)
sass-rails (>= 4.0, < 6)
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.7.1)
actionpack (= 4.2.7.1)
activesupport (= 4.2.7.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.17.0)
rake (11.3.0)
redis (3.3.2)
ref (2.0.0)
remotipart (1.3.1)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rest-client (2.0.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rest-client-logger (0.0.1)
railties (>= 3.1)
rest-client (>= 1.6)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-its (1.2.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-rails (3.5.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-support (~> 3.5.0)
rspec-sidekiq (2.2.0)
rspec (~> 3.0, >= 3.0.0)
sidekiq (>= 2.4.0)
rspec-support (3.5.0)
ruby-graphviz (1.2.2)
rubyzip (1.1.7)
safe_yaml (1.0.4)
sass (3.4.23)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sentry-raven (0.15.6)
faraday (>= 0.7.6)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
sidekiq (4.1.1)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
redis (~> 3.2, >= 3.2.1)
simple_form (3.2.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
simplecov (0.12.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
skinny (0.2.4)
eventmachine (~> 1.0.0)
thin (>= 1.5, < 1.7)
slim (3.0.6)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
spring (2.0.0)
activesupport (>= 4.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
stackprof (0.2.10)
temple (0.7.7)
text (1.3.1)
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
ref
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.5)
translation (1.6)
gettext (= 3.1.7)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.2)
unicorn (5.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
warden (1.2.6)
rack (>= 1.0)
web-console (2.0.0)
activemodel (~> 4.0)
binding_of_caller (>= 0.7.2)
railties (~> 4.0)
sprockets-rails (>= 2.0, < 4.0)
webmock (2.3.2)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
will_paginate (3.1.0)
will_paginate-bootstrap (1.0.1)
will_paginate (>= 3.0.3)
PLATFORMS
ruby
DEPENDENCIES
annotate
awesome_print (= 1.6.1)
axlsx (= 2.1.0.pre)
axlsx_rails
bootstrap-sass (= 3.3.6)
byebug
chosen-rails
codeclimate-test-reporter (~> 1.0.0)
coffee-rails (= 4.1.0)
database_cleaner
derailed
devise (= 4.0.0)
dhis2!
factory_girl_rails (= 4.0)
faker
figaro (= 1.1.1)
flamegraph
jquery-rails (= 4.1.1)
jquery-ui-rails
mailcatcher
memory_profiler
pg (= 0.18.4)
rack-mini-profiler
rails (= 4.2.7.1)
rails-erd
rails4-autocomplete
rails_12factor (= 0.0.3)
rails_admin (= 0.8.1)
rest-client (= 2.0.0)
rest-client-logger
rspec-its
rspec-rails (~> 3.0)
rspec-sidekiq (~> 2.2.0)
rubyzip (~> 1.1.0)
sass-rails (= 5.0.6)
sentry-raven (= 0.15.6)
shoulda-matchers
sidekiq (= 4.1.1)
simple_form (= 3.2.1)
simplecov
sinatra
slim (= 3.0.6)
spring
stackprof
therubyracer (= 0.12.2)
translation (= 1.6)
uglifier (= 3.0.0)
unicorn (= 5.1.0)
web-console (= 2.0)
webmock
will_paginate (= 3.1.0)
will_paginate-bootstrap (= 1.0.1)
RUBY VERSION
ruby 2.3.0p0
BUNDLED WITH
1.13.7
Bundle install result:
Using rake 11.3.0
Using i18n 0.7.0
Using json 1.8.6
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using public_suffix 2.0.5
Using execjs 2.7.0
Using awesome_print 1.6.1
Using htmlentities 4.3.4
Using rubyzip 1.1.7
Using bcrypt 3.1.11
Using benchmark-ips 2.7.2
Using debug_inspector 0.0.2
Using sass 3.4.23
Using byebug 9.0.6
Using choice 0.2.0
Using coffee-script-source 1.12.2
Using thor 0.19.4
Using concurrent-ruby 1.0.4
Using tilt 2.0.5
Using docile 1.1.5
Using simplecov-html 0.10.0
Using connection_pool 2.2.1
Using safe_yaml 1.0.4
Using daemons 1.2.4
Using database_cleaner 1.5.3
Using get_process_mem 0.2.1
Using heapy 0.1.2
Using memory_profiler 0.9.7
Using orm_adapter 0.5.0
Using unf_ext 0.0.7.2
Using netrc 0.11.0
Using diff-lcs 1.2.5
Using eventmachine 1.0.9.1
Using multipart-post 2.0.0
Using flamegraph 0.9.5
Using locale 2.1.2
Using text 1.3.1
Using hashdiff 0.3.2
Using kgio 2.11.0
Using libv8 3.16.14.17
Using sqlite3 1.3.13
Using nested_form 0.3.2
Using pg 0.18.4
Using bundler 1.13.7
Using ruby-graphviz 1.2.2
Using rails_serve_static_assets 0.0.5
Using rails_stdout_logging 0.0.5
Using remotipart 1.3.1
Using raindrops 0.17.0
Using redis 3.3.2
Using ref 2.0.0
Using rspec-support 3.5.0
Using temple 0.7.7
Using stackprof 0.2.10
Using will_paginate 3.1.0
Using faker 1.7.2
Using tzinfo 1.2.2
Using nokogiri 1.7.0.1
Using rack-test 0.6.3
Using warden 1.2.6
Using rack-protection 1.5.3
Using rack-mini-profiler 0.10.1
Using mime-types 3.1
Using addressable 2.5.0
Using autoprefixer-rails 6.6.1
Using uglifier 3.0.0
Using binding_of_caller 0.7.2
Using coffee-script 2.4.1
Using figaro 1.1.1
Using sprockets 3.7.1
Using haml 4.0.7
Using simplecov 0.12.0
Using crack 0.4.3
Using derailed_benchmarks 1.3.2
Using unf 0.1.4
Using thin 1.5.1
Using faraday 0.11.0
Using gettext 3.1.7
Using rails_12factor 0.0.3
Using unicorn 5.1.0
Using sidekiq 4.1.1
Using therubyracer 0.12.2
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using slim 3.0.6
Using will_paginate-bootstrap 1.0.1
Using activesupport 4.2.7.1
Using loofah 2.0.3
Using axlsx 2.1.0.pre
Using rack-pjax 0.8.0
Using sinatra 1.4.7
Using mail 2.6.4
Using bootstrap-sass 3.3.6
Using codeclimate-test-reporter 1.0.4
Using webmock 2.3.2
Using derailed 0.1.0
Using domain_name 0.5.20161129
Using skinny 0.2.4
Using sentry-raven 0.15.6
Using translation 1.6
Using rspec-its 1.2.0
Using rspec 3.5.0
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.7.1
Using factory_girl 4.0.0
Using shoulda-matchers 3.1.1
Using spring 2.0.0
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using mailcatcher 0.6.5
Using rspec-sidekiq 2.2.0
Using rails-dom-testing 1.0.8
Using activejob 4.2.7.1
Using activerecord 4.2.7.1
Using rest-client 2.0.0
Using actionview 4.2.7.1
Using annotate 2.7.1
Using rails-erd 1.5.0
Using dhis2 2.2.1 from git://github.com/BLSQ/dhis2.git (at master#d91e3eb)
Using actionpack 4.2.7.1
Using actionmailer 4.2.7.1
Using axlsx_rails 0.5.0
Using railties 4.2.7.1
Using sprockets-rails 3.2.0
Using kaminari 0.17.0
Using simple_form 3.2.1
Using coffee-rails 4.1.0
Using responders 2.3.0
Using factory_girl_rails 4.0.0
Using font-awesome-rails 4.7.0.1
Using jquery-rails 4.1.1
Using jquery-ui-rails 5.0.5
Using rest-client-logger 0.0.1
Using rspec-rails 3.5.2
Using sass-rails 5.0.6
Using rails 4.2.7.1
Using web-console 2.0.0
Using devise 4.0.0
Using chosen-rails 1.5.2
Using rails4-autocomplete 1.1.1
Using rails_admin 0.8.1
Bundle complete! 52 Gemfile dependencies, 150 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Problem
More than likely, the line in your Gemfile that includes the json gem looks like this:
gem 'json', '~> 2.0', '>= 2.0.3'
or something similar. This is telling rails that you want a specific version of the json gem and that the gem must be between version 2.0.3 and 2.1. The error you are getting indicates that rails is expecting an earlier version of the gem.
Solution
Remove the version indicators so that the json line in your Gemfile looks like this:
gem 'json', '~> 1.8', '>= 1.8.6'
If that doesn't work, then simply try this:
gem 'json'
Don't forget to run bundle install after modifying your Gemfile!
The version required by the gemfile is json 1.8.6 which is older than json 2.0.2 which you already have, you can try this
gem 'json', '1.8.6'
Downgrade to json 1.8.6, might be helpful.