使用rails凭据进行部署

时间:2018-06-04 10:26:24

标签: deployment ruby-on-rails-5 capistrano

无法使用capistrano和rails凭据部署到数字海洋。 Master.key已复制。

  

Eror:ActiveSupport :: MessageEncryptor :: InvalidMessage:   的ActiveSupport :: MessageEncryptor :: InvalidMessage

     

DEBUG [69085eaa]命令:cd   / home / web / stackoverflovv / releases / 20180604102435&amp;&amp; ( 出口   RAILS_ENV =&#34;生产&#34; RAILS_GROUPS =&#34;&#34; ; 〜/ .rvm / bin / rvm默​​认做   捆绑exec rake资产:预编译)DEBUG [69085eaa] rake aborted!   DEBUG [69085eaa] ActiveSupport :: MessageEncryptor :: InvalidMessage:   ActiveSupport :: MessageEncryptor :: InvalidMessage DEBUG [69085eaa]     /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:206:in   rescue in _decrypt' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:183:in _解密&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:157:in   decrypt_and_verify' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/messages/rotator.rb:21:in decrypt_and_verify&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_file.rb:79:in   decrypt' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_file.rb:42:in 阅读&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:21:in   read' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:33:in 的配置&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:38:in   options' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/delegation.rb:271:in 的method_missing&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:433:in   secret_key_base' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:176:in key_generator&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/globalid-0.4.1/lib/global_id/railtie.rb:26:in   block (2 levels) in <class:Railtie>' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:69:in 阻止了execute_hook&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:62:in   with_execution_control' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:67:in execute_hook&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:52:in   block in run_load_hooks' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in 各&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in   run_load_hooks' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application/finisher.rb:75:in 阻止&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in   instance_exec' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in 运行&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in   block in run_initializers' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in run_initializers&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in   initialize!' /home/web/stackoverflovv/releases/20180604102435/config/environment.rb:7:in &#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in   {_ 1}}阻止了require_with_bootsnap_lfi&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in   require' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in   register' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in 阻止了要求&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in require' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in要求&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in   run_tasks_blocks中的load_dependency' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in阻止&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in   require_environment!' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:520:in &#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in   block (2 levels) in define' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in kernel_load&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in   load' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in EXEC&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in   run' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in invoke_command&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in   run' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in 调度&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in   dispatch' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in 开始&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/exe/bundle:30:in   start' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in with_friendly_errors&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/exe/bundle:22:in   block in <top (required)>' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in 负载&#39; /home/web/.rvm/gems/ruby-2.5.1/bin/bundle:23:in <top (required)>' /home/web/.rvm/gems/ruby-2.5.1/bin/bundle:23:in eval&#39;   /home/web/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in   <main>' /home/web/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in最终&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:201:in   <main>' DEBUG [69085eaa] Caused by: DEBUG [69085eaa] OpenSSL::Cipher::CipherError: DEBUG [69085eaa] /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:201:in decrypt_and_verify&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/messages/rotator.rb:21:in   _decrypt' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:157:in 解密&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_file.rb:42:in   decrypt_and_verify' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_file.rb:79:in 阅读&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:33:in   read' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:21:in 选项&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/delegation.rb:271:in   config' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb:38:in secret_key_base&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:176:in   method_missing' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:433:in 阻止(2级)&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:69:in   key_generator' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/globalid-0.4.1/lib/global_id/railtie.rb:26:in with_execution_control&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:67:in   run_load_hooks中的block in execute_hook' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:62:in 阻止&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in   execute_hook' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:52:in run_load_hooks&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application/finisher.rb:75:in   each' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in instance_exec&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in   run_initializers中的block in <module:Finisher>' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:32:in 阻止&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:60:in   run' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/initializable.rb:61:in 初始化&#39!;   /home/web/stackoverflovv/releases/20180604102435/config/environment.rb:7:in   run_initializers' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:361:in 需要&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in   <main>' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in 寄存器&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in   block in require_with_bootsnap_lfi' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in 需要&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in require_with_bootsnap_lfi' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in load_dependency&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in block in require' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in require_environment!&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:520:in   require' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/application.rb:337:in 阻止(2级)定义&#39;   /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in   block in run_tasks_blocks' /home/web/stackoverflovv/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in 负载&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in   <top (required)>' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in 运行&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in   kernel_load' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in 运行&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in   exec' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in 调度&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in   invoke_command' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in 开始&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in   dispatch' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in 阻止&#39;   /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in   start' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/exe/bundle:30:in &#39; /home/web/.rvm/gems/ruby-2.5.1/bin/bundle:23:in   with_friendly_errors' /home/web/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/exe/bundle:22:in &#39;   /home/web/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in load' /home/web/.rvm/gems/ruby-2.5.1/bin/bundle:23:in&#39; DEBUG [69085eaa]任务:TOP =&gt;环境调查   [69085eaa](通过使用--trace运行任务查看完整跟踪)

0 个答案:

没有答案