Failing to deploy Rails app, struggling to understand Rails logs - ruby-on-rails

I have an app that works great in local and on Heroku
I am trying to deploy my Rails app to fly.io that uses docker, but it fails
I managed to get the logs, but it's had to understand which part is failing:
2022-11-23T08:29:51Z app[34fbf58e] cdg [info]bin/rails server
2022-11-23T08:29:52Z app[34fbf58e] cdg [info]=> Booting Puma
2022-11-23T08:29:52Z app[34fbf58e] cdg [info]=> Rails 6.1.5 application starting in production
2022-11-23T08:29:52Z app[34fbf58e] cdg [info]=> Run `bin/rails server --help` for more startup options
2022-11-23T08:29:53Z app[34fbf58e] cdg [info]Exiting
2022-11-23T08:29:53Z app[34fbf58e] cdg [info]/app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/delivery_methods.rb:42:in `<module:ClassMethods>': uninitialized constant Mail::TestMailer (NameError)
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] delegate :deliveries, :deliveries=, to: Mail::TestMailer
2022-11-23T08:29:53Z app[34fbf58e] cdg [info]action_mailer/delivery_methods.rb:40:in `<module:DeliveryMetho
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/delivery_methods.rb:40:in `<module:DeliveryMetho
s>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/delivery_methods.rb:8:in `<module:ActionMailer>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/delivery_methods.rb:5:in `<top (required)>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/base.rb:438:in `<class:Base>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/base.rb:437:in `<module:ActionMailer>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.5/lib/action_mailer/base.rb:12:in `<top (required)>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/app/mailers/application_mailer.rb:1:in `<top (required)>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:27:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `const_get'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `cget'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:in `block (2 levels) in eager_load'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in `block in ls'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `each_child'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in `ls'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:in `block in eager_load'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `synchronize'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in `eager_load'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `each'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in `eager_load_all'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/application/finisher.rb:133:in `block in <module:Finisher>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/initializable.rb:32:in `instance_exec'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/initializable.rb:32:in `run'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/initializable.rb:60:in `run_initializers'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/application.rb:391:in `initialize!'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/config/environment.rb:5:in `<top (required)>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from config.ru:3:in `require_relative'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from config.ru:3:in `block in <main>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/commands/server/server_command.rb:39:in `start'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/commands/server/server_command.rb:144:in `block in perform'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from <internal:kernel>:90:in `tap'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/commands/server/server_command.rb:135:in `perform'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/command/base.rb:69:in `perform'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/command.rb:48:in `invoke'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.5/lib/rails/commands.rb:18:in `<top (required)>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from bin/rails:6:in `require'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info] from bin/rails:6:in `<main>'
2022-11-23T08:29:53Z app[34fbf58e] cdg [info]rails aborted!
2022-11-23T08:29:53Z app[34fbf58e] cdg [info]Command failed with status (1): [bin/rails server...]
I am not sure if the error comes from from bin/rails:6, but I got this in the file
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative "../config/boot"
require "rails/commands"
I thought that it might be bootsnap and I disabled it in production, but it didn't change the error

Related

stimulus-rails installation rails - undefined method Stimulus::Rails.application

I have installed stimulus-rails gem on my rails 7 application. When I run the application, I get the following error.
The error is
Uncaught exception: undefined method `application' for Stimulus::Rails:Module
in lib/stimulus/engin.rb, Rails is somehow being interpreted as Stimulus::Rails instead of root class ::Rails.
Does anyone know how to handle this? Help would be greatly appreciated.
The following is the backtrace
=> Booting WEBrick
=> Rails 7.0.2.4 application starting in development http://0.0.0.0:3002
=> Run `bin/rails server --help` for more startup options
Exiting
Uncaught exception: undefined method `application' for Stimulus::Rails:Module
/Users/jae/.rvm/gems/ruby-3.0.4/gems/stimulus-rails-1.0.0/lib/stimulus/engine.rb:4:in `block in <class:Engine>'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/initializable.rb:32:in `instance_exec'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/initializable.rb:32:in `run'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in `each'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in `call'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
/Users/jae/.rvm/rubies/ruby-3.0.4/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/initializable.rb:60:in `run_initializers'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/application.rb:372:in `initialize!'
/Users/jae/src/reiance2/config/environment.rb:5:in `<main>'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in `require'
config.ru:3:in `block in <main>'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/commands/server/server_command.rb:76:in `log_to_stdout'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/commands/server/server_command.rb:36:in `start'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/commands/server/server_command.rb:143:in `block in perform'
<internal:kernel>:90:in `tap'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/commands/server/server_command.rb:134:in `perform'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/command/base.rb:87:in `perform'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/command.rb:48:in `invoke'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/railties-7.0.2.4/lib/rails/commands.rb:18:in `<main>'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/jae/.rvm/gems/ruby-3.0.4/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/jae/src/reiance2/bin/rails:9:in `<top (required)>'
Process finished with exit code 0
The problem was due to stimulusjs-rails gem
It defined Stimulus::Rails module

Ruby On Rails Server Issue (Ubuntu Bash on Windows 10)

In another thread I explained I am a newbie RoR. I had a problem with the puma 3.8.0 gem then I downgraded to fixed one issue. But, it created another problem:
/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/app_loader.rb:40: warning: Insecure world writable dir /root/.rbenv/versions in PATH, mode 040777
=> Booting Puma
=> Rails 5.0.2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/watcher.rb:74:in `initialize': Invalid argument - Failed to watch "/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/locale": the given event mask contains no legal events; or fd is not an inotify file descriptor. (Errno::EINVAL)
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb:190:in `new'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb:190:in `watch'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb:208:in `watch'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/linux.rb:32:in `_configure'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/base.rb:45:in `block in configure'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/base.rb:40:in `each'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/base.rb:40:in `configure'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/adapter/base.rb:63:in `start'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/backend.rb:28:in `start'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/listener.rb:67:in `block in <class:Listener>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/fsm.rb:120:in `instance_eval'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/fsm.rb:120:in `call'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/fsm.rb:91:in `transition_with_callbacks!'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/fsm.rb:57:in `transition'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/listen-3.0.8/lib/listen/listener.rb:90:in `start'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/evented_file_update_checker.rb:90:in `boot!'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/evented_file_update_checker.rb:61:in `initialize'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/i18n_railtie.rb:59:in `new'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/i18n_railtie.rb:59:in `initialize_i18n'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/i18n_railtie.rb:15:in `block in <class:Railtie>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:41:in `execute_hook'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:50:in `block in run_load_hooks'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `each'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `run_load_hooks'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/application/finisher.rb:65:in `block in <module:Finisher>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `instance_exec'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `run'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/initializable.rb:54:in `run_initializers'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:352:in `initialize!'
from /root/appnew/config/environment.rb:5:in `<top (required)>'
from /root/appnew/config.ru:3:in `require_relative'
from /root/appnew/config.ru:3:in `block in <main>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
from /root/appnew/config.ru:in `new'
from /root/appnew/config.ru:in `<main>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/server.rb:59:in `app'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/server.rb:124:in `log_to_stdout'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/server.rb:77:in `start'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:90:in `block in server'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
from /root/appnew/bin/rails:9:in `require'
from /root/appnew/bin/rails:9:in `<top (required)>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /root/appnew/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
I'm not too sure what I am looking at? Hoping someone can point me in the right direction.
According to https://github.com/rails/rails/issues/26054 you can create an app with:
rails new --skip-spring --skip-listen APP_NAME
As noted in the link above this should be fixed in Windows 10 Insider builds >= 14942.
I got rails server working using the command above to create my rails app.
My ruby version is 2.4.0p0, rails version is 5.1.0.beta1 and puma version 3.7.1.

rails server command show errors

I am using Rails 3.2.15 and Ruby 2.3.1 on my Ubuntu system. Whenever I am trying to start server, I am getting these errors.
rails server
/var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/values/time_zone.rb:270:
warning: circular argument reference - now
=> Booting WEBrick
=> Rails 3.2.15 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Unsupported version: 2.2.11
For more information, read the documentation:http://pat.github.com/ts/en/advanced_config.html
Exiting
/var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/mysql2-0.3.18/lib/mysql2/client.rb:70:in `connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) (Mysql2::Error)
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/mysql2-0.3.18/lib/mysql2/client.rb:70:in `initialize'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /usr/local/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /usr/local/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/model_schema.rb:310:in `clear_cache!'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activerecord-3.2.15/lib/active_record/railtie.rb:103:in `block (2 levels) in <class:Railtie>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/callbacks.rb:418:in `_run__4005937425673360809__prepare__505669176022602409__callbacks'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/callbacks.rb:405:in `__run_callback'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `instance_exec'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `run'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/initializable.rb:55:in `block in run_initializers'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `each'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `run_initializers'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/application.rb:136:in `initialize!'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /var/www/html/popthefizz.co.uk/releases/20131108040629/config/environment.rb:5:in `<top (required)>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in `require'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in `block in require'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in `require'
from /var/www/html/popthefizz.co.uk/releases/20131108040629/config.ru:3:in `block in <main>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /var/www/html/popthefizz.co.uk/releases/20131108040629/config.ru:in `new'
from /var/www/html/popthefizz.co.uk/releases/20131108040629/config.ru:in `<main>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/commands/server.rb:46:in `app'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/commands/server.rb:70:in `start'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/commands.rb:55:in `block in <top (required)>'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/commands.rb:50:in `tap'
from /var/www/vhosts/popthefizz.co.uk/shared/bundle/ruby/2.3.0/gems/railties-3.2.15/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:7:in `require'
from script/rails:7:in `<main>'
Add this to your gem file
gem 'riddle', '1.5.1'
gem 'thinking-sphinx', '2.0.11', :require => "thinking_sphinx"
and run bundle

"rails s" and "rake db:migrate" returning errors such as warning: circular argument reference

I'm trying to start up a rails project from a git repo. I have already bundle installed without any errors, and have the correct versions of Ruby (2.2.4) and Rails (4.1.9) that are specified in the Gemfile. When I try to start up the rails server using rails s on bash (Ubuntu), I get:
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/compass-core-1.0.1/lib/compass/core/caniuse.rb:72: warning: circular argument reference - browsers
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/fog-1.19.0/lib/fog/core/collection.rb:150: warning: circular argument reference - filters
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/fog-1.19.0/lib/fog/rackspace/mock_data.rb:43: warning: duplicated key at line 81 ignored: "name"
=> Booting Thin
=> Rails 4.1.9 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> 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
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/application/configuration.rb:105:in `database_configuration': Cannot load `Rails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file -
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activerecord-4.1.9/lib/active_record/railtie.rb:126:in `block (2 levels) in <class:Railtie>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `each'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activerecord-4.1.9/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `instance_exec'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `run'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:54:in `run_initializers'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/application.rb:300:in `initialize!'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'
from /home/name/Documents/RAdrive2/drive2/config/environment.rb:5:in `<top (required)>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
from /home/name/Documents/RAdrive2/drive2/config.ru:3:in `block in <main>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
from /home/name/Documents/RAdrive2/drive2/config.ru:in `new'
from /home/name/Documents/RAdrive2/drive2/config.ru:in `<main>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:50:in `app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:67:in `start'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in `server'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Pretty much the same thing happens when I do rake db:migrate. What happened here?
Try to run the commands as a super user: sudo bundle install and sudo rails server

Updated Rails to 4.2.1 and now it won't run

I have no idea what's going on. I updated my rail to version 4.2.1 and now I can't generate a server. I run
$rails s
like normal and it starts up fine but then immediately exits. I've pasted the message below. Any ideas would be greatly appreciated
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo1.2.2/lib/tzinfo/data_source.rb:182:in `rescue in create_default_data_source': No source of timezone data could be found. (TZInfo::DataSourceNotFound)
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error.
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:179:in `create_default_data_source'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:40:in `block in get'
from <internal:prelude>:10:in `synchronize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:39:in `get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:629:in `data_source'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:92:in `get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/timezone_proxy.rb:67:in `real_timezone'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/timezone_proxy.rb:30:in `period_for_utc'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:549:in `current_period'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/values/time_zone.rb:282:in `utc_offset'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/values/time_zone.rb:243:in `block in []'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/values/time_zone.rb:243:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/values/time_zone.rb:243:in `[]'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/core_ext/time/zones.rb:61:in `find_zone!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/railtie.rb:20:in `block in <class:Railtie>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/railtie.rb:194:in `public_send'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/railtie.rb:194:in `method_missing'
from C:/Users/Scott/CustomerDatabase/config/environment.rb:5:in `<top (required)>'
from C:/Users/Scott/CustomerDatabase/config.ru:3:in `require'
from C:/Users/Scott/CustomerDatabase/config.ru:3:in `block in <main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'
from C:/Users/Scott/CustomerDatabase/config.ru:in `new'
from C:/Users/Scott/CustomerDatabase/config.ru:in `<main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:49:in `eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:49:in `new_from_string'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:40:in `parse_file'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/server.rb:208:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/server.rb:336:in `wrapped_app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/server.rb:139:in `log_to_stdout'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/server.rb:78:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

Resources