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

An error happened:(. Failure Error: Failure at SFTPStream.module.exports.157.SFTPStream._transfor

Open agitnaeta opened this issue 3 years ago • 4 comments

Establishing a SSH connection to ***. (node:2349) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 🤝 Connected to . Starting scp Action: website.tar.gz to /home//portal ⚠️ An error happened:(. Failure Error: Failure at SFTPStream.module.exports.157.SFTPStream._transform (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:1277:27) Error: Failure at SFTPStream.Transform._read (_stream_transform.js:189:10) at SFTPStream.module.exports.157.SFTPStream._read (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:1048:15) at SFTPStream.Transform._write (_stream_transform.js:177:12) at doWrite (_stream_writable.js:431:12) at writeOrBuffer (_stream_writable.js:415:5) at SFTPStream.Writable.write (_stream_writable.js:305:11) at Channel.ondata (_stream_readable.js:727:22) at Channel.emit (events.js:210:5) at addChunk (_stream_readable.js:309:12) ✅ scp Action finished.

agitnaeta avatar Aug 21 '21 20:08 agitnaeta

I am getting exactly the same error. Would love to get it fixed.

jobs:
  build:
    runs-on:  ubuntu-18.04

    steps:
      - name: Checkout repo
        uses: actions/checkout@v2
        with:
          submodules: recursive
      
      - name: Copy single file to remote
        uses: garygrossgarten/github-action-scp@release
        with:
          local: README.md 
          remote: ~
          host: ${{ secrets.HOST }}
          username: ${{ secrets.SSH_USER }}
          password: ${{ secrets.PASSWORD }}
          port: ${{ secrets.PORT }}

julled avatar Dec 16 '21 23:12 julled

I am trying to upload a Zip file of almost 170mb and getting this error.

AxharKhan avatar Mar 04 '22 11:03 AxharKhan

I am trying to upload a Zip file of almost 170mb and getting this error.

I have the same problem.

sinanbozkus avatar Jun 25 '22 18:06 sinanbozkus

It seems zipped file can't be uploaded

DerKip avatar Jul 10 '23 08:07 DerKip