Capistrano 部署错误:scp:/tmp/git-ssh.sh:没有那个文件或目录

我正在尝试使用 Capistrano 3.14.0 部署到 Strato.de 服务器,但出现以下错误:

Exception while executing as user@ssh.strato.de: 
scp: /deploy_to/tmp/git-ssh-repo-gituser.sh: No such file or directory

Capistrano 日志:

INFO START 2021-05-07 10:30:04 +0200 cap production deploy

INFO ---------------------------------------------------------------------------

INFO [32c0e2b4] Running /usr/bin/env mkdir -p /deploy_to/tmp as user@ssh.strato.de

DEBUG [32c0e2b4] Command: /usr/bin/env mkdir -p /deploy_to/tmp

INFO [32c0e2b4] Finished in 5.755 seconds with exit status 0 (successful).

DEBUG Uploading /deploy_to/tmp/git-ssh-repo-gituser.sh 0.0%

通常这一步会成功而不会出现问题。关于为什么会发生这种情况有任何疯狂的猜测吗?

服务器上成功创建了/tmp目录,属于我的SSH登录用户。 :deploy_to 是直接从 pwd 复制的。我也试过明确设置 :tmp_dir。此外,我认为权限问题会导致 Permission denied 错误(参见:Capistrano deploy failing with scp: /tmp/<project_name>/git-ssh.sh: Permission denied)。

这可能是我的回购有问题吗? :repo_url 是直接从 github 复制的,不知道这方面会出现什么问题。

感谢您提供有关如何进一步调查此问题的任何想法。

iCMS 回答:Capistrano 部署错误:scp:/tmp/git-ssh.sh:没有那个文件或目录

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/456401.html

大家都在问