[root@ip-172-27-21-18 application-server]# /usr/local/bin/bundle exec rails console Loading production environment (Rails 5.2.3) Invalid gemspec in [/var/www/application-server/vendor/bundle/ruby/2.4/specifications/js_cookie_rails-2.2.0.gemspec]: can't modify frozen Gem::Version /usr/local/share/ruby/gems/2.4/gems/bundler-2.0.2/lib/bundler/stub_specification.rb:97:in `_remote_specification': The gemspec for js_cookie_rails-2.2.0 at /var/www/application-server/vendor/bundle/ruby/2.4/specifications/js_cookie_rails-2.2.0.gemspec was missing or broken. Try running `gem pristine js_cookie_rails -v 2.2.0` to fix the cached spec. (Bundler::GemspecError) from /usr/local/share/ruby/gems/2.4/gems/bundler-2.0.2/lib/bundler/remote_specification.rb:106:in `method_missing' from /usr/share/ruby/vendor_ruby/2.4/rubygems/specification.rb:1040:in `block in find_by_path' from /usr/local/share/ruby/gems/2.4/gems/bundler-2.0.2/lib/bundler/spec_set.rb:148:in `each' from /usr/local/share/ruby/gems/2.4/gems/bundler-2.0.2/lib/bundler/spec_set.rb:148:in `each' from /usr/share/ruby/vendor_ruby/2.4/rubygems/specification.rb:1039:in `find' from /usr/share/ruby/vendor_ruby/2.4/rubygems/specification.rb:1039:in `find_by_path' from /usr/share/ruby/vendor_ruby/2.4/rubygems.rb:209:in `try_activate' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:150:in `block in search_file' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:158:in `block in each_localized_path' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:167:in `each_sublocale' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:157:in `each_localized_path' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:145:in `search_file' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:124:in `find' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:108:in `load' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/locale.rb:32:in `initialize' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/init.rb:112:in `new' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/init.rb:112:in `init_config' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb/init.rb:17:in `setup' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/irb-1.0.0/lib/irb.rb:376:in `start' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/commands/console/console_command.rb:64:in `start' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/commands/console/console_command.rb:19:in `start' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/commands/console/console_command.rb:96:in `perform' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/railties-5.2.3/lib/rails/commands.rb:18:in `
' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' from /var/www/application-server/vendor/bundle/ruby/2.4/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' from bin/rails:4:in `
' [root@ip-172-27-21-18 application-server]#