My Oracle Support Banner

OLVM: noVNC VM Console Returns Error "Failed to connect to server (code: 1006)" if VNC Encryption Setting Mismatch in Cluster and KVM Host (Doc ID 2672512.1)

Last updated on JUNE 26, 2023

Applies to:

Linux OS - Version Oracle Linux 7.7 with Unbreakable Enterprise Kernel [4.14.35] and later
Linux x86-64

Symptoms

OLVM engine/KVM host system logs reports below error in the system log:
May 25 13:51:54 <OLVM Engine> ovirt-websocket-proxy.py: xxx.xxx.xxx.xxx - - [25/May/2020 13:51:54] xxx.xxx.xxx.xxx: SSL/TLS (wss://) WebSocket connection
May 25 13:51:54 <OLVM Engine> ovirt-websocket-proxy.py: xxx.xxx.xxx.xxx - - [25/May/2020 13:51:54] xxx.xxx.xxx.xxx: Version hybi-13, base64: 'False'
...
May 25 13:51:54 <OLVM Engine> ovirt-websocket-proxy.py: xxx.xxx.xxx.xxx - - [25/May/2020 13:51:54] Not a SSL connection, falling back to standard Websockify connection handling
May 25 13:51:54 <OLVM Engine> ovirt-websocket-proxy.py: xxx.xxx.xxx.xxx - - [25/May/2020 13:51:54] connecting to: <KVM HOST IP>:5900 (using SSL)
May 25 13:51:54 <OLVM Engine> journal: 2020-05-25 13:51:54,039+1200 ovirt-websocket-proxy: INFO msg:824 handler exception: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)
May 25 13:51:54 <OLVM Engine> ovirt-websocket-proxy.py: ovirt-websocket-proxy[16652] INFO msg:824 handler exception: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)
Debug log shows the below error:
xxx.xxx.xxx.xxx - - [25/May/2020 13:55:25] connecting to: <KVM HOST IP>:5900 (using SSL)
ovirt-websocket-proxy[17689] INFO msg:824 handler exception: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)
ovirt-websocket-proxy[17689] DEBUG vmsg:828 exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 878, in top_new_client
client = self.do_handshake(startsock, address)
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 813, in do_handshake
self.RequestHandlerClass(retsock, address, self)
File "/usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py", line 228, in __init__
*args, **kwargs)
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 112, in __init__
SimpleHTTPRequestHandler.__init__(self, req, addr, server)
File "/usr/lib64/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 544, in handle
SimpleHTTPRequestHandler.handle(self)
File "/usr/lib64/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib64/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 510, in do_GET
if not self.handle_websocket():
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 498, in handle_websocket
self.new_websocket_client()
File "/usr/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py", line 293, in new_websocket_client
websockify.ProxyRequestHandler.new_websocket_client(self)
File "/usr/lib/python2.7/site-packages/websockify/websocketproxy.py", line 65, in new_websocket_client
connect=True, use_ssl=self.server.ssl_target, unix_socket=self.server.unix_target)
File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 695, in socket
sock = ssl.wrap_socket(sock)
File "/usr/lib64/python2.7/ssl.py", line 934, in wrap_socket
ciphers=ciphers)
File "/usr/lib64/python2.7/ssl.py", line 609, in __init__
self.do_handshake()
File "/usr/lib64/python2.7/ssl.py", line 831, in do_handshake
self._sslobj.do_handshake()
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)

 

KVM Host reports below error in the messages:

May 25 13:51:49 <KVM HOST> saslpasswd2: error deleting entry from sasldb: BDB0073 DB_NOTFOUND: No matching key/data pair found
May 25 13:51:49 <KVM HOST> saslpasswd2: error deleting entry from sasldb: BDB0073 DB_NOTFOUND: No matching key/data pair found
May 25 13:51:49 <KVM HOST> saslpasswd2: error deleting entry from sasldb: BDB0073 DB_NOTFOUND: No matching key/data pair found
May 25 13:51:49 <KVM HOST> saslpasswd2: error deleting entry from sasldb: BDB0073 DB_NOTFOUND: No matching key/data pair found

 

novnc VM console returns error "Failed to connect to server (code: 1006)".

 

 

 

 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.