VNCmanager troubleshooting?

We keep having trouble with VNC Remote Administration. It will work fine for days, then stops and we can’t connect. I have to ssh into the server and restart vncmanager service and displaymanager service. We are using it in ‘without session management’ mode. So I would expect that when someone gets disconnected, the session ends.

I’m having trouble troubleshooting (haha) because the logs don’t really say anything other than - Disconnected Client, Closing connection

with-vnc-key.sh[18009]: Accepted client 93935611158800.
Xvnc[36257]: vncext: VNC extension running!
Xvnc[36257]: Config: set immutable AllowOverride
Xvnc[36257]: vncext: inetd wait
Xvnc[36257]: VNCServerST: creating single-threaded server New session
Xvnc[36257]: vncext: created VNC server for screen 0
with-vnc-key.sh[18009]: Spawned Xvnc (id: #102, pid: 36257, display: 2)
with-vnc-key.sh[18009]: Opening connection to Xvnc #102
Xvnc[36257]: TcpSocket: unable to setsockopt TCP_NODELAY: 95
Xvnc[36257]: XserverDesktop: new client, sock 12
Xvnc[36257]: TcpSocket: unknown address family for socket
Xvnc[36257]: TcpSocket: unknown address family for socket
Xvnc[36257]: Connections: accepted: ::0
Xvnc[36257]: SConnection: reading protocol version
Xvnc[36257]: SConnection: Client needs protocol version 3.8
Xvnc[36257]: SConnection: processing security type message
Xvnc[36257]: SConnection: Client requests security type None(1)
Xvnc[36257]: SConnection: processing security message
Xvnc[36257]: TcpSocket: unknown address family for socket
Xvnc[36257]: VNCServerST: starting desktop
Xvnc[36257]: VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
Xvnc[36257]: SConnection: reading client initialisation
with-vnc-key.sh[18009]: Disconnected client 93935611158800.
with-vnc-key.sh[18009]: Closing connection to Xvnc #102

@SVJohnHi:

Have you set up the VNC Server in accordance with the recommendations of the openSUSE documentation? – <https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-vnc.html#sec-vnc-one-time>.

Are you using the “vncmanager” package?
Are all the package dependencies satisfied? – “zypper verify

dcurtisfra, Yes to all 3 questions. I’m hoping to find a more useful error message than this

with-vnc-key.sh[18009]: Disconnected client 93935611158800.
with-vnc-key.sh[18009]: Closing connection to Xvnc #102

@SVJohnHi:

Please raise an openSUSE Bug Report – same login credentials as your credentials for this Forum.

  • The Client’s key seem to be OK.
  • The “TcpSocket: unknown address family for socket
    ” systemd Journal entries look suspicious –Possibly after several days operation, an address pool somewhere in the VNC Server is possibly becoming exhausted.

Figured something out. Linux TCP keepalive is 120minutes with multiple retries… so basically if someone doesn’t cleanly end the session, it sits there forever waiting for the sockets to time out. Noone else can connect until this happens. Have to restart the displaymanager.