I'm migrating my app to Heroku and using a MySQL ClearDB addon. However, upon deploying and attempting to view the app, leads to the page:
and the log (my apologies for the length):
2015-03-17T02:25:14.688899+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2015-03-17T02:25:14.688917+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2015-03-17T02:25:14.688914+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2015-03-17T02:25:14.688915+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2015-03-17T02:25:14.688918+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2015-03-17T02:25:14.688921+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2015-03-17T02:25:14.688923+00:00 app[web.1]: from bin/rails:4:in `require'
2015-03-17T02:25:14.688924+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-03-17T02:25:15.498865+00:00 heroku[web.1]: Process exited with status 1
2015-03-17T02:25:16.549374+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=boiling-tor-3589.herokuapp.com request_id=4675fd2
5-7ef8-41cb-929b-1edab9d13189 fwd="*************" dyno= connect= service= status=503 bytes=
2015-03-17T02:25:15.517544+00:00 heroku[web.1]: State changed from starting to crashed
2015-03-17T02:25:16.869085+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=boiling-tor-3589.herokuapp.com request
_id=44755c2f-fbb2-45d2-a2cb-320224891ada fwd="*************" dyno= connect= service= status=503 bytes=
2015-03-17T02:26:48+00:00 heroku[slug-compiler]: Slug compilation started
2015-03-17T02:27:19.225204+00:00 heroku[api]: Deploy 01fdec8 by kjakah08#gmail.com
2015-03-17T02:27:19.225204+00:00 heroku[api]: Release v15 created by kjakah08#gmail.com
2015-03-17T02:27:19+00:00 heroku[slug-compiler]: Slug compilation finished
2015-03-17T02:27:19.596998+00:00 heroku[web.1]: State changed from crashed to starting
2015-03-17T02:27:24.842389+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 4736 -e production`
2015-03-17T02:27:27.872900+00:00 app[web.1]: /app/config/application.rb:12:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
2015-03-17T02:27:33.560719+00:00 app[web.1]: => Booting WEBrick
2015-03-17T02:27:33.561366+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activemodel-4.0.1/lib/active_model/validations/validates.rb:105:in `validates':
You need to supply at least one validation (ArgumentError)
2015-03-17T02:27:33.561375+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2015-03-17T02:27:33.560727+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-03-17T02:27:33.561373+00:00 app[web.1]: from /app/app/models/active_campaign_dow.rb:1:in `<top (required)>'
2015-03-17T02:27:33.560723+00:00 app[web.1]: => Rails 4.0.1 application starting in production on http://0.0.0.0:4736
2015-03-17T02:27:33.560725+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-03-17T02:27:33.560728+00:00 app[web.1]: Exiting
2015-03-17T02:27:33.561377+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block inrequire'
2015-03-17T02:27:33.561398+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2015-03-17T02:27:33.561380+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2015-03-17T02:27:33.561390+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:464:in `block in eager_load!'
2015-03-17T02:27:33.561372+00:00 app[web.1]: from /app/app/models/active_campaign_dow.rb:6:in `<class:ActiveCampaignDow>'
2015-03-17T02:27:33.561412+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
2015-03-17T02:27:33.561381+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:330:in `require_or_load'
2015-03-17T02:27:33.561379+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
2015-03-17T02:27:33.561396+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:347:in `eager_load!'
2015-03-17T02:27:33.561400+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2015-03-17T02:27:33.561386+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:207:in `require_dependency'
2015-03-17T02:27:33.561407+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-03-17T02:27:33.561394+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:462:in `eager_load!'
2015-03-17T02:27:33.561387+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:465:in `block (2 levels) in eager_load!'
2015-03-17T02:27:33.561411+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
2015-03-17T02:27:33.561389+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:464:in `each'
2015-03-17T02:27:33.561410+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
2015-03-17T02:27:33.561438+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
2015-03-17T02:27:33.561429+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
2015-03-17T02:27:33.561450+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2015-03-17T02:27:33.561434+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-03-17T02:27:33.561414+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
2015-03-17T02:27:33.561391+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/engine.rb:462:in `each'
2015-03-17T02:27:33.561433+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2015-03-17T02:27:33.561436+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block inrequire'
2015-03-17T02:27:33.561447+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-03-17T02:27:33.561454+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2015-03-17T02:27:33.561385+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:289:in `depend_on'
2015-03-17T02:27:33.561418+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2015-03-17T02:27:33.561397+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `each'
2015-03-17T02:27:33.561446+00:00 app[web.1]: from /app/config.ru:in `new'
2015-03-17T02:27:33.561439+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2015-03-17T02:27:33.561404+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-03-17T02:27:33.561451+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2015-03-17T02:27:33.561459+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2015-03-17T02:27:33.561456+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2015-03-17T02:27:33.561405+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
2015-03-17T02:27:33.561463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
2015-03-17T02:27:33.561403+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
2015-03-17T02:27:33.561417+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
2015-03-17T02:27:33.561457+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2015-03-17T02:27:33.561449+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2015-03-17T02:27:33.561469+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-03-17T02:27:33.561435+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2015-03-17T02:27:33.561458+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2015-03-17T02:27:33.561465+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2015-03-17T02:27:33.561442+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2015-03-17T02:27:33.561445+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2015-03-17T02:27:33.561441+00:00 app[web.1]: from /app/config.ru:3:in `blockin <main>'
2015-03-17T02:27:33.561462+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2015-03-17T02:27:33.561466+00:00 app[web.1]: from bin/rails:4:in `require'
2015-03-17T02:27:34.456959+00:00 heroku[web.1]: State changed from starting to crashed
From the log, there are no explicit errors aside from showing the app crashed error page. I configured everything correctly.
Why won't the app show?
I think this line is rellevant
[....]/active_model/validations/validates.rb:105:in `validates':
You need to supply at least one validation (ArgumentError)
From the backtrace it seems like you have source of the problem in app/models/active_campaign_dow.rb:6, probably mailformed validates call
Related
I'm trying to make my first rails application, however when i try to run rails server however it just gives me a load of text. I'm running this on arch linux and used the ruby-rails bundle from the AUR.
this is what it gives me when it try to run the command
[drew#rhino sophia]$ rails server
=> Booting Puma
=> Rails 5.2.0 application starting in development
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
70: from bin/rails:3:in `<main>'
69: from bin/rails:3:in `load'
68: from /home/drew/work/spproject/sophia/sophia/bin/spring:15:in `<top (required)>'
67: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require'
66: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require'
65: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
64: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
63: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
62: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
61: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
60: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
59: from /usr/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
58: from /home/drew/work/spproject/sophia/sophia/bin/rails:9:in `<top (required)>'
57: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
56: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
55: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
54: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
53: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
52: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
51: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
50: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
49: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
48: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
47: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
46: from /usr/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
45: from /usr/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
44: from /usr/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
43: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform'
42: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap'
41: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
40: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:51:in `start'
39: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:89:in `log_to_stdout'
38: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
37: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:27:in `app'
36: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
35: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
34: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
33: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
32: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
31: from config.ru:in `<main>'
30: from config.ru:in `new'
29: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
28: from /usr/lib/ruby/gems/2.5.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
27: from config.ru:3:in `block in <main>'
26: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require_relative'
25: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
24: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
23: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
22: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
21: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
20: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
19: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
18: from /usr/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
17: from /home/drew/work/spproject/sophia/sophia/config/environment.rb:5:in `<main>'
16: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
15: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
14: from /usr/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
13: from /usr/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
12: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
11: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `call'
10: from /usr/lib/ruby/2.5.0/tsort.rb:347:in `each'
9: from /usr/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
8: from /usr/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
7: from /usr/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
6: from /usr/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
5: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
4: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
3: from /home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
2: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/railtie.rb:42:in `block in <class:Railtie>'
1: from /usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/zones.rb:82:in `find_zone!'
/usr/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/zones.rb:100:in `rescue in find_zone!': Invalid Timezone: UTC (ArgumentError)
EDIT gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.7.7
- RUBY VERSION: 2.5.1 (2018-03-29 patchlevel 57) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/2.5.0
- USER INSTALLATION DIRECTORY: /home/drew/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /home/drew/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/2.5.0
- /home/drew/.gem/ruby/2.5.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--user-install"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/bin
- /usr/bin
- /bin
- /usr/local/sbin
- /usr/lib/jvm/default/bin
- /usr/bin/site_perl
- /usr/bin/vendor_perl
- /usr/bin/core_perl
Paste of $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Paste of application.rb
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Sophia
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.2
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
end
end
Paster of rails migrate:db
rails aborted!
ArgumentError: Invalid Timezone: UTC
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
/home/drew/work/spproject/sophia/sophia/config/environment.rb:5:in `<main>'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in `require_environment!'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
/home/drew/work/spproject/sophia/sophia/bin/rails:9:in `<top (required)>'
/home/drew/work/spproject/sophia/sophia/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
TZInfo::InvalidTimezoneIdentifier: Expected 44 bytes reading '/usr/share/zoneinfo/UTC', but got 0 bytes
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb:205:in `rescue in load_timezone_info'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb:202:in `load_timezone_info'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone.rb:92:in `get'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
/home/drew/work/spproject/sophia/sophia/config/environment.rb:5:in `<main>'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in `require_environment!'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
/home/drew/work/spproject/sophia/sophia/bin/rails:9:in `<top (required)>'
/home/drew/work/spproject/sophia/sophia/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
TZInfo::InvalidZoneinfoFile: Expected 44 bytes reading '/usr/share/zoneinfo/UTC', but got 0 bytes
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb:53:in `check_read'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb:169:in `parse'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb:28:in `block in initialize'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb:27:in `open'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb:27:in `initialize'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb:203:in `new'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb:203:in `load_timezone_info'
/home/drew/.gem/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone.rb:92:in `get'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
/home/drew/work/spproject/sophia/sophia/config/environment.rb:5:in `<main>'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in `require_environment!'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
/home/drew/.gem/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
/home/drew/work/spproject/sophia/sophia/bin/rails:9:in `<top (required)>'
/home/drew/work/spproject/sophia/sophia/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
See at config/application.rb the config.time_zone section.
You could run rake -D time to show all timezone available.
You may have a migration pending. Try running:
rails db:migrate
Add a time_zone to your config file,
config.time_zone = 'Australia/Melbourne'
You can change it to be whatever timezone your application will be in, you can also do
config.time_zone = 'UTC'
Experienced the same problem, showed that my teammate had changed the config/master.key code. Once updated, things went to normal again.
Currently I'm using the latest version of rails_admin and devise gem and have to two signed_in users
Running via Spring preloader in process 4912
Loading development environment (Rails 5.0.0.1)
2.3.1 :001 > u = User.first
User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
=> #<User id: 1, email: "dhami.khawas#gmail.com", created_at: "2016-08-15 10:26:16", updated_at: "2016-08-16 12:48:11">
2.3.1 :002 > u = User.last
User Load (0.7ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT ? [["LIMIT", 1]]
=> #<User id: 2, email: "linux#gmail.com", created_at: "2016-08-16 10:03:10", updated_at: "2016-08-19 08:18:23">
2.3.1 :003
How do I make any one of them as Admin User? I tried running below operation but ended up in errors.
2.3.1 :004 > u.admin
NoMethodError: undefined method `admin' for #<User:0x00000002d3dbf8>
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activemodel-5.0.0.1/lib/active_model/attribute_methods.rb:433:in `method_missing'
from (irb):4
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/console.rb:65:in `start'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/console_helper.rb:9:in `start'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:78:in `console'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /home/bikal/workspace/concert_nepal/bin/rails:9:in `<top (required)>'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `block in load'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/commands/rails.rb:6:in `call'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/command_wrapper.rb:38:in `call'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:191:in `block in serve'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:161:in `fork'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:161:in `serve'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:131:in `block in run'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:125:in `loop'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:125:in `run'
from /home/bikal/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /home/bikal/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/bikal/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
2.3.1 :005 >
When I run rails s I get the following error message. I have tried replacing all spaces with tabs and vice versa, but am unable to come to a solution.
The console output is here:
SEEMAs-Mac-mini:colloquy_new seemashenoy$ rails s
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 18 column 1 (Psych::SyntaxError)
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /Users/seemashenoy/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/psych.rb:129:in `load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/application/configuration.rb:115:in `database_configuration'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-3.2.13/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `each'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-3.2.13/lib/active_record/railtie.rb:74:in `block in <class:Railtie>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config/environment.rb:5:in `<top (required)>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:3:in `block in <main>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:in `new'
from /Users/seemashenoy/Desktop/arjun/colloquy_new/config.ru:in `<main>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/seemashenoy/.rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
And my database.yml file is below
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: colloquy_development
pool: 5
username: root
password:
socket: /Applications/MAMP/tmp/mysql/mysql.sock
I created a new Rails application using the command from the Ubuntu terminal:
rails new testing -d mysql
I then added the root password in the database.yml file
when I run the command rails server to run the application on the server the following occurs:
=> Booting WEBrick
=> Rails 3.2.13 application starting in`enter code here` development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/russian/.rvm/gems/ruby-1.9.3-p392/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Unknown database 'testing_development' (Mysql2::Error)
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /home/russian/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /home/russian/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/railtie.rb:88:in `block in <class:Railtie>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /home/russian/.rvm/gems/ruby-1.9.3-p392`enter code here`/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/russian/testing/config/environment.rb:5:in `<top (required)>'
from /home/russian/testing/config.ru:3:in `require'
from /home/russian/testing/config.ru:3:in `block in <main>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /home/russian/testing/config.ru:in `new'
from /home/russian/testing/config.ru:in `<main>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /home/russian/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Can anyone help me with the problem?
You have to create the Database first.
I have just updated to rails 3.2 running on JRuby-1.6.5 and when I run rake db:migrate, I get the following error:
undefined method `accept' for nil:NilClass
Here is the trace:
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
to_sql'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:36:in
select_values'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:571:in
get_all_versions'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:729:in
migrated'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:652:in
current_version'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:669:in
migrate' org/jruby/RubyEnumerable.java:552:in detect'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:669:in
migrate'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:554:in
up'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/migration.rb:535:in
migrate'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/activerecord-3.2.1/lib/active_record/railties/databases.rake:153:in
(root)' org/jruby/RubyProc.java:258:incall'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
execute' org/jruby/RubyArray.java:1612:ineach'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
execute'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
invoke_with_call_chain'
/Users/paulcowan/.rvm/rubies/jruby-1.6.5/lib/ruby/1.9/monitor.rb:201:in
mon_synchronize'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
invoke_with_call_chain'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
invoke'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
invoke_task'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
top_level' org/jruby/RubyArray.java:1612:ineach'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
top_level'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
top_level'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
run'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/lib/rake/application.rb:63:in
run'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/rake-0.9.2.2/bin/rake:33:in
(root)' org/jruby/RubyKernel.java:1073:inload'
/Users/paulcowan/.rvm/gems/jruby-1.6.5/bin/rake:19:in `(root)' Tasks:
TOP => db:migrate
The error appears to be coming from activerecord-jdbc-adapter.
I am referencing the master in my gem file:
gem 'activerecord-jdbc-adapter', :git => "https://github.com/nicksieger/activerecord-jdbc-adapter.git", :branch => 'master'
Has anybody else had this error or it there a resolution.