TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
746 stars 136 forks source link

VNCserver cannot start, log prompt Killing Xvnc process ID #392

Closed ml232528 closed 6 months ago

ml232528 commented 6 months ago

Starting without error, but actually not starting

tyiot@ubuntu:/$ /opt/TurboVNC/bin/vncserver :1

Desktop 'TurboVNC: ubuntu:1 (tyiot)' started on display ubuntu:1

Starting applications specified in /opt/TurboVNC/bin/xstartup.turbovnc
Log file is /home/tyiot/.vnc/ubuntu:1.log
tyiot@ubuntu:/$ /opt/TurboVNC/bin/vncserver -list

TurboVNC sessions:

X DISPLAY #     PROCESS ID      NOVNC PROCESS ID
tyiot@ubuntu:/$ 

log prompt Killing Xvnc process ID:

tyiot@ubuntu:/$ cat  /home/tyiot/.vnc/ubuntu:1.log
TurboVNC Server (Xvnc) 64-bit v3.1 (build 20231117)
Copyright (C) 1999-2023 The VirtualGL Project and many others (see README.md)
Visit http://www.TurboVNC.org for more information on TurboVNC

14/12/2023 16:06:03 Using security configuration file /etc/turbovncserver-security.conf
14/12/2023 16:06:03 Enabled security type 'tlsnone'
14/12/2023 16:06:03 Desktop name 'TurboVNC: ubuntu:1 (tyiot)' (ubuntu:1)
14/12/2023 16:06:03 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
14/12/2023 16:06:03 Listening for VNC connections on TCP port 5901
14/12/2023 16:06:03   Interface 0.0.0.0
14/12/2023 16:06:03 Framebuffer: BGRX 8/8/8/8
14/12/2023 16:06:03 New desktop size: 1240 x 900
14/12/2023 16:06:03 New screen layout:
14/12/2023 16:06:03   0x00000040 (output 0x00000040): 1240x900+0+0
14/12/2023 16:06:03 Maximum clipboard transfer size: 1048576 bytes
14/12/2023 16:06:03 VNC extension running!
xstartup.turbovnc: Creating new session bus instance:
xstartup.turbovnc:   unix:abstract=/tmp/dbus-lCkZvYmdHk,guid=26e4d4ef4b8331017a4c01e6657ab76c
xstartup.turbovnc: Using 'ubuntu' window manager in
xstartup.turbovnc:   /usr/share/xsessions/ubuntu.desktop
xstartup.turbovnc: Executing /etc/X11/Xsession "env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu"
Killing Xvnc process ID 482779
tyiot@ubuntu:/$ 
dcommander commented 6 months ago

No idea. Given the other problems you were experiencing, including the XDG permissions error you reported, the issue may be system-specific. No one else is reporting it, and I cannot reproduce it.

My best suggestion is to start the TurboVNC Server without a window manager, by passing -noxstartup to /opt/TurboVNC/bin/vncserver. Then run the window manager command manually:

DISPLAY=:1 /etc/X11/Xsession "env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu"

That may reveal the source of the failure.

dcommander commented 6 months ago

Scratch that. Ubuntu apparently logs the console output of the window manager to ~/.xsession-errors, so check that file for errors.

ml232528 commented 6 months ago

Scratch that. Ubuntu apparently logs the console output of the window manager to ~/.xsession-errors, so check that file for errors.

Resolved. By reviewing file ~/.xsession-errors, it was found that there is an error in the format of file ~/.xsessionrc. Correct after modifying the format of file ~/.xsessionrc.

ml232528 commented 6 months ago

~/.xsessionrc delete remove_apps=("thunderbird" "rhythmbox" "libreoffice-writer")
Caused by installing NVIDIA driver

Found the same issue on the NVIDIA forum: https://forums.developer.nvidia.com/t/xrdp-fails-to-launch-due-to-nvidias-xsessionrc/222165 https://forums.developer.nvidia.com/t/fix-for-xsessionrc-file-for-usage-with-xrdp-gnome/252044