I got same error when I deployed CloudStack 4.5 on CentOS 6.5 with yum repository(http://cloudstack.apt-get.eu/). I investigated this issue a lot online but I failed to find a solution. Then I tried to deploy CloudStack 4.3 on Ubuntu then I did not see this error and the system running well.
-Yan On Tue, Nov 24, 2015 at 1:01 AM, kotipalli venkatesh < venkateshcloudt...@gmail.com> wrote: > Hi All, > > I have successful installed CS 4.6.0 and hypervisor is Xenserver 6.5 > Agent state is not up on both VM's (CPVM and SSVM) > > Please find the below SSVM log error : > > 2015-11-24 06:43:48,995 DEBUG [utils.script.Script] (main:null) Looking for > createvolume.sh in the classpath > 2015-11-24 06:43:48,995 DEBUG [utils.script.Script] (main:null) System > resource: null > 2015-11-24 06:43:48,995 DEBUG [utils.script.Script] (main:null) Classpath > resource: > file:/usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh > 2015-11-24 06:43:48,995 DEBUG [utils.script.Script] (main:null) Absolute > path = /usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh > 2015-11-24 06:43:48,995 INFO [storage.template.DownloadManagerImpl] > (main:null) createvolume.sh found in > /usr/local/cloud/systemvm/scripts/storage/secondary/createvolume.sh > 2015-11-24 06:43:49,002 INFO [storage.template.UploadManagerImpl] > (main:null) UploadManager: starting additional services since we are inside > system vm > 2015-11-24 06:43:49,357 INFO [cloud.serializer.GsonHelper] (main:null) > Default Builder inited. > 2015-11-24 06:43:49,367 DEBUG [cloud.agent.Agent] (main:null) Adding > shutdown hook > 2015-11-24 06:43:49,368 INFO [cloud.agent.Agent] (main:null) Agent [id = > new : type = PremiumSecondaryStorageResource : zone = 2 : pod = 2 : workers > = 5 : host = 10.0.0.170 : port = 8250 > 2015-11-24 06:43:49,379 INFO [utils.nio.NioClient] (main:null) Connecting > to 10.0.0.170:8250 > 2015-11-24 06:44:49,607 *ERROR [utils.nio.NioConnection] (main:null) Unable > to initialize the threads.* > java.io.IOException: Connection closed with -1 on reading size. > at com.cloud.utils.nio.Link.doHandshake(Link.java:513) > at com.cloud.utils.nio.NioClient.init(NioClient.java:80) > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) > at com.cloud.agent.Agent.start(Agent.java:227) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) > at > com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) > at com.cloud.agent.AgentShell.start(AgentShell.java:461) > at com.cloud.agent.AgentShell.main(AgentShell.java:496) > 2015-11-24 06:44:49,613 INFO [utils.exception.CSExceptionErrorCode] > (main:null) Could not find exception: > com.cloud.utils.exception.NioConnectionException in error code list for > exceptions > 2015-11-24 06:44:49,614 ERROR [cloud.agent.AgentShell] (main:null) Unable > to start agent: > com.cloud.utils.exception.CloudRuntimeException: Unable to start the > connection! > at com.cloud.agent.Agent.start(Agent.java:229) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) > at > com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) > at com.cloud.agent.AgentShell.start(AgentShell.java:461) > at com.cloud.agent.AgentShell.main(AgentShell.java:496) > Caused by: com.cloud.utils.exception.NioConnectionException: Connection > closed with -1 on reading size. > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:94) > at com.cloud.agent.Agent.start(Agent.java:227) > ... 5 more > Caused by: java.io.IOException: Connection closed with -1 on reading size. > at com.cloud.utils.nio.Link.doHandshake(Link.java:513) > at com.cloud.utils.nio.NioClient.init(NioClient.java:80) > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) > ... 6 more > 2015-11-24 06:44:49,620 INFO [cloud.agent.Agent] > (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill > > Could you please quick respone ASAP. > > Regards, > Venkatesh.k >