Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Created May 1, 2020 15:41
Show Gist options
  • Save ziyan-junaideen/93be632695cb0d56980ddd91086899c2 to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/93be632695cb0d56980ddd91086899c2 to your computer and use it in GitHub Desktop.
ziyan@ziyan-hp  ~/Work/JDeen/wonder_of_asia   master  cap production deploy
rvm 1.29.10 (manual) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
ruby-2.5.1
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
00:00 git:wrapper
01 mkdir -p /tmp
✔ 01 root@wonderof.asia 0.127s
Uploading /tmp/git-ssh-jdeencom-production-root.sh 100.0%
02 chmod 700 /tmp/git-ssh-jdeencom-production-root.sh
✔ 02 root@wonderof.asia 0.126s
Please enter branch (master):
00:02 git:check
01 git ls-remote git@github.com:jdeen/wonder-of-asia.git HEAD
01 3bd6d3b92320a1eb063712bea17228436208e5e8 HEAD
✔ 01 root@wonderof.asia 3.000s
00:05 deploy:check:directories
01 mkdir -p /var/www/wonderof.asia/shared /var/www/wonderof.asia/releases
✔ 01 root@wonderof.asia 0.125s
00:05 deploy:check:linked_dirs
01 mkdir -p /var/www/wonderof.asia/shared/log /var/www/wonderof.asia/shared/tmp/pids /var/www/wonderof.asia/shared/tmp/cache /var/www/wonderof.asia/shared/tmp/sockets /var/www/wonderof.asia/shared/…
✔ 01 root@wonderof.asia 0.121s
00:05 deploy:check:make_linked_dirs
01 mkdir -p /var/www/wonderof.asia/shared/config
✔ 01 root@wonderof.asia 0.182s
00:06 git:clone
The repository mirror is at /var/www/wonderof.asia/repo
00:06 git:update
01 git remote set-url origin git@github.com:jdeen/wonder-of-asia.git
✔ 01 root@wonderof.asia 0.178s
02 git remote update --prune
02 Fetching origin
✔ 02 root@wonderof.asia 3.119s
00:10 git:create_release
01 mkdir -p /var/www/wonderof.asia/releases/20200501144623
✔ 01 root@wonderof.asia 0.129s
02 git archive master | /usr/bin/env tar -x -f - -C /var/www/wonderof.asia/releases/20200501144623
✔ 02 root@wonderof.asia 0.204s
00:11 deploy:set_current_revision
01 echo "3bd6d3b92320a1eb063712bea17228436208e5e8" > REVISION
✔ 01 root@wonderof.asia 0.178s
00:11 deploy:symlink:linked_files
01 mkdir -p /var/www/wonderof.asia/releases/20200501144623/config
✔ 01 root@wonderof.asia 0.122s
02 rm /var/www/wonderof.asia/releases/20200501144623/config/database.yml
✔ 02 root@wonderof.asia 0.180s
03 ln -s /var/www/wonderof.asia/shared/config/database.yml /var/www/wonderof.asia/releases/20200501144623/config/database.yml
✔ 03 root@wonderof.asia 0.124s
04 ln -s /var/www/wonderof.asia/shared/config/master.key /var/www/wonderof.asia/releases/20200501144623/config/master.key
✔ 04 root@wonderof.asia 0.172s
00:12 deploy:symlink:linked_dirs
01 mkdir -p /var/www/wonderof.asia/releases/20200501144623 /var/www/wonderof.asia/releases/20200501144623/tmp /var/www/wonderof.asia/releases/20200501144623/public
✔ 01 root@wonderof.asia 0.125s
02 rm -rf /var/www/wonderof.asia/releases/20200501144623/log
✔ 02 root@wonderof.asia 0.172s
03 ln -s /var/www/wonderof.asia/shared/log /var/www/wonderof.asia/releases/20200501144623/log
✔ 03 root@wonderof.asia 0.143s
04 ln -s /var/www/wonderof.asia/shared/tmp/pids /var/www/wonderof.asia/releases/20200501144623/tmp/pids
✔ 04 root@wonderof.asia 0.167s
05 ln -s /var/www/wonderof.asia/shared/tmp/cache /var/www/wonderof.asia/releases/20200501144623/tmp/cache
✔ 05 root@wonderof.asia 0.138s
06 ln -s /var/www/wonderof.asia/shared/tmp/sockets /var/www/wonderof.asia/releases/20200501144623/tmp/sockets
✔ 06 root@wonderof.asia 0.166s
07 ln -s /var/www/wonderof.asia/shared/public/system /var/www/wonderof.asia/releases/20200501144623/public/system
✔ 07 root@wonderof.asia 0.145s
08 ln -s /var/www/wonderof.asia/shared/public/uploads /var/www/wonderof.asia/releases/20200501144623/public/uploads
✔ 08 root@wonderof.asia 0.173s
09 ln -s /var/www/wonderof.asia/shared/public/assets /var/www/wonderof.asia/releases/20200501144623/public/assets
✔ 09 root@wonderof.asia 0.124s
00:17 bundler:install
01 /usr/share/rvm/bin/rvm 2.5.1@wonder_of_asia do bundle install --path /var/www/wonderof.asia/shared/bundle --jobs 4 --without development test --deployment --quiet
✔ 01 root@wonderof.asia 2.215s
00:20 deploy:assets:precompile
01 /usr/share/rvm/bin/rvm 2.5.1@wonder_of_asia do bundle exec rake assets:precompile
01 rake aborted!
01 ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:580:in `validate_secret_key_base'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:423:in `secret_key_base'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in `key_exists?'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in `find'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in `block in <class:Engine>'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
01 /var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
01 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
01 /var/www/wonderof.asia/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 /var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
01 /usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
01 /usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
01 /usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
01 /usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
01 Tasks: TOP => environment
01 (See full trace by running task with --trace)
#<Thread:0x00005635296dd8a0@/home/ziyan/.rvm/gems/ruby-2.5.1@wonder_of_asia/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
1: from /home/ziyan/.rvm/gems/ruby-2.5.1@wonder_of_asia/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/home/ziyan/.rvm/gems/ruby-2.5.1@wonder_of_asia/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as root@wonderof.asia: rake exit status: 1 (SSHKit::Runner::ExecuteError)
rake stdout: Nothing written
rake stderr: rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:580:in `validate_secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:423:in `secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in `key_exists?'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in `find'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in `block in <class:Engine>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
/var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as root@wonderof.asia: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:580:in `validate_secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:423:in `secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in `key_exists?'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in `find'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in `block in <class:Engine>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
/var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
Caused by:
SSHKit::Command::Failed: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:580:in `validate_secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:423:in `secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in `key_exists?'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in `find'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in `block in <class:Engine>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
/var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
Tasks: TOP => deploy:assets:precompile
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as root@wonderof.asia: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:580:in `validate_secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:423:in `secret_key_base'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:24:in `key_exists?'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/secret_key_finder.rb:16:in `find'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/devise-4.7.1/lib/devise/rails.rb:37:in `block in <class:Engine>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
/var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
/var/www/wonderof.asia/releases/20200501144623/config/environment.rb:5:in `<top (required)>'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:339:in `require_environment!'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/railties-6.0.2.2/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/var/www/wonderof.asia/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:30:in `block in <main>'
/usr/share/rvm/rubies/ruby-2.5.1/bin/bundle:22:in `<main>'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `eval'
/usr/share/rvm/gems/ruby-2.5.1@global/bin/ruby_executable_hooks:24:in `<main>'
DEBUG [cdc5bf1b] Tasks: TOP => environment
DEBUG [cdc5bf1b] (See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment