SviridoffA commented on issue #10648: URL: https://github.com/apache/cloudstack/issues/10648#issuecomment-2805943147
> [@SviridoffA](https://github.com/SviridoffA) can you open a vm console, and search the agent.log by keyword "GetVncPort" ? > > If the agent.log does not contain DEBUG info, you need to enable it @weizhouapache I connected to the VM console, but unfortunately I couldn’t find any records for that keyword in /var/log/cloud.log. The default logging level is likely INFO. Could you please advise me on how to properly enable DEBUG logging? Unfortunately, I can’t find where this is configured. Is it in /usr/local/cloud/systemvm/conf/agent.properties or somewhere else? Currently, in the log file, I see that Java exceptions are occurring periodically in recent days. They look like this: ``` 2025-04-14 08:36:40,728 ERROR [vnc.network.NioSocket] (Thread-14042:null) Error reading from socket channel: newPosition < 0: (-1 < 0) java.lang.IllegalArgumentException: newPosition < 0: (-1 < 0) at java.base/java.nio.Buffer.createPositionException(Buffer.java:318) at java.base/java.nio.Buffer.position(Buffer.java:293) at java.base/java.nio.ByteBuffer.position(ByteBuffer.java:1094) at com.cloud.consoleproxy.vnc.network.NioSocket.readFromSocketChannel(NioSocket.java:105) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.readBytesToBuffer(NioSocketInputStream.java:63) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.rearrangeBufferToFitSize(NioSocketInputStream.java:81) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.getReadBytesAvailableToFitSize(NioSocketInputStream.java:36) at com.cloud.consoleproxy.vnc.network.NioSocketSSLEngineManager.read(NioSocketSSLEngineManager.java:145) at com.cloud.consoleproxy.vnc.network.NioSocketTLSInputStream.readFromSSLEngineManager(NioSocketTLSInputStream.java:38) at com.cloud.consoleproxy.vnc.network.NioSocketTLSInputStream.rearrangeBufferToFitSize(NioSocketTLSInputStream.java:63) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.getReadBytesAvailableToFitSize(NioSocketInputStream.java:36) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.readAndCopyUnsignedInteger(NioSocketInputStream.java:95) at com.cloud.consoleproxy.vnc.network.NioSocketInputStream.readServerInit(NioSocketInputStream.java:134) at com.cloud.consoleproxy.vnc.network.NioSocketHandlerImpl.readServerInit(NioSocketHandlerImpl.java:94) at com.cloud.consoleproxy.vnc.NoVncClient.readServerInit(NoVncClient.java:497) at com.cloud.consoleproxy.ConsoleProxyNoVncClient.initialisationPhase(ConsoleProxyNoVncClient.java:247) at com.cloud.consoleproxy.ConsoleProxyNoVncClient.authenticateVNCServerThroughNioSocket(ConsoleProxyNoVncClient.java:233) at com.cloud.consoleproxy.ConsoleProxyNoVncClient.authenticateToVNCServer(ConsoleProxyNoVncClient.java:189) at com.cloud.consoleproxy.ConsoleProxyNoVncClient$1.run(ConsoleProxyNoVncClient.java:108) at java.base/java.lang.Thread.run(Thread.java:829 ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
