New Discussion

Notifications

You’re not receiving notifications from this thread.

Problem deploy with Capistrano

1
Servers

HI! Deploying with Capistrano is a continuous challenge. After overcoming a few bugs, now I am stock with the following error. Any idea? PLEASE!

INFO [1fd8e2f6] Running $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile as bdarab@xx.x.x.
DEBUG [1fd8e2f6] Command: cd /home/bdarab/myapp/releases/20200426150605 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.7.1" RAILS_ENV="production" RAILS_GROUPS="" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
DEBUG [1fd8e2f6] rake aborted!
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] URI::InvalidURIError: the scheme postgresql does not accept registry part: :@ (or bad hostname?)
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/connection_adapters/connection_specification.rb:40:in initialize'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:64:in
new'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:64:in build_url_hash'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:69:in
build_config'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:36:in initialize'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:191:in
new'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:191:in environment_url_config'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:182:in
block in merge_db_environment_variables'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:179:in map'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:179:in
merge_db_environment_variables'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:136:in build_configs'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:18:in
initialize'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/tasks/database_tasks.rb:159:in new'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/tasks/database_tasks.rb:159:in
for_each'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0
DEBUG [1fd8e2f6] .2.2/lib/active_record/railties/databases.rake:28:in block (2 levels) in <main>'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/databases.rake:23:in
block in

'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/databases.rake:7:in <main>'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in
load'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in rescue in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in
load'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in block in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in
load_dependency'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railtie.rb:49:in
block in class:Railtie'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in instance_exec'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in
block in run_tasks_blocks'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:255:in each'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:255:in
each_registered_block'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in run_tasks_blocks'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:509:in
block in run_tasks_blocks'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine/railties.r
DEBUG [1fd8e2f6] b:15:in each'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine/railties.rb:15:in
each'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:509:in run_tasks_blocks'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:459:in
load_tasks'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/myapp/releases/20200426150605/Rakefile:6:in <top (required)>'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in
'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] /home/bdarab/.rbenv/versions/2.7.1/bin/bundle:23:in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/.rbenv/versions/2.7.1/bin/bundle:23:in
'
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] Caused by:
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6] Bootsnap::LoadPathCache::FallbackScan:
DEBUG [1fd8e2f6]

DEBUG [1fd8e2f6]

DEBUG 1fd8e2f6
DEBUG [1fd8e2f6]

meanwhile, I added gem 'capistrano-ssh-doctor': The error that showed was the following:

:$~ bundle exec cap production ssh:doctor
[Deprecation Notice] set :scm, :git is deprecated.
To ensure your project is compatible with future versions of Capistrano,
remove the :scm setting and instead add these lines to your Capfile after
require "capistrano/deploy":

require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git

It seems you are NOT using git as a Capistrano strategy. At the moment capistrano-ssh-doctor supports only git.
Please change scm setting to :git.
:$~

But the setting is what is suggested already.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.