Can't connect to VNC server with sunstone and fireedge

Hello, everyone.
I installed OpenNebula 6.6.0 in Rocky Linux 9.2 server.Ihave a opennebula sunsstone&fireedge server and kvm-node.

I deployed a VM with some iso image. I tried to connect vnc with web ui.But couldn’t connect it.
Sunstone says TUNNEL_ERROR, FireEdge sys client error.


The novnc log(/var/log/one/novnc.log) doesn’t have any errors.

# Logfile created on 2023-09-12 21:14:38 +0900 by logger.rb/v1.4.3
I, [2023-09-12T21:14:38.739448 #2835502]  INFO -- : Starting VNC proxy: python /usr/share/one/websockify/run --target-config=/var/lib/one/sunstone_vnc_tokens  29876
WebSocket server settings:
  - Listen on :29876
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :29876 to targets generated by TokenFile

Oned log(/var/log/one/oned.log) too

Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:6064 UID:0 IP:127.0.0.1 one.grouppool.info invoked 
Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:6064 UID:0 one.grouppool.info result SUCCESS, "<GROUP_POOL><GROUP><..."
Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:208 UID:1 IP:127.0.0.1 one.user.info invoked , 0, true
Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:208 UID:1 one.user.info result SUCCESS, "<USER><ID>0</ID><GID..."
Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:2272 UID:1 IP:127.0.0.1 one.vm.info invoked , 1, true
Fri Sep 15 17:58:59 2023 [Z0][ReM][D]: Req:2272 UID:1 one.vm.info result SUCCESS, "<VM><ID>1</ID><UID>0..."
Fri Sep 15 17:59:00 2023 [Z0][ReM][D]: Req:8256 UID:0 IP:127.0.0.1 one.system.version invoked 
Fri Sep 15 17:59:00 2023 [Z0][ReM][D]: Req:8256 UID:0 one.system.version result SUCCESS, "6.6.0"
Fri Sep 15 17:59:00 2023 [Z0][ReM][D]: Req:6000 UID:0 IP:127.0.0.1 one.vm.info invoked , 1, false
Fri Sep 15 17:59:00 2023 [Z0][ReM][D]: Req:6000 UID:0 one.vm.info result SUCCESS, "<VM><ID>1</ID><UID>0..."
Fri Sep 15 17:59:08 2023 [Z0][ReM][D]: Req:8864 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:08 2023 [Z0][ReM][D]: Req:8864 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:2304 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:2304 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:7104 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:7104 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:2080 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:12 2023 [Z0][ReM][D]: Req:2080 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:18 2023 [Z0][ReM][D]: Req:4800 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:18 2023 [Z0][ReM][D]: Req:4800 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:19 2023 [Z0][DBM][I]: Purging obsolete LogDB records: 0 records purged. Log state: 0,0 - 0,0
Fri Sep 15 17:59:19 2023 [Z0][DBM][I]: Purging obsolete federated LogDB records: 0 records purged. Federated log size: 0.
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:7072 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:7072 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:5296 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:5296 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:704 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:27 2023 [Z0][ReM][D]: Req:704 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:28 2023 [Z0][ReM][D]: Req:9696 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:28 2023 [Z0][ReM][D]: Req:9696 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:38 2023 [Z0][ReM][D]: Req:8592 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:38 2023 [Z0][ReM][D]: Req:8592 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:7984 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:7984 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:4800 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:4800 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:7296 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:42 2023 [Z0][ReM][D]: Req:7296 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:48 2023 [Z0][ReM][D]: Req:1216 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:48 2023 [Z0][ReM][D]: Req:1216 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:3504 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:3504 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:6208 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:6208 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:6224 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Fri Sep 15 17:59:57 2023 [Z0][ReM][D]: Req:6224 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>1</..."
Fri Sep 15 17:59:58 2023 [Z0][ReM][D]: Req:2400 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 17:59:58 2023 [Z0][ReM][D]: Req:2400 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 18:00:08 2023 [Z0][ReM][D]: Req:4720 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 18:00:08 2023 [Z0][ReM][D]: Req:4720 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Fri Sep 15 18:00:12 2023 [Z0][ReM][D]: Req:7056 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked 
Fri Sep 15 18:00:12 2023 [Z0][ReM][D]: Req:7056 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."

But Fireedge error log(/var/log/one/fireedge.error) says error.

[2023-09-Sep 14, 2023 21:55:10] [Connection 11]  Closing connection with error:  Error: not opened
    at WebSocket.send (/usr/lib/one/fireedge/node_modules/opennebula-guacamole/node_modules/ws/lib/WebSocket.js:218:38)
    at ClientConnection.send (/usr/lib/one/fireedge/node_modules/opennebula-guacamole/lib/ClientConnection.js:126:24)
    at GuacdClient.sendBufferToWebSocket (/usr/lib/one/fireedge/node_modules/opennebula-guacamole/lib/GuacdClient.js:172:35)
    at GuacdClient.processReceivedData (/usr/lib/one/fireedge/node_modules/opennebula-guacamole/lib/GuacdClient.js:163:14)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
[2023-09-Sep 15, 2023 17:59:00] [Connection 12]  Closing connection with error:  1000

Thank you.

Sorry,every one.
I forgot disabling firewalld. So the guacd can’t connect to vnc server.

thank you,everyone.

handy way for debugging VNC related issues - if you open the novnc.log file, the very first line should show how it is started up. If you want to debug VNC issues, just use that starting line to make all messages appear in your terminal, so you can see what’s going on.

Starting VNC proxy: python /usr/share/one/websockify/run --target-config=/var/lib/one/sunstone_vnc_tokens --cert some.cert --key some.key --ssl-only 29876