hey, get in line like everyone else! use correct time and dates.
i delete all annoying future dated posts --- Bill Winspur <[EMAIL PROTECTED]> 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 <sshexec .../> 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: > > =============================== > <?xml version="1.0" encoding="UTF-8"?> > <project name="project" default="grabbit"> > <target name="grabbit"> > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > > <sshexec host="xxx.com" username="root" > command="whoami" password="secret" trust="true"/> > </target> > </project> > =============================== > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]