Failed to deploy Capistrano

When you try cap deploy:setup to get the following error. As if he could not load the database.yml file through sftp. I googled everywhere but had no solution. Not even a bit.

* Download via sftp failed on xxx.xxx.xxx.xxx: Net :: SFTP :: StatusException (Net :: SFTP :: StatusException open /var/www/domain.com/username/shared/config/database. yml ( 3, "permission is allowed")) upload via sftp failed on xxx.xxx.xxx.xxx: Net :: SFTP :: StatusException (Net :: SFTP :: StatusException open /var/www/domain.com/username/shared /config/database.yml(3, "permission denied"))

+4
source share
1 answer

There are probably two reasons for this:

  • the directory tree was not created (less likely since this would be an error before)

  • You do not have rights to the following path on the server:

    • check if the path exists (if not create it: path md)

    • check if you can use it as a deployment user (if you do not get rights to it: chown -R deploy_user: / path)

0
source

All Articles