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

drone-scp error: error copy file to dest: ***, error message: wait: remote command exited without exit status or exit signal

Open simon2022 opened this issue 2 years ago • 9 comments

The script sometimes throws this error:

drone-scp error: error copy file to dest: ***, error message: wait: remote command exited without exit status or exit signal

It doesn't always happen, sometimes it works. The /root path of the target server also contains the .tar file.

simon2022 avatar Mar 21 '22 10:03 simon2022

Same problem. I noticed that the archive appears on the server, its size is 0. Execution of the script takes about 15 minutes, after which the above error occurs.

Can you suggest where to dig?

gizeasy avatar Mar 24 '22 12:03 gizeasy

changed server and it worked

gizeasy avatar Mar 24 '22 14:03 gizeasy

im having same issue, in my case if the target folder already got the files in the tar archive the error appears, creating a new empty folder for the upload works without error i think its something related with replace files?

allandiego avatar Mar 29 '22 21:03 allandiego

Thanks @allandiego for pointing me in the right direction. Adding

overwrite: true

seems to help me.

EDIT: Never mind, still getting the error occasionally!

kapoko avatar Jun 27 '22 15:06 kapoko

Also getting this very often, any ideas? :/

Deitsch avatar Aug 23 '22 21:08 Deitsch

Hi people ! I have this error when my HD has the space completely full 99%

When erase all tmp junks and free space it stop showing this message..

vinicioslc avatar Sep 12 '22 21:09 vinicioslc

Hi, I'm getting same issue. It works 50% of time: each fail need to be run again to make it works. The disk is used at 66%.

Elikill58 avatar Sep 29 '22 16:09 Elikill58

i'm having the same issue, it works sometime. Anyone came up with a solution for this?

premdasvm avatar Aug 12 '23 04:08 premdasvm

i'm having the same issue, it works sometime. Anyone came up with a solution for this?

I also changed my server to one with newer hardware and it fixed the problem. I'm using the following config:

env:
  BUILD_NAME: "${{ github.RUN_ID }}_${{ github.RUN_NUMBER }}"
  BUILD_NAME_EXT: "${{ github.RUN_ID }}_${{ github.RUN_NUMBER }}.tar.gz"

on:
  workflow_call:
    inputs:
      PROJECT_PATH:
        type: string
        required: true
      HOST:
        type: string
        required: true
      USERNAME:
        type: string
        required: true
    secrets:
      KEY:
        required: true

  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Download artifact
        uses: actions/download-artifact@v3
        with:
          name: ${{ env.BUILD_NAME }}
      - name: Deploy
        uses: appleboy/scp-action@master
        with:
          host: ${{ inputs.HOST }}
          username: ${{ inputs.USERNAME }}
          key: ${{ secrets.KEY }}
          source: ${{ env.BUILD_NAME_EXT }}
          target: ${{ inputs.PROJECT_PATH }}
          overwrite: true
          timeout: 1m

josbroers avatar Aug 14 '23 07:08 josbroers