appleboy / appleboy/scp-action

drone-scp error: error copy file to dest: ***, error message: Process exited with status 5

Open
#146 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi,
I have configured it as shown in the code below.

```yaml
- name: Upload Changed files
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USERNAME }}
key: ${{ secrets.SFTP_KEY }}
passphrase: ${{ secrets.SFTP_PASSPHRASE }}
password: ${{ secrets.SFTP_PASSWORD }}
source: ${{ steps.changed-files.outputs.all_changed_files }}
target: “/home/www/test/"
overwrite: true
```

However, an error like the one below was displayed.

```bash
tar all files into /tmp/aALrqfzooP.tar.gz
scp file to server.
2023/10/17 01:12:58 error copy file to dest: ***, error message: Process exited with status 5
drone-scp error: error copy file to dest: ***, error message: Process exited with status 5
```

We have not encountered a case of a status 5 error, and thus, we have been unable to resolve it.
I would appreciate your assistance.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the workflow step using appleboy/scp-action@v0.1.4 and compare the source, target, and SSH credential settings with the status 5 output. Determine the cause of the failed copy and verify the workflow completes a successful upload to the configured target.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.