Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 89064 invoked from network); 31 May 2007 15:11:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 May 2007 15:11:50 -0000 Received: (qmail 58357 invoked by uid 500); 31 May 2007 15:11:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58281 invoked by uid 500); 31 May 2007 15:11:46 -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 58250 invoked by uid 99); 31 May 2007 15:11:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 08:11:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 08:11:41 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HtmJ6-0004Te-SQ for user@ant.apache.org; Thu, 31 May 2007 08:11:20 -0700 Message-ID: <10895879.post@talk.nabble.com> Date: Thu, 31 May 2007 08:11:20 -0700 (PDT) From: ken77 To: user@ant.apache.org Subject: Re: Ant sshexec random failures In-Reply-To: <8855696.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kgraham@cmtek.com References: <8855696.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Chris... I am having the same exactly problem with the sshexec, the same script sometimes works, sometimes it gives me "Remote command failed with exit status -1" , I was wondering if you have found the reason for this and a possible solution ? this is driving me crazy since I can't find the exactly (valid) reason , so i can talk with my manager about it.. thanks in advance ken cprice wrote: > > Hi there; > > I run a deploy system using ant with sshexec and scp. My deploy consists > of sshexec calls to shut down running applications on remote servers, copy > of files via scp to remote servers, and then subsequent sshexec calls to > start up applications on remote servers. > > My problem is that my ant sshexec calls fail randomly with "Remote command > failed with exit status -1". I'll have 20 successful deploys in a row, a > failure, 3 more successes, 2 failures, etc... Effectively what seems to be > happening is that the failing sshexec tasks do not attempt to make a > connection to the remote system. I've esteablished this by watching strace > and lsof output of the running ant process and noting the abscence of a > tcp socket connection to the remote system. Also, the instant I get the > remote command failed error I can connect via ssh by hand (CLI) to the > remote system with no issues. I have also run scripts that continually run > remote commands against all remote systems while running the ant deploy. > > My deploy system is rhel4, OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003. > > Target systems are a mixture of rhel3, OpenSSH_3.6.1p2, SSH protocols > 1.5/2.0, OpenSSL 0x0090701f > and windows 2003 server running cygwin, OpenSSH_4.3p2, OpenSSL 0.9.8b 04 > May 2006 > > I was originally seeing this behaviour under ant-1.6.5, so I upgraded to > ant-1.7.0 with no changes. I also upgraded my ant-1.7.0 to jsch-0.1.31.jar > based on some anecdotal evidence I saw in the jsch changelog. > > My ant install was running under jdk 1.4.2_11, which we upgraded to jdk > 1.6.0 with no change. > > ANY help you can provide will be greatly appreciated. > > Cheers, > Chris > > > > -- View this message in context: http://www.nabble.com/Ant-sshexec-random-failures-tf3190085.html#a10895879 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org