drone-scp error: Process exited with status 2 / How can I solve ?
5youngs opened this issue · 0 comments
Run appleboy/scp-action@master
with:
host: ***
username: ***
key: ***
source: dist/*
target: /var/www/html/
port: 22
timeout: 30s
command_timeout: 10m
use_insecure_cipher: false
rm: false
debug: false
strip_components: 0
overwrite: false
tar_dereference: false
tar_exec: tar
proxy_port: 22
proxy_timeout: 30s
proxy_use_insecure_cipher: false
env:
NODE_VERSION: 22
log
drone-scp version: v1.6.14
tar all files into /tmp/rZabxLFhaD.tar.gz
remote server os type is unix
scp file to server.
create folder /var/www/html/
untar file rZabxLFhaD.tar.gz
error: tar: dist: Cannot mkdir: Permission denied
tar: dist/css: Cannot mkdir: No such file or directory
tar: dist/css: Cannot mkdir: No such file or directory
tar: dist/css/app.2cf79ad6.css: Cannot open: No such file or directory
tar: dist: Cannot mkdir: Permission denied
tar: dist/favicon.ico: Cannot open: No such file or directory
tar: dist: Cannot mkdir: Permission denied
tar: dist/index.html: Cannot open: No such file or directory
tar: dist: Cannot mkdir: Permission denied
tar: dist/js: Cannot mkdir: No such file or directory
tar: dist/js: Cannot mkdir: No such file or directory
tar: dist/js/app.a4c14a19.js.map: Cannot open: No such file or directory
tar: dist/js: Cannot mkdir: No such file or directory
tar: dist/js/app.a4c14a19.js: Cannot open: No such file or directory
tar: dist/js: Cannot mkdir: No such file or directory
tar: dist/js/chunk-vendors.e58c3d3b.js.map: Cannot open: No such file or directory
tar: dist/js: Cannot mkdir: No such file or directory
tar: dist/js/chunk-vendors.e58c3d3b.js: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors
drone-scp error: Process exited with status 2
drone-scp rollback: remove all target tmp file
remove file rZabxLFhaD.tar.gz
2024/07/23 08:04:43 Process exited with status 2