From user-return-50452-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Jun 03 20:38:36 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27939 invoked from network); 3 Jun 2005 20:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 20:38:36 -0000 Received: (qmail 67835 invoked by uid 500); 3 Jun 2005 20:38:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 67780 invoked by uid 500); 3 Jun 2005 20:38:27 -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 67676 invoked by uid 99); 3 Jun 2005 20:38:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from outbound04.telus.net (HELO priv-edtnes51.telusplanet.net) (199.185.220.223) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 13:38:24 -0700 Received: from [192.168.1.2] (really [142.59.59.47]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050603203811.EIWB13532.priv-edtnes51.telusplanet.net@[192.168.1.2]> for ; Fri, 3 Jun 2005 14:38:11 -0600 Message-ID: <42A0BFC4.2000007@wynnon.com> Date: Fri, 03 Jun 2005 14:38:28 -0600 From: Bill Winspur User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Connection Failures On SSHExec Task References: <200506031714.j53HEvsZ008813@barrierb241.nike.com> In-Reply-To: <200506031714.j53HEvsZ008813@barrierb241.nike.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Rob, thanks for trying my test case.Your BUILD SUCCESSFUL result is encouraging. I'm also running jsch-0.1.20, and ant-1.6.2, but something must be different. 1. What OS are you running sshexec on? 2. What java version is ant running on ? 3. What ssh server implementation and version are you connecting to (openssh?), 4. What OS is the ssh server running on ? Bill. Anderson, Rob (Global Trade) wrote: >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 >> >> >>hey, get in line like everyone else! >> >>use correct time and dates. >> >>i delete all annoying future dated posts >> >> >>--- Bill Winspur wrote: >> >> >> >>>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. >>> >>>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: . >>> >>>If I then run the build again it hangs up immediately for >>> >>> >>20 seconds, >> >> >>>then logs the following exception on the console. >>> com.jcraft.jsch.JSchException: Session.connect: >>>java.net.ConnectException: Connection timed out: connect >>> >>>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. >>> >>>The server is running Openssh on fedora RC2. >>> >>>Question 1 >>>---------- >>>Is this a known problem with SSHExec (ant), jsch, or openssh? >>> >>> >>>Details >>>------- >>>The build file is very simple, and looks like this: >>> >>>=============================== >>> >>> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >> command="whoami" password="secret" trust="true"/> >>> >>> >>>=============================== >>> >>>Running the build produces the following console output: >>> >>>=============================== >>>E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit>ant >>>Buildfile: build.xml >>> >>>grabbit: >>> [sshexec] Connecting to xxx.com:22 >>> [sshexec] root >>> [sshexec] Connecting to xxx.com:22 <---- Question 2. why does >>>the >>>console output from >>> [sshexec] Connecting to xxx.com:22 tasks >>>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 >>> >>>BUILD FAILED >>>E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit\build.xml:31: >>>com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: >>> >>>Total time: 2 minutes 14 seconds >>> >>> >>> >>>E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit>ant >>>Buildfile: build.xml >>> >>>grabbit: >>> [sshexec] Connecting to xxx.com:22 >>> >>>BUILD FAILED >>>E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit\build.xml:5: >>>com.jcraft.jsch.JSchException: Session.connect: >>>java.net.ConnectException: Connection timed out: connect >>> >>>Total time: 21 seconds >>>E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\hangit> >>>=============================== >>> >>> >>> >>> >>--------------------------------------------------------------------- >> >> >>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>For additional commands, e-mail: user-help@ant.apache.org >>> >>> >>> >>> >> >> >>__________________________________ >>Yahoo! Mail >>Stay connected, organized, and protected. Take the tour: >>http://tour.mail.yahoo.com/mailtour.html >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org