scp-action icon indicating copy to clipboard operation
scp-action copied to clipboard

Temp archive is not removed on self-hosted agent

Open ArtemGoutsoul opened this issue 1 year ago • 0 comments

When a self hosted agent is used, a temporary tar file is not removed after copying to target server

drone-scp version: 1.8.0
tar all files into /tmp/aQdQqvYKCM.tar.gz
remote server os type is unix
scp file to server.
create folder /xxx/yyy
untar file aQdQqvYKCM.tar.gz
remove file aQdQqvYKCM.tar.gz

As we see, it's only removed on the target server, not the agent.

This causes the self hosted agent to run out of disk space eventually.

ArtemGoutsoul avatar May 05 '25 10:05 ArtemGoutsoul