[ 
https://issues.apache.org/jira/browse/WHIRR-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095587#comment-13095587
 ] 

David Alves commented on WHIRR-49:
----------------------------------

I agree and will solve the problem like that at least for now.

On another matter, I'm getting SocketTimeoutExceptions when waiting for chef 
recipes to execute (st at the end).

Is there any way to increase the timeout of the sshj sockets?


2011-09-01 21:26:59,960 ERROR [net.schmizz.sshj.transport.TransportImpl] 
(reader) Dying because - java.net.SocketTimeoutException: Read timed out
2011-09-01 21:26:59,964 WARN  [jclouds.ssh] (user thread 4) << 
(dralves@184.106.195.177:22) error closing connection
net.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)
2011-09-01 21:26:59,966 WARN  [jclouds.ssh] (user thread 4) << 
(dralves@184.106.195.177:22) error acquiring 
ExecResponse(dralves@184.106.195.177:22)[echo 
'{"java":{"install_flavor":"sun"},"run_list":["recipe[java]"]}' >> 
/tmp/1314908743434.json
sudo -i chef-solo -j /tmp/1314908743434.json
]: Read timed out
net.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)
t2011-09-01 21:27:00,167 WARN  [jclouds.ssh] (user thread 4) << 
(dralves@184.106.195.177:22) error closing connection
net.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)
2011-09-01 21:27:00,167 WARN  [jclouds.ssh] (user thread 4) << 
(dralves@184.106.195.177:22) error acquiring 
ExecResponse(dralves@184.106.195.177:22)[echo 
'{"java":{"install_flavor":"sun"},"run_list":["recipe[java]"]}' >> 
/tmp/1314908743434.json
sudo -i chef-solo -j /tmp/1314908743434.json
]: Read timed out
net.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)


> Allow Whirr to use Chef for configuration management
> ----------------------------------------------------
>
>                 Key: WHIRR-49
>                 URL: https://issues.apache.org/jira/browse/WHIRR-49
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Jeff Hammerbacher
>         Attachments: WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, 
> WHIRR-49.patch, WHIRR-49.patch
>
>
> As discussed in 
> https://cwiki.apache.org/confluence/display/WHIRR/WhirrDesign, Whirr should 
> be agnostic to the tool used to bring the images up to a state where they're 
> ready to run the service.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to