Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
simon2022 opened this issue Mar 21, 2022 · 9 comments

Comments

@simon2022
Copy link

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.

@gizeasy
Copy link

gizeasy commented Mar 24, 2022

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
Copy link

gizeasy commented Mar 24, 2022

changed server and it worked

@allandiego
Copy link

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?

@kapoko
Copy link

kapoko commented Jun 27, 2022

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

overwrite: true

seems to help me.

EDIT: Never mind, still getting the error occasionally!

@Deitsch
Copy link

Deitsch commented Aug 23, 2022

Also getting this very often, any ideas? :/

@vinicioslc
Copy link

vinicioslc commented Sep 12, 2022

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..

@Elikill58
Copy link

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%.

@premdasvm
Copy link

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

@josbroers
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants