You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@whirr.apache.org by Doug Daniels <dd...@mortardata.com> on 2011/09/17 18:43:56 UTC

Read timed out while running script

I'm getting "Read timed out" errors from sshj while trying to run any script longer than about a minute in duration through whirr.  Is there a way to increase the ssh timeout for running scripts?

The exception looks like:

  4e74c91cce875b0dcd0000002011-09-17 12:35:33,025 [reader] (TransportImpl.java:570) ERROR net.schmizz.sshj.transport.TransportImpl - Dying because - java.net.SocketTimeoutException: Read timed out
  4e74c91cce875b0dcd0000002011-09-17 12:35:33,025 [reader] (TransportImpl.java:570) ERROR net.schmizz.sshj.transport.TransportImpl - Dying because - java.net.SocketTimeoutException: Read timed out
  4e74c91cce875b0dcd0000002011-09-17 12:35:33,030 [user thread 4] (SLF4JLogger.java:79) WARN  jclouds.ssh - << (mhc@107.20.117.122:22) error closing connection
  4e74c91cce875b0dcd000000net.schmizz.sshj.connection.ConnectionException: Read timed out
at net.schmizz.sshj.connection.ConnectionException$1.chain(ConnectionException.java:32)
at net.schmizz.sshj.connection.ConnectionException$1.chain(ConnectionException.java:26)
at net.schmizz.concurrent.Promise.deliverError(Promise.java:95)
at net.schmizz.concurrent.Event.deliverError(Event.java:72)
at net.schmizz.concurrent.ErrorDeliveryUtil.alertEvents(ErrorDeliveryUtil.java:34)
at net.schmizz.sshj.connection.channel.AbstractChannel.notifyError(AbstractChannel.java:239)
at net.schmizz.sshj.connection.channel.direct.SessionChannel.notifyError(SessionChannel.java:250)
at net.schmizz.sshj.common.ErrorNotifiable$Util.alertAll(ErrorNotifiable.java:35)
at net.schmizz.sshj.connection.ConnectionImpl.notifyError(ConnectionImpl.java:250)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:578)
at net.schmizz.sshj.transport.Reader.run(Reader.java:79)
Caused by: net.schmizz.sshj.common.SSHException: Read timed out
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:56)
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:49)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:572)
... 1 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at net.schmizz.sshj.transport.Reader.run(Reader.java:68)

Thanks,
Doug