Rails 5.2 fails to load in Production Environment - ruby-on-rails

I'm trying to run my new app in production, but I get a strange error.
$ rails server --environment=production
=> Booting Puma
=> Rails 5.2.2 application starting in production
=> Run `rails server -h` for more startup options
Exiting
/Users/user/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `has_one_attached' for #<Class:0x007fc50e4e3e70> (NoMethodError)
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activestorage-5.2.2/app/models/active_storage/blob/representable.rb:7:in `block in <module:Representable>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in `class_eval'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in `append_features'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activestorage-5.2.2/app/models/active_storage/blob.rb:23:in `include'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activestorage-5.2.2/app/models/active_storage/blob.rb:23:in `<class:Blob>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activestorage-5.2.2/app/models/active_storage/blob.rb:16:in `<main>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:378:in `block in require_or_load'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `block in load_interlock'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:13:in `loading'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:37:in `load_interlock'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:356:in `require_or_load'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:334:in `depend_on'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `depend_on'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:246:in `require_dependency'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:477:in `each'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:477:in `block in eager_load!'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:475:in `each'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:475:in `eager_load!'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/engine.rb:356:in `eager_load!'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/application/finisher.rb:69:in `each'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /Users/user/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
from /Users/user/Projects/My App/app-name/config/environment.rb:5:in `<main>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require_relative'
from config.ru:3:in `block in <main>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/builder.rb:55:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/builder.rb:55:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/builder.rb:49:in `eval'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/builder.rb:49:in `new_from_string'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/builder.rb:40:in `parse_file'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/server.rb:319:in `build_app_and_options_from_config'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/server.rb:219:in `app'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:27:in `app'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/server.rb:354:in `wrapped_app'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/rack-2.0.6/lib/rack/server.rb:283:in `start'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:53:in `start'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:142:in `tap'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:142:in `perform'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/command/base.rb:65:in `perform'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/command.rb:46:in `invoke'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<main>'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from bin/rails:4:in `<main>'
The usual googling hasn't turned up and helpful answers. Does anyone have an idea of how I can get this to run in the production environment?
Interestingly, the stack trace points to line 5 of environment.rb, which hasn't changed from the default, but has this line.
Rails.application.initialize!
When I comment that out, the server finally starts, but the fails as soon as I load any page (obviously).
Any pointers would be greatly appreciated! I'm not using any has_one_attached methods in my app, so I’m not sure where to look next!

Whelp. You know what? It looks like it was down to my incorrect config on the production: section of the database.yml file.

Related

Rails 7 - uninitialized constant Impressionist::Engine::ImpressionistController (NameError)

After upgrading to rails 7 I'm getting below error with the impressionist gem. When I start my local server.
Any help, please?
uninitialized constant Impressionist::Engine::ImpressionistController (NameError)
ruby "~> 3.0.1"
gem "rails", "~> 7.0.0"
gem "impressionist", git:
"https://github.com/charlotte-ruby/impressionist
I did bundle install and restarted rails server.
=> Booting Puma
=> Rails 7.0.1 application starting in development
=> Run `bin/rails server --help` for more startup options
Exiting
/Users/XXXX/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/bundler/gems/impressionist-e0db056a2ac0/lib/impressionist/engine.rb:15:in `block (2 levels) in <class:Engine>': uninitialized constant Impressionist::Engine::ImpressionistController (NameError)
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/activesupport-7.0.1/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/bundler/gems/impressionist-e0db056a2ac0/lib/impressionist/engine.rb:14:in `block in <class:Engine>'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/initializable.rb:32:in `run'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `each'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `call'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/application.rb:372:in `initialize!'
from /Users/xxxx/Dev/pro/config/environment.rb:5:in `<main>'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'
from config.ru:3:in `block in <main>'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:76:in `log_to_stdout'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:36:in `start'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:143:in `block in perform'
from <internal:kernel>:90:in `tap'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands/server/server_command.rb:134:in `perform'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/command/base.rb:87:in `perform'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/command.rb:48:in `invoke'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/railties-7.0.1/lib/rails/commands.rb:18:in `<main>'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /Users/xxxx/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from bin/rails:4:in `<main>'
Try this:
# add to application.rb at the top
impressionist_dir = Gem::Specification.find_by_name('impressionist').gem_dir
require File.join(impressionist_dir, '/app/controllers/impressionist_controller.rb')

Impossible to launch rails s after a scaffold regeneration

I've delete scaffolded files after a renaming my Company class to Organization, using:
rails destroy scaffold Company -f
then
rails generate scaffold Organization
From now, I can't run rails s and have the following errors:
rails s
=> Booting Puma
=> Rails 5.2.1 application starting in development
=> Run `rails server -h` for more startup options
Exiting
/.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant': uninitialized constant Organization (NameError)
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `rescue in load_missing_constant'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:56:in `load_missing_constant'
from /Projects/myapp/app/admin/organizations.rb:1:in `<main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:130:in `block in load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/error.rb:41:in `capture'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:130:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:122:in `block in load!'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:122:in `each'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:122:in `load!'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin/application.rb:148:in `routes'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activeadmin-1.4.3/lib/active_admin.rb:77:in `routes'
from /Projects/myapp/config/routes.rb:3:in `block in <main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:414:in `draw'
from /Projects/myapp/config/routes.rb:1:in `<main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:41:in `block in load_paths'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:41:in `each'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:41:in `load_paths'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:20:in `reload!'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:30:in `block in updater'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/activesupport-5.2.1/lib/active_support/file_update_checker.rb:83:in `execute'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/routes_reloader.rb:10:in `execute'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application/finisher.rb:130:in `block in <module:Finisher>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
from /Projects/myapp/config/environment.rb:5:in `<main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require_relative'
from config.ru:3:in `block in <main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `instance_eval'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:49:in `eval'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:49:in `new_from_string'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/builder.rb:40:in `parse_file'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:319:in `build_app_and_options_from_config'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:219:in `app'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:27:in `app'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/rack-2.0.6/lib/rack/server.rb:354:in `wrapped_app'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:89:in `log_to_stdout'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:51:in `start'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:147:in `block in perform'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Projects/myapp/bin/rails:9:in `<top (required)>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /.rbenv/versions/2.4.5/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /.rbenv/versions/2.4.5/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /Projects/myapp/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
MacBook-Pro-de-Benjami$
Any clue?

Rails: Couldn't load the Unicode tables for UTF8Handler

I'm on a fresh Ubuntu 17.10 machine, Ruby 2.2.3 installed with RVM, and I'm trying to run a Rails 4.2 application.
After rails s command I get:
davide#davidell:~/app/app-backend$ rails s
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array ({"GEM_PATH"=>["/home/davide/.rvm/gems/ruby-2.2.3#app", "/home/davide/.rvm/gems/ruby-2.2.3#global"]}) was passed in from bin/rails:3:in `load'
=> Booting Puma
=> Rails 4.2.4 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:338:in `rescue in load': Couldn't load the Unicode tables for UTF8Handler (undefined method `getbyte' for false:FalseClass), ActiveSupport::Multibyte is unusable (IOError)
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:335:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:326:in `codepoints'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:147:in `block in decompose'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:136:in `each'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:136:in `inject'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:136:in `decompose'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/multibyte/unicode.rb:270:in `normalize'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/inflector/transliterate.rb:62:in `transliterate'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/inflector/transliterate.rb:83:in `parameterize'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/core_ext/string/inflections.rb:168:in `parameterize'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/scope.rb:35:in `initialize'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/resource/scopes.rb:34:in `new'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/resource/scopes.rb:34:in `scope'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/resource_dsl.rb:22:in `scope'
from /home/davide/app/app-backend/app/admin/venue.rb:28:in `block in <top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/dsl.rb:15:in `instance_exec'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/dsl.rb:15:in `run_registration_block'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/namespace.rb:223:in `parse_registration_block'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/namespace.rb:48:in `register'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:151:in `register'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin.rb:75:in `register'
from /home/davide/app/app-backend/app/admin/venue.rb:1:in `<top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:209:in `block in load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/error.rb:41:in `capture'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:209:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:201:in `block in load!'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:201:in `each'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:201:in `load!'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin/application.rb:223:in `routes'
from /home/davide/.rvm/gems/ruby-2.2.3#app/bundler/gems/activeadmin-893b46c6530c/lib/active_admin.rb:79:in `routes'
from /home/davide/app/app-backend/config/routes.rb:320:in `block (2 levels) in <top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:940:in `block in constraints'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:816:in `scope'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:940:in `constraints'
from /home/davide/app/app-backend/config/routes.rb:316:in `block in <top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:412:in `draw'
from /home/davide/app/app-backend/config/routes.rb:1:in `<top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `each'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/file_update_checker.rb:75:in `call'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/file_update_checker.rb:75:in `execute'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:27:in `updater'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /usr/share/rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'
from /home/davide/app/app-backend/config/environment.rb:5:in `<top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /home/davide/app/app-backend/config.ru:20:in `block in <main>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /home/davide/app/app-backend/config.ru:in `new'
from /home/davide/app/app-backend/config.ru:in `<main>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/server.rb:61:in `app'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/server.rb:78:in `start'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
from /home/davide/app/app-backend/bin/rails:8:in `require'
from /home/davide/app/app-backend/bin/rails:8:in `<top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/client/rails.rb:28:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/client/rails.rb:28:in `call'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/client/command.rb:7:in `call'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/client.rb:28:in `run'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/bin/spring:49:in `<top (required)>'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/binstub.rb:11:in `load'
from /home/davide/.rvm/gems/ruby-2.2.3#app/gems/spring-1.4.0/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/davide/app/app-backend/bin/spring:13:in `require'
from /home/davide/app/app-backend/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
After several rails s tries, it works, but it's a totally random number of trials. If I stop the application, the same error occurs, and after several other tries, it works. So random.
Now I got:
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Can't start server

Cloned project from heroku and installed all gems with bundle.
That is what my server say to me.
$ rails s
=> Booting Puma
=> Rails 4.2.2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(is not URI?): (URI::InvalidURIError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/pusher-0.15.1/lib/pusher/client.rb:53:in `url='
from /Users/abdullahatkaev/the247clinic/config/initializers/pusher.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `block in load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:166:in `instrument'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:651:in `load_config_initializer'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:615:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `tsort_each_child'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
from /Users/abdullahatkaev/the247clinic/config/environment.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `block in require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /Users/abdullahatkaev/the247clinic/config.ru:3:in `block in <main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /Users/abdullahatkaev/the247clinic/config.ru:in `new'
from /Users/abdullahatkaev/the247clinic/config.ru:in `<main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:61:in `app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:78:in `start'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/abdullahatkaev/the247clinic/bin/rails:8:in `require'
from /Users/abdullahatkaev/the247clinic/bin/rails:8:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/abdullahatkaev/the247clinic/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Anybody knows how to fix it?
Maybe i should to do something more then only bundle. I am just starting, sorry if its to easy.
You are missing configuration variable(s) and the pusher initializer cannot read the url, because its missing an url. You see it this line from your backtrace:
from /Users/abdullahatkaev/the247clinic/config/initializers/pusher.rb:1:in `<top (required)>'
Check this file to see what you need exactly. It depends on your project how you can set the url. Either through rails or something like dotenv.

Rails Server immediately exists start up

Hi I'm new to Rails and have absolutely no idea why rails server won't work. I have no doubt the answer is in all this code below but I'm completely stuck. Any ideas?
Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 14 column 1 (Psych::SyntaxError)
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:245:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/application.rb:313:in `secrets'
from /Users/user/workspace/learn-rails/config/environments/development.rb:33:in `block in <top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/railtie.rb:210:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/railtie.rb:210:in `configure'
from /Users/user/workspace/learn-rails/config/environments/development.rb:1:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:593:in `each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:593:in `block in <class:Engine>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `run'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:44:in `each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/application.rb:288:in `initialize!'
from /Users/user/workspace/learn-rails/config/environment.rb:5:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/workspace/learn-rails/config.ru:3:in `block in <main>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/user/workspace/learn-rails/config.ru:in `new'
from /Users/user/workspace/learn-rails/config.ru:in `<main>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:50:in `app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:67:in `start'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/user/workspace/learn-rails/bin/rails:8:in `require'
from /Users/user/workspace/learn-rails/bin/rails:8:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/user/workspace/learn-rails/bin/spring:16:in `require'
from /Users/user/workspace/learn-rails/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
The config/secrets.yml file is invalid.
YAML is whitespace sensitive so make sure to check that there are no leading whitespaces. If you aren't sure if your YAML file is valid, try pasting it into this yaml validator http://yamllint.com/ to see if its valid.
I solved my problem restoring the last version of Gemfile

Resources