Ruby on Rails 3 JSON Error - ruby-on-rails

I am trying to deploy to vexxhost with capistrano and this is what I get at the final step of the deployment process:
command finished in 344ms
** transaction: commit
* executing `deploy:restart'
/Users/kleon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/json/common.rb:148:in `parse': 743: unexpected token at 'gem 'unicorn', '4.1.1' (JSON::ParserError)
{"cpanelresult":{"data":[{"status":1,"statusmsg":"restart ok"}],"event":{"result":1},"module":"RoR","apiversion":2,"func":"restartapp"}}
'
from /Users/kleon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/json/common.rb:148:in `parse'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-vexxhost-1.0.0/lib/capistrano-vexxhost/capistrano_integration.rb:118:in `block in cpanel_api2_command'
from /Users/kleon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /Users/kleon/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:557:in `start'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-vexxhost-1.0.0/lib/capistrano-vexxhost/capistrano_integration.rb:114:in `cpanel_api2_command'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-vexxhost-1.0.0/lib/capistrano-vexxhost/capistrano_integration.rb:69:in `block (3 levels) in <top (required)>'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/recipes/deploy.rb:171:in `block (2 levels) in load'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:45:in `each'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:34:in `execute!'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/gems/capistrano-2.11.2/bin/cap:4:in `<top (required)>'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/bin/cap:19:in `load'
from /Users/kleon/.rvm/gems/ruby-1.9.3-p0#rails3_atlnetsolutions/bin/cap:19:in `<main>'

Related

ruby on rails post tzinfo data install bundle errors

As the title suggests having difficulty with getting ruby on rails set up. I was able to install and update to latest versions. Initially I was receiving a tzinfo data not found in gem file. I added it to the said gem file and ran the recommended bundle install thereafter and now obtaining this error. I'm a relatively new dev and I dont really know what I'm looking at regarding this error. Any help would be appreciated and think of me as a function that returns null :)
[19628, #<Thread:0x00000257bdca97b8 run>, #<NameError: uninitialized constant Gem::Source
(defined?(#source) && #source) || Gem::Source::Installed.new
^^^^^^^^
Did you mean? Gem::SourceList>, ["C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'", "C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:1:in `<top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `require_relative'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `<top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `require_relative'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `<top (required)>'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli/install.rb:50:in `run'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:255:in `block in install'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/settings.rb:131:in `temporary'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:254:in `install'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'", "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'", "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'", "C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'", "C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'"]]
[19628, #<Thread:0x00000257bdca97b8 run>, #<RuntimeError: CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true>, ["<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `ensure in require'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `require'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:1:in `<top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `require_relative'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `<top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `require_relative'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `<top (required)>'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'", "<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli/install.rb:50:in `run'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:255:in `block in install'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/settings.rb:131:in `temporary'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:254:in `install'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'", "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'", "C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'", "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'", "C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'", "C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'"]]
C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source': uninitialized constant Gem::Source (NameError)
(defined?(#source) && #source) || Gem::Source::Installed.new
^^^^^^^^
Did you mean? Gem::SourceList
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:26:in `log_error'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:109:in `rescue in with_friendly_errors'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:101:in `with_friendly_errors'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'
<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli/install.rb:50:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:255:in `block in install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/settings.rb:131:in `temporary'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:254:in `install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'
<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:167:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:1:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `require_relative'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `require_relative'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `<top (required)>'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli/install.rb:50:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:255:in `block in install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/settings.rb:131:in `temporary'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:254:in `install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'
C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source': uninitialized constant Gem::Source (NameError)
(defined?(#source) && #source) || Gem::Source::Installed.new
^^^^^^^^
Did you mean? Gem::SourceList
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:18:in `source'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/rubygems_ext.rb:50:in `extension_dir'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:339:in `have_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/basic_specification.rb:86:in `contains_requirable_file?'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1038:in `block (2 levels) in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2555:in `block (2 levels) in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2550:in `block in traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:2548:in `traverse'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1034:in `block in find_in_unresolved_tree'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/specification.rb:1033:in `find_in_unresolved_tree'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:114:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb:1:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `require_relative'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendored_persistent.rb:11:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `require_relative'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/fetcher.rb:3:in `<top (required)>'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli/install.rb:50:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:255:in `block in install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/settings.rb:131:in `temporary'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:254:in `install'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'
from C:/Ruby31-x64/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
from C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'

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

Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) (Redis::CannotConnectError)

I try to connect to reddis On c9.io
But get this error
/usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:344:in `rescue in establish_connection': Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) (Redis::CannotConnectError)
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:329:in `establish_connection'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:99:in `block in connect'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:291:in `with_reconnect'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:98:in `connect'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:363:in `ensure_connected'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:219:in `block in process'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:304:in `logging'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:218:in `process'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:118:in `call'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis.rb:1330:in `block in sadd'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis.rb:45:in `block in synchronize'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis.rb:45:in `synchronize'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis.rb:1329:in `sadd'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-namespace-1.6.0/lib/redis/namespace.rb:442:in `call_with_namespace'
from /usr/local/rvm/gems/ruby-2.4.0/gems/redis-namespace-1.6.0/lib/redis/namespace.rb:328:in `method_missing'
from /usr/local/rvm/gems/ruby-2.4.0/gems/resque-1.27.4/lib/resque/data_store.rb:59:in `method_missing'
from /usr/local/rvm/gems/ruby-2.4.0/gems/resque-scheduler-4.3.1/lib/resque/scheduler/scheduling_extensions.rb:94:in `set_schedule'
from /usr/local/rvm/gems/ruby-2.4.0/gems/resque-scheduler-4.3.1/lib/resque/scheduler/scheduling_extensions.rb:51:in `block in schedule='
from /usr/local/rvm/gems/ruby-2.4.0/gems/resque-scheduler-4.3.1/lib/resque/scheduler/scheduling_extensions.rb:50:in `each'
from /usr/local/rvm/gems/ruby-2.4.0/gems/resque-scheduler-4.3.1/lib/resque/scheduler/scheduling_extensions.rb:50:in `schedule='
from /home/ubuntu/workspace/UnicumParser/config/initializers/resque.rb:4:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:648:in `block in load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:166:in `instrument'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:647:in `load_config_initializer'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:611:in `each'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `each'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:415:in `call'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/application.rb:352:in `initialize!'
from /home/ubuntu/workspace/UnicumParser/config/environment.rb:5:in `<top (required)>'
from /home/ubuntu/workspace/UnicumParser/config.ru:3:in `require_relative'
from /home/ubuntu/workspace/UnicumParser/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
from /home/ubuntu/workspace/UnicumParser/config.ru:in `new'
from /home/ubuntu/workspace/UnicumParser/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/server.rb:59:in `app'
from /usr/local/rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/server.rb:124:in `log_to_stdout'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/server.rb:77:in `start'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in server'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /home/ubuntu/workspace/UnicumParser/bin/rails:9:in `require'
from /home/ubuntu/workspace/UnicumParser/bin/rails:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /home/ubuntu/workspace/UnicumParser/bin/spring:14:in `require'
from /home/ubuntu/workspace/UnicumParser/bin/spring:14:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
resque.rb file:
require 'resque'
require 'resque/scheduler'
Resque.schedule = YAML.load_file(File.join(Rails.root, 'config/resque_schedule.yml'))
Resque.logger = Logger.new(Rails.root.join('log', "#{Rails.env}_resque.log"))
Resque.logger.level = Logger::INFO
rails_env = ENV['RAILS_ENV'] || 'development'
Resque.redis.namespace = "resque:#{rails_env}"

Elastic Beanstalk Rails deploy mystery initialize error

I am trying to deploy an existing heroku app to EC2 using Beanstalk.
So far I have all the Environment variables moved over and the database setup.. etc. It seems to work and deploy correct except for Puma.
The puma.log file has the following in it over and over;
/opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `initialize': no implicit conversion of nil into String (TypeError)
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `new'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `join'
from /var/app/current/config/initializers/cloudfront-signer.rb:2:in `block in <top (required)>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/cloudfront-signer-2.2.0/lib/cloudfront-signer.rb:108:in `configure'
from /var/app/current/config/initializers/cloudfront-signer.rb:1:in `<top (required)>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `call'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
from /var/app/current/config/environment.rb:5:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/configuration.rb:102:in `load_rackup'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/configuration.rb:69:in `app'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/runner.rb:123:in `app'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/runner.rb:130:in `start_server'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:213:in `worker'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `block (2 levels) in spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `fork'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `block in spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:105:in `times'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:105:in `spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:157:in `check_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:421:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cli.rb:216:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/bin/puma:10:in `<top (required)>'
from /opt/rubies/ruby-2.2.2/bin/puma:23:in `load'
from /opt/rubies/ruby-2.2.2/bin/puma:23:in `<main>'
I have no clue what this is or why its happening and am at a complete loss..
Line 5 of config/environment is Rails.application.initialize!
Line 3 of config.ru is run Rails.application
So does this mean that Rails.application hasn't been defined? I'm a tad confused.
Again this app works perfectly on Heroku.
Suggestions?

Rails Console not starting up

I am trying to run rails console rails c in ConEmu and Cmder but get the following error....
C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `initialize': No such
file or directory # rb_sysopen - C:/Users/user.name/Documents/parentDir/app_dir/log/app_dev.log (Errno::ENOENT)
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:600:in `create_l
ogfile'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:594:in `rescue i
n open_logfile'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:591:in `open_log
file'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:549:in `initiali
ze'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:318:in `new'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:318:in `initiali
ze'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:57:in `new'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:57:in `block in <top (require
d)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:210:in `instance_eval'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:210:in `configure'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:182:in `configure'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:11:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `block in require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:593:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:593:in `block in <class:Engine>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:30:in `instance_exec'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:30:in `run'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:55:in `block in run_initializers'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:226:in `block in
tsort_each'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:348:in `block (2
levels) in each_strongly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:418:in `block (2
levels) in each_strongly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:427:in `each_stro
ngly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:417:in `block in
each_strongly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:44:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:44:in `tsort_each_child'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:411:in `call'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:411:in `each_stro
ngly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:347:in `block in
each_strongly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `each'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `call'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `each_stro
ngly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:224:in `tsort_eac
h'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:205:in `tsort_eac
h'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:54:in `run_initializers'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/application.rb:300:in `initialize!'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environment.rb:5:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `block in require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/application.rb:276:in `require_environment!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:147:in `require_application_and_
environment!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:68:in `console'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I can run rails console in the terminal on RubyMine but that is the most useless terminal ever to exist. Any idea what might be causing this?
It says that log/app_dev.log file is missing - try to create it in the app directory and see what happens.

Resources