Problem running tigerVNC on ubuntu20.04 on WSL-2

1,983 views
Skip to first unread message

Mark Wood-Patrick

unread,
Apr 10, 2022, 9:26:30 AM4/10/22
to TigerVNC User Discussion/Support
I'm having a problem running tigerVNC on ubuntu 20.04 on WSL-2 I would appreciate any pointers on how to fix/debug.

When I run:

    vncserver -localhost no :1

I get:

Killing Xtigervnc process ID 735... success!

=================== tail /home/mwoodpatrick/.vnc/MarkSpectre14.:5901.log ===================
_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 11
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix

Xvnc TigerVNC 1.11.0 - built 2021-09-20 17:57
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12013000, The X.Org Foundation

I do not see any issues in the log file:

Sun Apr 10 05:43:37 2022
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0



Sun Apr 10 05:44:08 2022
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

However dmesg shows:


[ 8867.834770] dxgk:err: is_handle_valid Entry is freed 40000080 2
[ 8867.834772] dxgk:err: hmgrtable_get_object_by_type invalid handle 40000080
[ 8867.838221] dxgk:err: adapter_by_handle failed 40000080
[ 8867.855521] dxgk:err: is_handle_valid Entry is freed 40000080 2
[ 8867.855523] dxgk:err: hmgrtable_get_object_by_type invalid handle 40000080
[ 8867.856593] dxgk:err: adapter_by_handle failed 40000080

If I run:

    /usr/bin/Xtigervnc   -PasswordFile ~/.vnc/passwd :1

The server does run and I am able to connect a viewwr to the server and launch basic clients on it xhost, xdpyinfo, xclock etc. When I run the above command line I get:

_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 22
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix

Xvnc TigerVNC 1.10.0 - built Apr  9 2020 06:49:31
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12008000, The X.Org Foundation


Sun Apr 10 05:59:50 2022
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0

Sun Apr 10 06:00:32 2022
 Connections: accepted: [::1]::53422
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Sun Apr 10 06:01:23 2022
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 6 (8bpp) rgb222

I am using igervnc-standalone-server/focal,now 1.10.1+dfsg-3 amd64 [installed] and according to apt all my pqckages are upto date but I do see a newer version on source forge how come this is not available through apt?

Regards

Mark

============================================================================================

vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/mwoodpatrick/.vnc/MarkSpectre14.:5901.log' to determine the reason! -1

Pierre Ossman

unread,
Apr 12, 2022, 9:52:51 AM4/12/22
to Mark Wood-Patrick, TigerVNC User Discussion/Support
On 10/04/2022 15:26, Mark Wood-Patrick wrote:
> I'm having a problem running tigerVNC on ubuntu 20.04 on WSL-2 I would
> appreciate any pointers on how to fix/debug.
>
> When I run:
>
> vncserver -localhost no :1
>
> I get:
>
> Killing Xtigervnc process ID 735... success!
>
> =================== tail /home/mwoodpatrick/.vnc/MarkSpectre14.:5901.log
> ===================
> _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno =
> 11
> _XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix
>

Something is very odd with that system. Those error codes for mkdir()
don't really make sense. Not sure what is going on, but failing to
create that socket prevents the server from working properly.

>
> If I run:
>
> /usr/bin/Xtigervnc -PasswordFile ~/.vnc/passwd :1
>
> The server does run and I am able to connect a viewwr to the server and
> launch basic clients on it xhost, xdpyinfo, xclock etc. When I run the
> above command line I get:
>

The difference seems to be that you haven't disabled localhost
connections here. So it is likely falling back to TCP when UNIX sockets
aren't working.

>
> I am using igervnc-standalone-server/focal,now 1.10.1+dfsg-3 amd64
> [installed] and according to apt all my pqckages are upto date but I do see
> a newer version on source forge how come this is not available through apt?
>

The package we produce is not the one included in Ubuntu. I'm afraid I
don't know why they aren't updating their packaging more often. I would
suggest opening an issue with them and request more frequent updates.

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Mark Wood-Patrick

unread,
Apr 17, 2022, 10:54:09 AM4/17/22
to TigerVNC User Discussion/Support
Since Ubuntu & Debian are using the 1.11.0 version I downloaded the 1.12.0 version from Sourceforge


I can run the server using:

     ~/tigervnc/tigervnc-1.12.0.x86_64/usr/bin/Xvnc  -PasswordFile ~/.vnc/passwd :1

But I still get

_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 1
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix

on WSL-2 Debian anyone know why?

I am able to connect to it using my vnc viewer and can run apps on it

    xdpyinfo|less

     xclock

    glxgears

etc 


What's the best way to complete the installation of TigerVNC 1.12.0 so I get this version by default?


Pierre Ossman

unread,
Apr 19, 2022, 2:24:29 AM4/19/22
to Mark Wood-Patrick, TigerVNC User Discussion/Support
On 17/04/2022 16:54, Mark Wood-Patrick wrote:
> Since Ubuntu & Debian are using the 1.11.0 version I downloaded the 1.12.0
> version from Sourceforge
>
> wget
> https://sourceforge.net/projects/tigervnc/files/stable/1.12.0/tigervnc-1.12.0.x86_64.tar.gz
>
> I can run the server using:
>
> ~/tigervnc/tigervnc-1.12.0.x86_64/usr/bin/Xvnc -PasswordFile
> ~/.vnc/passwd :1
>
> But I still get
>
> _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 1
> _XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix
>
> on WSL-2 Debian anyone know why?
>

Odd. I wonder if this is something broken in WSL. Perhaps it doesn't
support Unix sockets?

Or there is something preventing normal use of /tmp?

I'm afraid I'm not too familiar with WSL.

mwoodp...@gmail.com

unread,
Apr 19, 2022, 12:46:12 PM4/19/22
to Pierre Ossman, TigerVNC User Discussion/Support
Many thanks for the response I will do more investigation

Do you know why Ubuntu & Debian are providing the 1.11.0 version rather than 1.12.0

Regards

Mark
Reply all
Reply to author
Forward
0 new messages