Ask A Question

Notifications

You’re not receiving notifications from this thread.

getting KeyError: key not found: :keychain when running cap staging deploy

Rahul Coder asked in Rails

success Saved lockfile.

  01 

  01 
  01 Done in 10.26s.
✔ 01 ubuntu@13.229.169.23 10.938s

** Execute deploy:assets:precompile
01:06 deploy:assets:precompile
01 ~/.rvm/bin/rvm 2.5.0-p0 do bundle exec rake assets:precompile
01 fatal: Not a git repository (or any of the parent directories): .git
01 fatal: Not a git repository (or any of the parent directories): .git
01 fatal: Not a git repository (or any of the parent directories): .git
01 fatal: Not a git repository (or any of the parent directories): .git
01 fatal: Not a git repository (or any of the parent directories): .git
01 ****************************** API Limit **********************************************
01 ****************************** Warning Level Notifications **********************************************
01 rake aborted!
01 KeyError: key not found: :keychain
01 /home/ubuntu/apps/cezex/releases/20200408054728/config/initializers/jwt.rb:14:in fetch'
01 /home/ubuntu/apps/cezex/releases/20200408054728/config/initializers/jwt.rb:14:in
block in '
01 /home/ubuntu/apps/cezex/releases/20200408054728/config/initializers/jwt.rb:13:in tap'
01 /home/ubuntu/apps/cezex/releases/20200408054728/config/initializers/jwt.rb:13:in
'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in load'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in
block in load'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in load_dependency'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in
load'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:652:in block in load_config_initializer'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/notifications.rb:166:in
instrument'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:651:in load_config_initializer'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:616:in
block (2 levels) in class:Engine'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:615:in each'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:615:in
block in class:Engine'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in instance_exec'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in
run'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:55:in block in run_initializers'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in
each'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in tsort_each_child'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:in
run_initializers'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:352:in initialize!'
01 /home/ubuntu/apps/cezex/releases/20200408054728/config/environment.rb:8:in
'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in require'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
block in require'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in load_dependency'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
require'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:328:in require_environment!'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:457:in
block in run_tasks_blocks'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in block (2 levels) in define'
01 /home/ubuntu/apps/cezex/shared/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in
'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in load'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in
kernel_load'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in run'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in
exec'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/b
01 undler/vendor/thor/lib/thor/command.rb:27:in run'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in
dispatch'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in
start'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/exe/bundle:30:in block in <top (required)>'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in
with_friendly_errors'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/gems/bundler-1.17.3/exe/bundle:22:in <top (required)>'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/bin/bundle:23:in
load'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/bin/bundle:23:in <main>'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:15:in
eval'
01 /home/ubuntu/.rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:15:in `

'
01 Tasks: TOP => environment
01 (See full trace by running task with --trace)

terminated with exception (report_on_exception is true):

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.