i have issue with my app when i deploy it to heroku
heroku logs
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2012-07-20T23:03:33+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-20T23:03:35+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
https://github.com/Envek/taurus that app itself
on localhost it work perfectly.
Can anyone help me with that error?
Look at these error lines:
2012-07-20T23:39:09+00:00 app[web.1]: fatal: Not a git repository (or
any of the parent directories): .git
Probably you didn't initialized your repo locally.
Try:
git init
git add .
git commit -m 'First commit'
After that deploy to heroku.
Related
Cant deploy web app to heroku, the error codes are H10 and Error 503. What am I doing wrong and how do I fix it?
Ive look up abit on this, I dont use a database. Thought deleting the db folder would do something. Did heroku run bundle exec rake db:migrate and heroku restart after and it didnt seem to do anything.
2019-04-15T21:34:25.020968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
2019-04-15T21:34:25.020971+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
2019-04-15T21:34:25.020987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
2019-04-15T21:34:25.020989+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
2019-04-15T21:34:25.020992+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `each'
2019-04-15T21:34:25.020993+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
2019-04-15T21:34:25.020995+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:235:in `<class:Blob>'
2019-04-15T21:34:25.020996+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:16:in `<main>'
2019-04-15T21:34:25.020998+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-04-15T21:34:25.021001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-04-15T21:34:25.021003+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-04-15T21:34:25.021019+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-04-15T21:34:25.021021+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-04-15T21:34:25.021027+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-04-15T21:34:25.021030+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-04-15T21:34:25.021031+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-04-15T21:34:25.021032+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
2019-04-15T21:34:25.021033+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
2019-04-15T21:34:25.021036+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
2019-04-15T21:34:25.021037+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
2019-04-15T21:34:25.021038+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
2019-04-15T21:34:25.021040+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `load_interlock'
2019-04-15T21:34:25.021042+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in `require_or_load'
2019-04-15T21:34:25.021045+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `block in require_or_load'
2019-04-15T21:34:25.021049+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
2019-04-15T21:34:25.021051+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in `require_or_load'
2019-04-15T21:34:25.021054+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in `depend_on'
2019-04-15T21:34:25.021056+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:in `depend_on'
2019-04-15T21:34:25.021058+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in `require_dependency'
2019-04-15T21:34:25.021060+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
2019-04-15T21:34:25.021062+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `each'
2019-04-15T21:34:25.021065+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `block in eager_load!'
2019-04-15T21:34:25.021084+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `each'
2019-04-15T21:34:25.021085+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `eager_load!'
2019-04-15T21:34:25.021086+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in `eager_load!'
2019-04-15T21:34:25.021089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `each'
2019-04-15T21:34:25.021091+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
2019-04-15T21:34:25.021109+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
2019-04-15T21:34:25.021111+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
2019-04-15T21:34:25.021113+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
2019-04-15T21:34:25.021116+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2019-04-15T21:34:25.021133+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2019-04-15T21:34:25.021135+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2019-04-15T21:34:25.021137+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2019-04-15T21:34:25.021138+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:347:in `each'
2019-04-15T21:34:25.021141+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:347:in `call'
2019-04-15T21:34:25.021142+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2019-04-15T21:34:25.021144+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2019-04-15T21:34:25.021149+00:00 app[web.1]: from /app/vendor/ruby-2.6.2/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2019-04-15T21:34:25.021150+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
2019-04-15T21:34:25.021152+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
2019-04-15T21:34:25.021155+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2019-04-15T21:34:25.021157+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-04-15T21:34:25.021159+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-04-15T21:34:25.021161+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-04-15T21:34:25.021163+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-04-15T21:34:25.021181+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-04-15T21:34:25.021182+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-04-15T21:34:25.021183+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-04-15T21:34:25.021186+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-04-15T21:34:25.021187+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
2019-04-15T21:34:25.021189+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2019-04-15T21:34:25.021191+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
2019-04-15T21:34:25.021193+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
2019-04-15T21:34:25.021195+00:00 app[web.1]: from config.ru:in `new'
2019-04-15T21:34:25.021197+00:00 app[web.1]: from config.ru:in `<main>'
2019-04-15T21:34:25.021200+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
2019-04-15T21:34:25.021202+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
2019-04-15T21:34:25.021204+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
2019-04-15T21:34:25.021206+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2019-04-15T21:34:25.021208+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
2019-04-15T21:34:25.021211+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in `app'
2019-04-15T21:34:25.021228+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
2019-04-15T21:34:25.021229+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
2019-04-15T21:34:25.021230+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in `start'
2019-04-15T21:34:25.021233+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2019-04-15T21:34:25.021234+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `tap'
2019-04-15T21:34:25.021236+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `perform'
2019-04-15T21:34:25.021237+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2019-04-15T21:34:25.021239+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2019-04-15T21:34:25.021242+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
2019-04-15T21:34:25.021244+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
2019-04-15T21:34:25.021246+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
2019-04-15T21:34:25.021262+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>'
2019-04-15T21:34:25.021264+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-04-15T21:34:25.021265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-04-15T21:34:25.021268+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-04-15T21:34:25.021269+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-04-15T21:34:25.021287+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-04-15T21:34:25.021289+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
2019-04-15T21:34:25.021291+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
2019-04-15T21:34:25.021294+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
2019-04-15T21:34:25.021312+00:00 app[web.1]: from bin/rails:9:in `<main>'
2019-04-15T21:34:25.023397+00:00 app[web.1]: => Run `rails server -h` for more startup options
2019-04-15T21:34:25.023398+00:00 app[web.1]: Exiting
2019-04-15T21:35:45.696351+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/beta/wp-admin/" host=www.bradgrad.graphics request_id=962814b5-d073-4d2b-9916-db9882513153 fwd="39.104.203.172" dyno= connect= service= status=503 bytes= protocol=http
2019-04-15T21:39:14.473791+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.bradgrad.graphics request_id=da637bcd-a0fb-453d-9b15-ce16544a55ea fwd="174.62.232.203" dyno= connect= service= status=503 bytes= protocol=http
2019-04-15T21:52:25.375916+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=www.bradgrad.graphics request_id=31deb905-fb29-4804-974f-bb5a7fa7501c fwd="174.62.232.203" dyno= connect= service= status=503 bytes= protocol=http
Looking to deploy the website I have it works locally, I know its not good practice to use ruby on rails without databases, but I figured a bare bones app is better to start out with and uploading a more complex on later is good.
Everything was fine with my Heroku app deployment for the duration of my following the rails tutorial on railstutorial.org/ by Michael Hartl until I got to chapter 13 (Microposts). I meticulously followed the guides. However, on app deployment, I get this error
Application error An error occurred in the application and your page
could not be served. If you are the application owner, check your logs
for details.
I have reset the database, run migrate and seed several times over as suggested by solutions offered to similar issues and yet with no luck. Here is the log file sample:
2018-05-18T22:14:48.676937+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 10900 -e production`
2018-05-18T22:14:54.060567+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-18T22:14:53.960648+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval': uninitialized constant CarrierWave::Storage::Fog (NameError)
2018-05-18T22:14:53.960656+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval'
2018-05-18T22:14:53.960657+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `storage'
2018-05-18T22:14:53.960661+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:8:in `<class:PictureUploader>'
2018-05-18T22:14:53.960662+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960664+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960665+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960666+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960668+00:00 app[web.1]: from /app/app/models/micropost.rb:4:in `<class:Micropost>'
2018-05-18T22:14:53.960669+00:00 app[web.1]: from /app/app/models/micropost.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960670+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960709+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
2018-05-18T22:14:53.960767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `each'
2018-05-18T22:14:53.960769+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `block in eager_load!'
2018-05-18T22:14:53.960854+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `each'
2018-05-18T22:14:53.960857+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `eager_load!'
2018-05-18T22:14:53.960858+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:354:in `eager_load!'
2018-05-18T22:14:53.960860+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `each'
2018-05-18T22:14:53.960861+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `block in <module:Finisher>'
2018-05-18T22:14:53.960867+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2018-05-18T22:14:53.960868+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
2018-05-18T22:14:53.960870+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
2018-05-18T22:14:53.960871+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2018-05-18T22:14:53.960873+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2018-05-18T22:14:53.960874+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2018-05-18T22:14:53.960876+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2018-05-18T22:14:53.960877+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each'
2018-05-18T22:14:53.960881+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `call'
2018-05-18T22:14:53.960883+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2018-05-18T22:14:53.960884+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2018-05-18T22:14:53.960887+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2018-05-18T22:14:53.960888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
2018-05-18T22:14:53.960889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
2018-05-18T22:14:53.960892+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2018-05-18T22:14:53.960893+00:00 app[web.1]: from config.ru:3:in `require_relative'
2018-05-18T22:14:53.960894+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2018-05-18T22:14:53.960897+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
2018-05-18T22:14:53.960898+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
2018-05-18T22:14:53.960900+00:00 app[web.1]: from config.ru:in `new'
2018-05-18T22:14:53.960901+00:00 app[web.1]: from config.ru:in `<main>'
2018-05-18T22:14:53.960904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
2018-05-18T22:14:53.960905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
2018-05-18T22:14:53.960907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
2018-05-18T22:14:53.960908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2018-05-18T22:14:53.960911+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
2018-05-18T22:14:53.960913+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app'
2018-05-18T22:14:53.960914+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
2018-05-18T22:14:53.960917+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:283:in `start'
2018-05-18T22:14:53.960919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start'
2018-05-18T22:14:53.960920+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perform'
2018-05-18T22:14:53.960922+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
2018-05-18T22:14:53.960924+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
2018-05-18T22:14:53.960926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
2018-05-18T22:14:53.960928+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
2018-05-18T22:14:53.960935+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
2018-05-18T22:14:53.960938+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
2018-05-18T22:14:53.960939+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
2018-05-18T22:14:53.960941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
2018-05-18T22:14:53.960944+00:00 app[web.1]: from bin/rails:9:in `require'
2018-05-18T22:14:53.960945+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-05-18T22:14:53.970120+00:00 app[web.1]: => Booting Puma
2018-05-18T22:14:53.970122+00:00 app[web.1]: => Rails 5.1.4 application starting in production
2018-05-18T22:14:53.970124+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-05-18T22:14:53.970125+00:00 app[web.1]: Exiting
2018-05-18T22:14:54.042883+00:00 heroku[web.1]: Process exited with status 1
2018-05-18T22:15:16.572035+00:00 heroku[web.1]: State changed from crashed to starting
2018-05-18T22:37:55.303199+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-lowlands-20410.herokuapp.com request_id=0c17f93e-2b8d-4836-9918-d6cb6300c67f fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
2018-05-18T22:38:01.314179+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-lowlands-20410.herokuapp.com request_id=ace627d1-ff26-4003-8e42-119c266420b8 fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
Somehow I think it has something to do with the image resize code here (initializers/skip_image_resizing.rb):
if Rails.env.test?
CarrierWave.configure do |config|
config.enable_processing = false
end
end
Any ideas?
I get this error when I deploy to Heroku. The app is deployed but I have an Application Error message when I open the app on my browser.
I don't really understand why I got this error. Looked up my scopes and everything's fine. There's no syntax or anything...
Heroku logs:
2017-12-21T16:20:44.520142+00:00 app[web.1]: Exiting
2017-12-21T16:20:45.022771+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.6/lib/active_record/scoping/named.rb:143:in `scope': The scope body needs to be callable. (ArgumentError)
2017-12-21T16:20:45.022814+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:10:in `<class:RichFile>'
2017-12-21T16:20:45.022827+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:6:in `<module:Rich>'
2017-12-21T16:20:45.022840+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:5:in `<top (required)>'
2017-12-21T16:20:45.022853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.022890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2017-12-21T16:20:45.022905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-12-21T16:20:45.022917+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.022930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:360:in `require_or_load'
2017-12-21T16:20:45.022942+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:317:in `depend_on'
2017-12-21T16:20:45.022955+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:233:in `require_dependency'
2017-12-21T16:20:45.022967+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2017-12-21T16:20:45.022979+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `each'
2017-12-21T16:20:45.022992+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `block in eager_load!'
2017-12-21T16:20:45.023004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `each'
2017-12-21T16:20:45.023016+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `eager_load!'
2017-12-21T16:20:45.023043+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:346:in `eager_load!'
2017-12-21T16:20:45.023109+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:in `each'
2017-12-21T16:20:45.023123+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2017-12-21T16:20:45.023136+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2017-12-21T16:20:45.023148+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
2017-12-21T16:20:45.023160+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2017-12-21T16:20:45.023172+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-12-21T16:20:45.023185+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-12-21T16:20:45.023209+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-12-21T16:20:45.023237+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-12-21T16:20:45.023254+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-12-21T16:20:45.023269+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-12-21T16:20:45.023285+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-12-21T16:20:45.023300+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-12-21T16:20:45.023316+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-12-21T16:20:45.023331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2017-12-21T16:20:45.023345+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
2017-12-21T16:20:45.023359+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2017-12-21T16:20:45.023382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.023404+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2017-12-21T16:20:45.023418+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-12-21T16:20:45.023506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.023754+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2017-12-21T16:20:45.023771+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
2017-12-21T16:20:45.023789+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
2017-12-21T16:20:45.023807+00:00 app[web.1]: from /app/config.ru:in `new'
2017-12-21T16:20:45.023823+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-12-21T16:20:45.023839+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
2017-12-21T16:20:45.023853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
2017-12-21T16:20:45.023868+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
2017-12-21T16:20:45.023913+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
2017-12-21T16:20:45.023931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
2017-12-21T16:20:45.023948+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:61:in `app'
2017-12-21T16:20:45.023968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
2017-12-21T16:20:45.023985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:273:in `start'
2017-12-21T16:20:45.024002+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
2017-12-21T16:20:45.024171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2017-12-21T16:20:45.024188+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
2017-12-21T16:20:45.024204+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
2017-12-21T16:20:45.024338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
2017-12-21T16:20:45.024321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2017-12-21T16:20:45.024354+00:00 app[web.1]: from bin/rails:9:in `require'
2017-12-21T16:20:45.024369+00:00 app[web.1]: from bin/rails:9:in `<main>'
2017-12-21T16:20:45.233312+00:00 heroku[web.1]: State changed from starting to crashed
2017-12-21T16:20:45.218712+00:00 heroku[web.1]: Process exited with status 1
2017-12-21T16:20:51.964132+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=afternoon-beyond-98583.herokuapp.com request_id=fe3ee2ae-c79f-4636-b07b-81484e12300e fwd="37.172.154.21" dyno= connect= service= status=503 bytes= protocol=https
2017-12-21T16:20:46.783888+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=afternoon-beyond-98583.herokuapp.com request_id=ea904370-1b61-4cb5-854a-056b0b46cf37 fwd="37.172.154.21" dyno= connect= service= status=503 bytes= protocol=https
Scopes model:
scope :normal, lambda { where(produit_type: 'normal') }
scope :abonnements, lambda { where(produit_type: 'abonnement') }
scope :box, lambda { where(produit_type: 'box') }
hi i have an instance of locomotivecms loaded locally which is all working perfectly, though when i push the files to heroku i am getting the below errors, and i cant seem to pin point what is causing the app to restart
2013-06-18T11:54:58.503474+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/mongo-1.5.2/lib/mongo/connection.rb:413:in `connect': Failed to connect to a master node at localhost:27017 (Mongo::ConnectionFailure)
2013-06-18T11:54:58.504255+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongo-1.5.2/lib/mongo/connection.rb:155:in `from_uri'
2013-06-18T11:54:58.503654+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongo-1.5.2/lib/mongo/connection.rb:574:in `setup'
2013-06-18T11:54:58.503767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongo-1.5.2/lib/mongo/connection.rb:104:in `initialize'
2013-06-18T11:54:58.504871+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/config/database.rb:19:in `configure'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/contexts/mongo.rb:176:in `execute'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/criteria.rb:145:in `tap'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-06-18T11:54:58.504033+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongo-1.5.2/lib/mongo/connection.rb:155:in `new'
2013-06-18T11:54:58.505538+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid.rb:146:in `master'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/contexts/mongo.rb:262:in `block in iterate'
2013-06-18T11:54:58.505260+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/config.rb:290:in `configure_databases'
2013-06-18T11:54:58.508069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-06-18T11:54:58.505371+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/config.rb:223:in `master'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.0.2/lib/locomotive.rb:66:in `after_configure'
2013-06-18T11:54:58.507734+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/collection.rb:126:in `master'
2013-06-18T11:54:58.504548+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/config/database.rb:86:in `master'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/contexts/mongo.rb:480:in `selecting'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/collection.rb:42:in `find'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/criteria.rb:145:in `each'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/contexts/mongo.rb:259:in `iterate'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.0.2/lib/locomotive.rb:66:in `collect'
2013-06-18T11:54:58.505684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/mongoid-2.4.12/lib/mongoid/criteria.rb:145:in `block in each'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.0.2/lib/locomotive.rb:42:in `configure'
2013-06-18T11:54:58.508069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/config/initializers/locomotive.rb:1:in `<top (required)>'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
2013-06-18T11:54:58.507900+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-06-18T11:54:58.508069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/thin:23:in `load'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-06-18T11:54:58.505941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-06-18T11:54:58.506459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from config.ru:3:in `require'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from config.ru:1:in `new'
2013-06-18T11:54:58.508069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-06-18T11:54:58.508185+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/thin:23:in `<main>'
2013-06-18T11:54:58.506692+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-06-18T11:54:58.508069+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-06-18T11:55:00.526901+00:00 heroku[web.1]: State changed from starting to crashed
2013-06-18T11:55:00.505749+00:00 heroku[web.1]: Process exited with status 1
2013-06-18T11:55:19.174354+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nameless-eyrie-8067.herokuapp.com fwd="58.6.242.61" dyno= connect= service= status=503 bytes=
2013-06-18T11:55:20.392737+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nameless-eyrie-8067.herokuapp.com fwd="58.6.242.61" dyno= connect= service= status=503 bytes=
From the looks of it your problem is to do with your connection to your mongodb. I think this maybe as simple as just ensuring that you have started the MongoDB service. Take a look at the following link it MongoDB Installation. Dependent on which OS you are on will depend on which commands you need to execute. But I thoroughly believe you should take a look and ensure you have installed it correctly and the service is running, as this is the root of your problem.
Further to this also found out that you have to install the MongoHQ add-on in Heroku. This creates a MONGOHQ_URL ENV variable which supposedly is what your application uses to connect to the database.
MongoHQ - Heroku Add on
Command to add MongoHQ - heroku addons:add mongohq
Also you may want to look at the following MongoDB - Ruby to ensure your database.yml is setup correctly. You will see under the section highlighted Mongoid 2.x. Dependent on what version you are using will deter the setup you follow as you will notice as you scroll further down there is a section for Mongoid 3.x. Hope this helps.
I'm afraid I'm totally at a loss for why my rails app is crashing on Heroku. It's working fine on my development environment, and I can't see anything obvious in the logs. What am I missing?
Here is the Heroku log:
2012-08-16T19:19:08+00:00 app[web.1]: => Booting WEBrick
2012-08-16T19:19:08+00:00 app[web.1]: => Call with -d to detach
2012-08-16T19:19:08+00:00 app[web.1]: Exiting
2012-08-16T19:19:08+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:33240
2012-08-16T19:19:08+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-16T19:19:08+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- CSV (LoadError)
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:312:in `depend_on'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-16T19:19:08+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-16T19:19:09+00:00 heroku[web.1]: Process exited with status 1
2012-08-16T19:19:09+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-16T19:19:16+00:00 heroku[run.1]: Process exited with status 0
2012-08-16T19:19:16+00:00 heroku[run.1]: State changed from up to complete
2012-08-16T19:19:37+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
Ashers-MacBook-Pro%
Maybe you wrote
gem 'CSV'
in Gemfile ? It should be downcase: gem 'csv'.
Look here