You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Maurice Lawler <ma...@me.com> on 2013/10/02 04:45:10 UTC

Error, when setting up in advanced..

Hello,

Getting this error, when setting up advanced mode...  SSH Executed 
failed. However, there aren't any issues I see with SSH getting into the 
server as root etc. What does this suggest?

- Maurice

2013-10-01 22:43:17,533 INFO  [utils.ssh.SSHCmdHelper] 
(catalina-exec-13:null) Timeout while waiting for data from peer.
2013-10-01 22:43:17,537 DEBUG [utils.ssh.SSHCmdHelper] 
(catalina-exec-13:null) cloudstack-setup-agent  -m HyperVisorIP -z 1 -p 
1 -c 1 -g 6fafb1c2-462b-3306-b55a-c274bcbac1d2 -a --pubNic=public 
--prvNic=manage --guestNic=guest output:[OK]
Configure Nfs ...             Configure Cgroup ...
2013-10-01 22:43:18,538 DEBUG [utils.ssh.SSHCmdHelper] 
(catalina-exec-13:null) Ssh executed failed
java.lang.NullPointerException
     at 
com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmdOneShotWithExitCode(SSHCmdHelper.java:147)
     at 
com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmdOneShot(SSHCmdHelper.java:158)
     at com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmd(SSHCmdHelper.java:63)
     at 
com.cloud.hypervisor.kvm.discoverer.LibvirtServerDiscoverer.find(LibvirtServerDiscoverer.java:225)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:741)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
     at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
     at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
     at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
     at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:679)

Re: Error, when setting up in advanced..

Posted by Daan Hoogland <da...@gmail.com>.
H Maurice,

On Wed, Oct 2, 2013 at 4:45 AM, Maurice Lawler <ma...@me.com>wrote:

> Ssh executed failed


My guess is that sshSession.getExitStatus() returns (Integer) null which
can't be cast to int. I've seen this happen with return values of jsch,
before. Probably the trilead implementation has a similar problem. The only
other pointer at this line is sshSession which has been used before and
hence is not the problem. I am not sure if we can interpret null as 0 or ok
but it seems it is in your case.

regards,
Daan