Bug 43092 - sshexec task fails intermittently for no apparent reason
Summary: sshexec task fails intermittently for no apparent reason
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.6.5
Hardware: Sun Solaris
: P2 normal (vote)
Target Milestone: 1.7.1
Assignee: Ant Notifications List
URL:
Keywords:
: 43234 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-11 09:14 UTC by Andrew Goktepe
Modified: 2008-03-04 01:07 UTC (History)
1 user (show)



Attachments
Patch to sshexec task submitted to mailing list by Atsuhiko Yamanaka (740 bytes, patch)
2007-08-11 10:22 UTC, Andrew Goktepe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Goktepe 2007-08-11 09:14:50 UTC
When using the sshexec task to run remote commands, I sometimes get the
following error message:

Remote command failed with exit status -1

Running the command manually through an ssh connection yields no error and an
exit status of 0. Several other people have run into the same issue in this thread:
http://www.mail-archive.com/user@ant.apache.org/msg28578.html

There is a proposed patch included in the email thread that fixed the problem
for some people. Hopefully we can get it into a future Ant release. For now I
have to set failonerror=false in all of our sshexec calls. When there is a real
error our scripts won't be able to detect it and handle it gracefully.
Comment 1 Peter Reilly 2007-08-11 09:30:48 UTC
Can you attach the patch to the report?
Comment 2 Andrew Goktepe 2007-08-11 10:22:51 UTC
Created attachment 20647 [details]
Patch to sshexec task submitted to mailing list by Atsuhiko Yamanaka
Comment 3 Kev Jackson 2007-09-13 18:49:04 UTC
I've tested the patch on SVN HEAD and no problems occurred, committing changes so should be available in next release (nightly builds etc)
Comment 4 Stefan Bodewig 2008-03-04 01:07:52 UTC
*** Bug 43234 has been marked as a duplicate of this bug. ***