いつもお世話になります。
現在Railsでサイト作成しております。production環境でサーバーを
rails server --environment production
で立て運用していたのですが、一度ctrl+Cでサーバーを止めた後もう一度
rails server --environment productionした際に下記エラーが突如発生し、サーバーが立ち上がらない状態です。
/home/rails/xxx/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/formatter.rb:55:in `generate': No route matches {} (ActionView::Template::Error)
どういったことが考えられますでしょうか。
ご教示いただけますと幸いです。
よろしくお願いいたします。
Ruby
$ rails server --environment production => Booting Puma => Rails 5.1.4 application starting in production => Run `rails server -h` for more startup options Exiting /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/formatter.rb:55:in `generate': No route matches {} (ActionView::Template::Error) from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:738:in `generate' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:769:in `generate' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:816:in `url_for' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/url_for.rb:177:in `full_url_for' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/url_for.rb:167:in `url_for' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/routing_url_for.rb:89:in `url_for' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/helpers/form_helper.rb:1548:in `html_options_for_form_with' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/helpers/form_helper.rb:761:in `form_with' from /home/rails/sns/app/views/users/new.html.erb:3:in `_app_views_users_new_html_erb__3936008394537570153_47216211459080' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionview- ・ ・ 一部省略 ・ ・ from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:11:in `render' from /home/rails/sns/app/controllers/users_controller.rb:49:in `<class:UsersController>' from /home/rails/sns/app/controllers/users_controller.rb:1:in `<top (required)>' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:379:in `block in require_or_load' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:36:in `block in load_interlock' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:36:in `load_interlock' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:357:in `require_or_load' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:335:in `depend_on' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:251:in `require_dependency' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `each' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `block in eager_load!' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `each' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `eager_load!' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:354:in `eager_load!' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `each' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `block in <module:Finisher>' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `call' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each' from /usr/local/rbenv/versions/2.3.0/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!' from /home/rails/sns/config/environment.rb:5:in `<top (required)>' from config.ru:3:in `require_relative' from config.ru:3:in `block in <main>' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize' from config.ru:in `new' from config.ru:in `<main>' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:283:in `start' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perform' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke' from /home/rails/sns/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>'
まだ回答がついていません
会員登録して回答してみよう