LINUX.ORG.RU

app crashed on heroku

 , , ,


0

1

ребят, помогите пожалуйста советом по heroku. я в тех.поддержку тоже написал, но неизвестно когда они ответят

я на бесплатном аккаунте создал приложение. соединисля с гит-репозиторием и задеплоил мои файлы. затем из консоли импортировал схема БД так:

kalinin@kalinin ~/rails/admin_book $ heroku run rake db:schema:dump --app adminbook2

в результате сайт не заработал. браузер выводит следующее:

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

лог:

kalinin@kalinin ~/rails/admin_book $ heroku logs --app adminbook2
2015-09-23T19:12:19.154598+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-09-23T19:12:19.154594+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-09-23T19:12:19.154599+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-09-23T19:12:19.154602+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-09-23T19:12:19.154604+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-09-23T19:12:19.154607+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-09-23T19:12:19.154610+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-09-23T19:12:19.154612+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-09-23T19:12:19.154615+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
2015-09-23T19:12:19.154616+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
2015-09-23T19:12:19.154620+00:00 app[web.1]: 	from /app/config/environment.rb:5:in `<top (required)>'
2015-09-23T19:12:19.154624+00:00 app[web.1]: 	from /app/config.ru:3:in `block in <main>'
2015-09-23T19:12:19.154625+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-09-23T19:12:19.154629+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-09-23T19:12:19.154632+00:00 app[web.1]: 	from /app/config.ru:in `new'
2015-09-23T19:12:19.154633+00:00 app[web.1]: 	from /app/config.ru:in `<main>'
2015-09-23T19:12:19.154637+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-09-23T19:12:19.154638+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-09-23T19:12:19.154642+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-09-23T19:12:19.154645+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-09-23T19:12:19.154647+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-09-23T19:12:19.154650+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-09-23T19:12:19.154651+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-09-23T19:12:19.154656+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-09-23T19:12:19.154655+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-09-23T19:12:19.154660+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2015-09-23T19:12:19.154701+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-09-23T19:12:19.154703+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-09-23T19:12:19.154708+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-09-23T19:12:19.154704+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-09-23T19:12:19.154711+00:00 app[web.1]: 	from bin/rails:8:in `require'
2015-09-23T19:12:19.154714+00:00 app[web.1]: 	from bin/rails:8:in `<main>'
2015-09-23T19:12:19.196476+00:00 app[web.1]: => Booting WEBrick
2015-09-23T19:12:19.196484+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-09-23T19:12:19.196486+00:00 app[web.1]: Exiting
2015-09-23T19:12:19.196481+00:00 app[web.1]: => Rails 4.2.1 application starting in production on http://0.0.0.0:29872
2015-09-23T19:12:19.196483+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-09-23T19:12:20.068852+00:00 heroku[web.1]: Process exited with status 1
2015-09-23T19:12:20.082133+00:00 heroku[web.1]: State changed from starting to crashed
2015-09-23T19:12:20.083875+00:00 heroku[web.1]: State changed from crashed to starting
2015-09-23T19:12:26.068355+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 45983 -e production`
2015-09-23T19:12:35.129229+00:00 app[web.1]: /app/app/controllers/user_controller.rb:6:in `<top (required)>': uninitialized constant Devise::UsersController (NameError)
2015-09-23T19:12:35.129247+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2015-09-23T19:12:35.129249+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `each'
2015-09-23T19:12:35.129250+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `block in eager_load!'
2015-09-23T19:12:35.129251+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `each'
2015-09-23T19:12:35.129252+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `eager_load!'
2015-09-23T19:12:35.129253+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:346:in `eager_load!'
2015-09-23T19:12:35.129258+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2015-09-23T19:12:35.129255+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `each'
2015-09-23T19:12:35.129260+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
2015-09-23T19:12:35.129261+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
2015-09-23T19:12:35.129262+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-09-23T19:12:35.129263+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-09-23T19:12:35.129264+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-09-23T19:12:35.129265+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-09-23T19:12:35.129267+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-09-23T19:12:35.129269+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-09-23T19:12:35.129268+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-09-23T19:12:35.129270+00:00 app[web.1]: 	from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-09-23T19:12:35.129273+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
2015-09-23T19:12:35.129271+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
2015-09-23T19:12:35.129276+00:00 app[web.1]: 	from /app/config/environment.rb:5:in `<top (required)>'
2015-09-23T19:12:35.129277+00:00 app[web.1]: 	from /app/config.ru:3:in `block in <main>'
2015-09-23T19:12:35.129279+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-09-23T19:12:35.129278+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-09-23T19:12:35.129282+00:00 app[web.1]: 	from /app/config.ru:in `new'
2015-09-23T19:12:35.129284+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-09-23T19:12:35.129287+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-09-23T19:12:35.129283+00:00 app[web.1]: 	from /app/config.ru:in `<main>'
2015-09-23T19:12:35.129288+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-09-23T19:12:35.129291+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-09-23T19:12:35.129292+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-09-23T19:12:35.129298+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-09-23T19:12:35.129295+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-09-23T19:12:35.129301+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-09-23T19:12:35.129302+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-09-23T19:12:35.129305+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2015-09-23T19:12:35.129309+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-09-23T19:12:35.129313+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-09-23T19:12:35.129316+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-09-23T19:12:35.129310+00:00 app[web.1]: 	from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-09-23T19:12:35.129319+00:00 app[web.1]: 	from bin/rails:8:in `require'
2015-09-23T19:12:35.164250+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-09-23T19:12:35.129320+00:00 app[web.1]: 	from bin/rails:8:in `<main>'
2015-09-23T19:12:35.164240+00:00 app[web.1]: => Booting WEBrick
2015-09-23T19:12:35.164246+00:00 app[web.1]: => Rails 4.2.1 application starting in production on http://0.0.0.0:45983
2015-09-23T19:12:35.164249+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-09-23T19:12:35.164252+00:00 app[web.1]: Exiting
2015-09-23T19:12:36.130361+00:00 heroku[web.1]: State changed from starting to crashed
2015-09-23T19:12:36.111233+00:00 heroku[web.1]: Process exited with status 1
2015-09-23T19:12:37.677073+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=adminbook2.herokuapp.com request_id=1967116b-6daa-44e4-bb46-2e6d1b7e5528 fwd="31.204.102.97" dyno= connect= service= status=503 bytes=
2015-09-23T19:12:38.250673+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=adminbook2.herokuapp.com request_id=2428611f-b347-490f-a5c8-2f381313a9eb fwd="31.204.102.97" dyno= connect= service= status=503 bytes=
2015-09-23T19:13:50.467311+00:00 heroku[api]: Starting process with command `bundle exec rake db:schema:dump` by proz1.proz1@yandex.ru
2015-09-23T19:13:54.111341+00:00 heroku[run.5232]: Awaiting client
2015-09-23T19:13:54.142035+00:00 heroku[run.5232]: Starting process with command `bundle exec rake db:schema:dump`
2015-09-23T19:13:54.464185+00:00 heroku[run.5232]: State changed from starting to up
2015-09-23T19:14:01.902880+00:00 heroku[run.5232]: State changed from up to complete
2015-09-23T19:14:01.890832+00:00 heroku[run.5232]: Process exited with status 0
2015-09-23T19:14:06.315784+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=adminbook2.herokuapp.com request_id=a70e41c9-00f2-4a9f-9235-3b07cc1b3d11 fwd="31.204.102.97" dyno= connect= service= status=503 bytes=
2015-09-23T19:14:07.155897+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=adminbook2.herokuapp.com request_id=acfd9086-9297-480c-82ad-f5ab6970fb4a fwd="31.204.102.97" dyno= connect= service= status=503 bytes=


что сделать чтобы приложение заработало?

2015-09-23T19:12:35.129229+00:00 app[web.1]: /app/app/controllers/user_controller.rb:6:in `<top (required)>': uninitialized constant Devise::UsersController (NameError)

При чём тут postgres, интересно?

AnDoR ★★★★★ ()

гем Devise поставил?

RA ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.