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

Action version v0.1.5 causing multiple `err:` outputs

Open rxa313 opened this issue 2 years ago • 5 comments

After the recent release of v0.1.5, I checked my logs and notice the output after script is returning loads of unnecessary err: outs.

v0.1.5:

======CMD======
pwd

======END======
out: /home/***
err: 
err: 
err: 
err: 
out: 
out: 
err: 
err: 
err: 
out: 
err: 
out: 
err: 
err: 
out: 
err: 
out: 
err: 
err: 
err: 
err: 
err: 
out: 
err: 
out: 
err: 
err: 
out: 
err: 
out: 
err: 
out: 
err: 
err: 
err: 
out: 
err: 
err: 
err: 
out: 
out: 
out: 
err: 
err: 
out: 
out: 
out: 
err: 
out: 
err: 
out: 
err: 
err: 
out: 
out: 
out: 
out: 
err: 
err: 
err: 
err: 
err: 
out: 
out: 
out: 
err: 
out: 
err: 
err: 
err: 
err: 
err: 
err: 
err: 
err: 
err: 
==============================================
✅ Successfully executed commands to all host.
==============================================

I tested using v0.1.4 and it returns the correct output:

======CMD======
pwd

======END======
out: /home/***
==============================================
✅ Successfully executed commands to all host.
==============================================

rxa313 avatar Aug 08 '22 14:08 rxa313

Same here.

linucks avatar Aug 09 '22 20:08 linucks

Same here.

gamoreli avatar Aug 09 '22 23:08 gamoreli

Thank you for this one. Very useful tool to have around.

Same issue here, with multiple commands (PHP and Node scripts). If I compare the output of v0.1.5 to v0.1.4:

  • Everything executes and works as planned, including outputs.
  • I get a long list (70 lines or so) of err and out statements
  • After the list, I get the ✅ Successfully executed commands to all host. lines

This is quite puzzling because, as far as I can see, v0.1.5 is a docs related upgrade. The only other recent change is apparently a drone-ssh update

jeromecoupe avatar Aug 11 '22 20:08 jeromecoupe

Seems like it was introduced by drone-ssh: https://github.com/appleboy/drone-ssh/issues/192

Pinning the version to dce9d565de8d876c11d93fa4fe677c0285a66d78 may help for now:

uses: appleboy/ssh-action@dce9d565de8d876c11d93fa4fe677c0285a66d78

yyjlincoln avatar Aug 15 '22 02:08 yyjlincoln

Same thing. Sometimes it's hundreds of blank err: and out: lines for no apparent reason

fredcohen-aa avatar Aug 18 '22 22:08 fredcohen-aa

Same issue here, using appleboy/[email protected]

Everything works as expected but just a veeeeryy long output...

4746 out: 
4747 out: 
4748 err: 
4749 out: 
4750 err: 
4751 out: 
4752 ==============================================
4753 ✅ Successfully executed commands to all host.
4754 ==============================================

indymaat avatar Oct 03 '22 21:10 indymaat

Same here

kanes115 avatar Oct 07 '22 12:10 kanes115

@appleboy apart from using a specific old version as per https://github.com/appleboy/ssh-action/issues/174#issuecomment-1214552175 suggestion above.. is there any proper fix planned? :(

Stas-AbsoluteDesign avatar Oct 27 '22 19:10 Stas-AbsoluteDesign

Experiencing the same problem on the laravel project image image

maxlingenfelter avatar Nov 06 '22 01:11 maxlingenfelter

dce9d565de8d876c11d93fa4fe677c0285a66d78

When I switch from master to this commit I get authentication errors:

2022/11/16 19:30:56 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

brianjmurrell avatar Nov 16 '22 19:11 brianjmurrell

I will take it. I think something wrong with https://github.com/appleboy/ssh-action/commit/a8d82ec39b75784f1bcd3d44e6c8261b710311d7 commits

appleboy avatar Nov 26 '22 10:11 appleboy

Please try the v0.1.6 version. https://github.com/appleboy/ssh-action/releases/tag/v0.1.6

appleboy avatar Dec 09 '22 02:12 appleboy

Please try the v0.1.6 version. https://github.com/appleboy/ssh-action/releases/tag/v0.1.6

image

webbyus avatar Sep 25 '23 23:09 webbyus