Open reza00farjam opened 9 months ago
In fact, rm
does remove target folder content, but rest fails.
I fixed it by set user to root
instead of my non-root user. But I don't mark this issue as closed because there should be a solution for non-root user as well.
afaik there is an issue with appleboy/drone-scp that may be related. You could also try using the previous version appleboy/scp-action@v0.1.3
Related issues: #106 and appleboy/drone-scp#170
@reza00farjam Hi, I had a similar problem, but it was that I accidentally created a directory, on behalf of the root user, and non-root. Please check with yourself, the owner of the directory using the ls -la
command, if it was created as root, then recreate it as a non-root user, this should solve your problem, it solved for me)
Hi, I have the same issue. My job works fine if I run it with root user, but is there a solution where we can run as a normal user with sudo privileges ?
Hi, I have this simple setup:
But it ends up with this error:
My
SCP_TARGET
is/var/www/example.com/html
.