appleboy / appleboy/scp-action

drone-scp error: Process exited with status 1

Open
#144 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi,
I have this simple setup:

- name: Upload build files to VPS via SSH
  uses: appleboy/scp-action@v0.1.4
  with:
    host: ${{ secrets.SSH_HOST }}
    port: ${{ secrets.SSH_PORT }}
    username: ${{ secrets.SSH_USERNAME }}
    password: ${{ secrets.SSH_PASSWORD }}
    rm: true
    source: "./build/web/*"
    target: "${{ secrets.SCP_TARGET }}"
    strip_components: 2

But it ends up with this error:

tar all files into /tmp/RmOmwBuqmG.tar.gz
scp file to server.
Remove target folder: ***
drone-scp error:  Process exited with status 1
drone-scp rollback: remove all target tmp file
remove file RmOmwBuqmG.tar.gz
2023/09/27 00:54:42 Process exited with status 1  

My SCP_TARGET is /var/www/example.com/html.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workflow step using appleboy/scp-action@v0.1.4 and the transfer log around the tar, SCP, and target-removal commands. Check the configured SCP_TARGET path and the action's handling of rm and strip_components; done means the build files upload successfully to /var/www/example.com/html without the status 1 rollback.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.