AndreaGHG commented on issue #3164: Cannot open console: ConsoleProxyServlet 
NullPointerException
URL: https://github.com/apache/cloudstack/issues/3164#issuecomment-469725484
 
 
   This the output of 'systemctl status cloud':
   
   <pre>
   root@v-69-VM:~# systemctl status cloud
   ‚óè cloud.service - CloudStack Agent service
      Loaded: loaded (/etc/systemd/system/cloud.service; enabled; vendor 
preset: enabled)
      Active: active (running) since Tue 2019-03-05 15:25:48 UTC; 5s ago
    Main PID: 2140 (bash)
       Tasks: 29 (limit: 4915)
      CGroup: /system.slice/cloud.service
              ├─2140 bash /usr/local/cloud/systemvm/_run.sh
              └─2289 java 
-Djavax.net.ssl.trustStore=./certs/realhostip.keystore 
-Djdk.tls.ephemeralDHKeySize=2048 -Djsse.enableSN
   
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,391  INFO Agent:565 - 
Startup Response Received: agent id = 0
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,459  INFO Agent:839 - 
Processing agent ready command, agent id = 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,466  INFO Agent:370 - Set 
agent id 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,477  INFO Agent:846 - Ready 
command is processed for agent id = 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,478  INFO 
ConsoleProxyResource:104 - Receive ReadyCommand, response with ReadyA
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,553  INFO Agent:839 - 
Processing agent ready command, agent id = 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,555  INFO Agent:370 - Set 
agent id 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,564  INFO Agent:800 - 
Processed new management server list: 10.168.1.248@static
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,568  INFO Agent:846 - Ready 
command is processed for agent id = 11
   Mar 05 15:25:51 v-69-VM _run.sh[2140]: 15:25:51,569  INFO 
ConsoleProxyResource:104 - Receive ReadyCommand, response with ReadyA
   </pre>
   
   This is the log after service restart:
   
   <pre>
   2019-03-05 15:25:47,904 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
   2019-03-05 15:25:50,085 INFO  [cloud.agent.AgentShell] (main:null) Agent 
started
   2019-03-05 15:25:50,090 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.11.2.0
   2019-03-05 15:25:50,091 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /usr/local/cloud/systemvm/conf/agent.properties
   2019-03-05 15:25:50,109 INFO  [cloud.agent.AgentShell] (main:null) 
Defaulting to using properties file for storage
   2019-03-05 15:25:50,116 INFO  [cloud.agent.AgentShell] (main:null) 
Defaulting to the constant time backoff algorithm
   2019-03-05 15:25:50,140 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /usr/local/cloud/systemvm/conf/log4j-cloud.xml
   2019-03-05 15:25:50,191 INFO  [cloud.agent.AgentShell] (main:null) Using 
default Java settings for IPv6 preference for agent connection
   2019-03-05 15:25:50,416 INFO  [cloud.agent.Agent] (main:null) id is 11
   2019-03-05 15:25:50,465 INFO  [resource.consoleproxy.ConsoleProxyResource] 
(main:null) Receive proxyVmId in ConsoleProxyResource configuration as 69
   2019-03-05 15:25:50,468 INFO  [cloud.agent.Agent] (main:null) Agent [id = 11 
: type = ConsoleProxyResource : zone = 2 : pod = 2 : workers = 5 : host = 
10.168.1.248 : port = 8250
   2019-03-05 15:25:50,480 INFO  [utils.nio.NioClient] (main:null) Connecting 
to 10.168.1.248:8250
   2019-03-05 15:25:50,491 INFO  [utils.nio.Link] (main:null) Conf file found: 
/usr/local/cloud/systemvm/conf/agent.properties
   2019-03-05 15:25:51,122 INFO  [utils.nio.NioClient] (main:null) SSL: 
Handshake done
   2019-03-05 15:25:51,126 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.168.1.248:8250
   2019-03-05 15:25:51,243 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
   2019-03-05 15:25:51,369 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
   2019-03-05 15:25:51,372 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
   2019-03-05 15:25:51,391 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
   2019-03-05 15:25:51,459 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-2:null) Processing agent ready command, agent id = 11
   2019-03-05 15:25:51,466 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-2:null) Set agent id 11
   2019-03-05 15:25:51,477 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-2:null) Ready command is processed for agent id = 11
   2019-03-05 15:25:51,478 INFO  [resource.consoleproxy.ConsoleProxyResource] 
(agentRequest-Handler-2:null) Receive ReadyCommand, response with ReadyAnswer
   2019-03-05 15:25:51,553 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-3:null) Processing agent ready command, agent id = 11
   2019-03-05 15:25:51,555 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-3:null) Set agent id 11
   2019-03-05 15:25:51,564 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-3:null) Processed new management server list: 
10.168.1.248@static
   2019-03-05 15:25:51,568 INFO  [cloud.agent.Agent] 
(agentRequest-Handler-3:null) Ready command is processed for agent id = 11
   2019-03-05 15:25:51,569 INFO  [resource.consoleproxy.ConsoleProxyResource] 
(agentRequest-Handler-3:null) Receive ReadyCommand, response with ReadyAnswer
   </pre>
   
   Here you can see that there is nothing listening on ports 80 and 8001:
   
   <pre>
   root@v-69-VM:~# netstat -lnpt
   Active Internet connections (only servers)
   Proto Recv-Q Send-Q Local Address           Foreign Address         State    
   PID/Program name    
   tcp        0      0 10.168.1.21:3922        0.0.0.0:*               LISTEN   
   1189/sshd           
   root@v-69-VM:~# 
   </pre>
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to