将 rails 应用程序部署到 Scalingo 时(预接收挂钩被拒绝)错误

时间:2021-01-06 15:48:32

标签: ruby-on-rails ruby heroku

我正在尝试将 Rails 应用部署到 Scalingo,即使构建成功,我的应用仍被拒绝并显示以下输出:


 Build complete, shipping your container...  Waiting for your application to boot...   !   Error deploying the application  !   → Your application has stopped unexpectedly with the following output:
======== BEGIN OUTPUT ======== 2021-01-06 15:26:05.319456258 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 2021-01-06 15:26:05.319458118 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 2021-01-06 15:26:05.319489979 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require' 2021-01-06 15:26:05.319491655 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency' 2021-01-06 15:26:05.319492735 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require' 2021-01-06 15:26:05.319493704 +0000 UTC [web-1]   from bin/rails:4:in `<main>' 2021-01-06 15:26:05.319518829 +0000 UTC [web-1] /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/message_encryptor.rb:201:in `final': OpenSSL::Cipher::CipherError 2021-01-06 15:26:05.319519802
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/message_encryptor.rb:201:in `_decrypt' 2021-01-06 15:26:05.319528775 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/message_encryptor.rb:157:in `decrypt_and_verify' 2021-01-06 15:26:05.319529759 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/messages/rotator.rb:21:in `decrypt_and_verify' 2021-01-06 15:26:05.319550926 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/encrypted_file.rb:80:in `decrypt' 2021-01-06 15:26:05.319554303 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/encrypted_file.rb:43:in `read' 2021-01-06 15:26:05.319580154 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/encrypted_configuration.rb:21:in `read' 2021-01-06 15:26:05.319581383 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/encrypted_configuration.rb:33:in `config' 2021-01-06 15:26:05.319582426 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/encrypted_configuration.rb:38:in `options' 2021-01-06 15:26:05.319583501 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/core_ext/module/delegation.rb:303:in `method_missing' 2021-01-06 15:26:05.319601864 +0000 UTC [web-1]  from (erb):12:in `<main>' 2021-01-06 15:26:05.319603616 +0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/erb.rb:905:in `eval' 2021-01-06 15:26:05.319671104 +0000 UTC [web-1]     from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/erb.rb:905:in `result' 2021-01-06 15:26:05.319679613 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.3.2/lib/active_storage/engine.rb:111:in `block (2 levels) in <class:Engine>' 2021-01-06 15:26:05.319680836
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval' 2021-01-06 15:26:05.319681824 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook' 2021-01-06 15:26:05.319682805 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control' 2021-01-06 15:26:05.319683781 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook' 2021-01-06 15:26:05.319717299 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks' 2021-01-06 15:26:05.319718504 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:51:in `each' 2021-01-06 15:26:05.319719442 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks' 2021-01-06 15:26:05.319738614 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.3.2/app/models/active_storage/blob.rb:291:in `<main>' 2021-01-06 15:26:05.319739521 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 2021-01-06 15:26:05.319740474 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 2021-01-06 15:26:05.319761460
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 2021-01-06 15:26:05.319762195 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 2021-01-06 15:26:05.319826867 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 2021-01-06 15:26:05.319827530 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/kernel.rb:27:in `require' 2021-01-06 15:26:05.319828044 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:388:in `const_get' 2021-01-06 15:26:05.319828390 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:388:in `block (2 levels) in eager_load' 2021-01-06 15:26:05.319828812 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:731:in `block in ls' 2021-01-06 15:26:05.319829237 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:723:in `foreach' 2021-01-06 15:26:05.319829667 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:723:in `ls' 2021-01-06 15:26:05.319830015 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:376:in `block in eager_load' 2021-01-06 15:26:05.319896802 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:368:in `synchronize' 2021-01-06 15:26:05.319897476 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:368:in `eager_load' 2021-01-06 15:26:05.319897841 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:483:in `each' 2021-01-06 15:26:05.319898190 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/loader.rb:483:in `eager_load_all' 2021-01-06 15:26:05.319898610 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/application/finisher.rb:122:in `block in <module:Finisher>' 2021-01-06 15:26:05.319899080 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec' 2021-01-06 15:26:05.319915362 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run' 2021-01-06 15:26:05.319915922 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers' 2021-01-06 15:26:05.319970652 +0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each' 2021-01-06 15:26:05.319973256 +0000 UTC [web-1]    from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 2021-01-06 15:26:05.319974932 +0000 UTC [web-1]  from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from' 2021-01-06 15:26:05.319976471
+0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component' 2021-01-06 15:26:05.320002165 +0000 UTC [web-1]     from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in `each' 2021-01-06 15:26:05.320004050 +0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in `call' 2021-01-06 15:26:05.320005174 +0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component' 2021-01-06 15:26:05.320006003
+0000 UTC [web-1]   from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each' 2021-01-06 15:26:05.320006883 +0000 UTC [web-1]     from /app/vendor/ruby-2.7.1/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each' 2021-01-06 15:26:05.320057544 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers' 2021-01-06 15:26:05.320058549 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!' 2021-01-06 15:26:05.320059002 +0000 UTC [web-1]  from /app/config/environment.rb:5:in `<main>' 2021-01-06 15:26:05.320059402
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 2021-01-06 15:26:05.320059870 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 2021-01-06 15:26:05.320060490
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 2021-01-06 15:26:05.320083591 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 2021-01-06 15:26:05.320085046 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 2021-01-06 15:26:05.320132032 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.3.1/lib/zeitwerk/kernel.rb:34:in `require' 2021-01-06 15:26:05.320134340 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require' 2021-01-06 15:26:05.320135882 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency' 2021-01-06 15:26:05.320137322 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require' 2021-01-06 15:26:05.320141400 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative' 2021-01-06 15:26:05.320142604 +0000 UTC [web-1]     from config.ru:3:in `block in <main>' 2021-01-06 15:26:05.320156265
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval' 2021-01-06 15:26:05.320156841 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string' 2021-01-06 15:26:05.320198957 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file' 2021-01-06 15:26:05.320201544 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file' 2021-01-06 15:26:05.320203031 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config' 2021-01-06 15:26:05.320204100
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app' 2021-01-06 15:26:05.320220073 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app' 2021-01-06 15:26:05.320221173 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start' 2021-01-06 15:26:05.320229634 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling' 2021-01-06 15:26:05.320231016 +0000 UTC [web-1]     from /app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start' 2021-01-06 15:26:05.320273478 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:39:in `start' 2021-01-06 15:26:05.320274887 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:147:in `block in perform' 2021-01-06 15:26:05.320275919 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:138:in `tap' 2021-01-06 15:26:05.320276894 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:138:in `perform' 2021-01-06 15:26:05.320277723 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 2021-01-06 15:26:05.320344714 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 2021-01-06 15:26:05.320346846 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' 2021-01-06 15:26:05.320348015 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/command/base.rb:69:in `perform' 2021-01-06 15:26:05.320349024 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/command.rb:46:in `invoke' 2021-01-06 15:26:05.320366479 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in `<main>' 2021-01-06 15:26:05.320422964 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 2021-01-06 15:26:05.320424742 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 2021-01-06 15:26:05.320425650
+0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 2021-01-06 15:26:05.320426566 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 2021-01-06 15:26:05.320427486 +0000 UTC [web-1]    from /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 2021-01-06 15:26:05.320428446 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require' 2021-01-06 15:26:05.320458904 +0000 UTC [web-1]  from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency' 2021-01-06 15:26:05.320462120 +0000 UTC [web-1]   from /app/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require' 2021-01-06 15:26:05.320463355 +0000 UTC [web-1]   from bin/rails:4:in `<main>'
======== END OUTPUT ========

如果有帮助,Scalingo 是一种类似于 Heroku 的 Rails 托管服务,因此他们为您提供了一个 git 存储库,您可以将代码推送到该存储库并自动部署它。如果代码中有错误,我的推送似乎会被拒绝。我不知道问题出在哪里。

0 个答案:

没有答案
相关问题