Cpvm and ssvm need to access the management server on tcp:8250. The global setting "host" must be set to the ip of the management server or a vip used by this connection.
Firewall might be blocking it somewhere? On Nov 24, 2015 12:57, "Remi Bergsma" <rberg...@schubergphilis.com> wrote: > Indeed, that’s important. Make sure you run java7 and not java8. > > > > On 24/11/15 18:39, "Yiping Zhang" <yzh...@marketo.com> wrote: > > >Which version of OS and java are you using ? > > > >We had encountered a similar error before. AFAICT, we were running RHEL > 6.5 and CS 4.3.2 at the time on a newly setup management server. The java > version installed was IBM version when we saw this error. Once we changed > java package back to java-1.7.0-openjdk, everything worked without making > any other changes. > > > >Good luck. > > > >Yiping > > > > > > > > > >On 11/23/15, 11:21 PM, "kotipalli venkatesh" < > venkateshcloudt...@gmail.com> wrote: > > > >>Hi All, > >> > >>The above solution how can re-solve please help me guys. > >> > >>Regards, > >>Venkatesh.k > >> > >>On Tue, Nov 24, 2015 at 12:49 PM, kotipalli venkatesh < > >>venkateshcloudt...@gmail.com> wrote: > >> > >>> Hi All, > >>> > >>> 2014-06-16 08:08:01,108 INFO [utils.nio.NioClient] > (Agent-Selector:null) > >>> Connecting to 10.102.192.247:8250 > >>> > >>> 2014-06-16 08:08:01,872 ERROR [utils.nio.NioConnection] > >>> (Agent-Selector:null) Unable to initialize the threads. > >>> > >>> java.io.IOException: SSL: Fail to init SSL! java.io.IOException: > >>> Connection closed with -1 on reading size. > >>> > >>> at com.cloud.utils.nio.NioClient.init(NioClient.java:84) > >>> > >>> at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108) > >>> > >>> at java.lang.Thread.run(Thread.java:701) > >>> > >>> *Solution* : - > >>> > >>> > >>> > >>> 1. rm > >>> > ./client/target/cloud-client-ui-4.3.0.0/WEB-INF/classes/cloudmanagementserver.keystore > >>> ./client/target/conf/cloudmanagementserver.keystore > >>> > ./client/target/generated-webapp/WEB-INF/classes/cloudmanagementserver.keystore > >>> > >>> > >>> > >>> 2. remove root entry from cloud.keystore; > >>> > >>> > >>> > >>> 3. remove ssl.keystore from cloud.configuration where description like > >>> '%key%'; > >>> > >>> > >>> > >>> 4. restart MS agent in ssvm > >>> > >>> > >>> Regards, > >>> > >>> Venkatesh.k > >>> > >>> > >>> On Tue, Nov 24, 2015 at 12:44 PM, Yan Bai <baiyan...@gmail.com> wrote: > >>> > >>>> By the way, there is a similar error mention in document below: > >>>> > >>>> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting > >>>> > >>>> Seems this error is caused by corrupted keystore. I tried the > solution in > >>>> the document but did not solve this issue. > >>>> > >>>> On Tue, Nov 24, 2015 at 1:11 AM, Yan Bai <baiyan...@gmail.com> wrote: > >>>> > >>>> > 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 > >>>> >> > >>>> > > >>>> > > >>>> > >>> > >>> >