Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22248 invoked from network); 3 Jun 2005 17:15:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 17:15:24 -0000 Received: (qmail 41443 invoked by uid 500); 3 Jun 2005 17:15:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41400 invoked by uid 500); 3 Jun 2005 17:15:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 40533 invoked by uid 99); 3 Jun 2005 17:15:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from nbarrierb241.nike.com (HELO barrierb241.nike.com) (146.197.27.40) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 10:15:07 -0700 X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Connection Failures On SSHExec Task Date: Fri, 3 Jun 2005 10:14:47 -0700 Message-ID: <200506031714.j53HEvsZ008813@barrierb241.nike.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Connection Failures On SSHExec Task Thread-Index: AcVoXYGH+XLZEl2WRTad/A5m1n3CJwAAUIIg From: "Anderson, Rob (Global Trade)" To: "Ant Users List" X-OriginalArrivalTime: 03 Jun 2005 17:14:47.0863 (UTC) FILETIME=[BE964C70:01C5685F] X-WSS-ID: 6EBE4F80204140678-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I was able to run the build file successfully using Ant 1.6.2 with jsch = version 0.1.16. This is not a known problem with sshexec. It may be a = problem with jsch. What version of jsch are you using? When I use jsch = 0.1.20 is see the same problem with the output, but I still see BUILD = SUCCESSFUL. -Rob Anderson > -----Original Message----- > From: Woodchuck [mailto:woodchuck_5@yahoo.com] > Sent: Friday, June 03, 2005 8:32 AM > To: Ant Users List > Subject: Re: Connection Failures On SSHExec Task >=20 >=20 > hey, get in line like everyone else! >=20 > use correct time and dates. =20 >=20 > i delete all annoying future dated posts >=20 >=20 > --- Bill Winspur wrote: >=20 > > Synopsis > > -------- I am running ant 6.1.2 on XP Pro and have a test > > case that produces SSH connection failures by repetitively > > running the same task. > >=20 > > The first failure occurs after about two thirds (10) of the tasks > > have executed. At this point ant hangs up for about 2 minutes, > > then logs the following exception on the console. > > com.jcraft.jsch.JSchException: Session.connect: > > java.io.IOException: . > >=20 > > If I then run the build again it hangs up immediately for=20 > 20 seconds, > > then logs the following exception on the console. > > com.jcraft.jsch.JSchException: Session.connect:=20 > > java.net.ConnectException: Connection timed out: connect > >=20 > > Once the failure occurs I must wait about ten minutes until > > the connection timeouts go away and I can run the build > > again until the connection problem reappears. > >=20 > > The server is running Openssh on fedora RC2. > >=20 > > Question 1 > > ---------- > > Is this a known problem with SSHExec (ant), jsch, or openssh? > >=20 > >=20 > > Details > > ------- > > The build file is very simple, and looks like this: > >=20 > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > > > > > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > >=20 > > > command=3D"whoami" password=3D"secret" trust=3D"true"/> > > > > > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > >=20 > > Running the build produces the following console output: > >=20 > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit>ant > > Buildfile: build.xml > >=20 > > grabbit: > > [sshexec] Connecting to xxx.com:22 > > [sshexec] root > > [sshexec] Connecting to xxx.com:22 <---- Question 2. why does > > the=20 > > console output from > > [sshexec] Connecting to xxx.com:22 tasks=20 > > disappear at this point? > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > > [sshexec] Connecting to xxx.com:22 > >=20 > > BUILD FAILED > > E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit\build.xml:31:=20 > > com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: > >=20 > > Total time: 2 minutes 14 seconds > >=20 > >=20 > >=20 > > E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit>ant > > Buildfile: build.xml > >=20 > > grabbit: > > [sshexec] Connecting to xxx.com:22 > >=20 > > BUILD FAILED > > E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit\build.xml:5:=20 > > com.jcraft.jsch.JSchException: Session.connect:=20 > > java.net.ConnectException: Connection timed out: connect > >=20 > > Total time: 21 seconds > > E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit> > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > >=20 > >=20 >=20 >=20 >=20 > =09 > __________________________________=20 > Yahoo! Mail=20 > Stay connected, organized, and protected. Take the tour:=20 > http://tour.mail.yahoo.com/mailtour.html=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org