[SOLVED] VNC black screen

Issues related to applications and software problems
Post Reply
IndyMark
Posts: 1
Joined: 2018/05/01 12:22:55

[SOLVED] VNC black screen

Post by IndyMark » 2018/05/01 12:38:35

After wasting countless hours troubleshooting this issue, I'm posting this in case others run into it.

Symptom - User starts a vncserver GUI session with no problems, but when they connect, all that displays is a black screen. The log file in ~/.vnc show these errors:

Xvnc TigerVNC 1.8.0 - built Dec 1 2017 23:21:52
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Mon Apr 30 14:48:00 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5912
vncext: created VNC server for screen 0

(imsettings-check:28470): IMSettings-WARNING **: Could not connect: Connection refused

(imsettings-check:28470): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

** (process:28385): WARNING **: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused

Solution - The root cause turned out to be a PATH setting in the user's .bashrc file that pointed to an alternate version of dbus-daemon instead of the standard one in /bin. The culprit in my case was an installation of Anaconda Python in the user's home directory. Setting PATH back to the defaults resolved the issue.

dtcpsts
Posts: 1
Joined: 2018/06/01 07:00:41

Re: [SOLVED] VNC black screen

Post by dtcpsts » 2018/06/01 07:08:48

Hi, IndyMark

Thanks, you saved my day.
Add a comment before #export PATH="/root/anaconda3/bin:$PATH" then solve the black screen problem.
But is there a way to keep Anaconda3 python in $PATH ?

User avatar
TrevorH
Forum Moderator
Posts: 26303
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] VNC black screen

Post by TrevorH » 2018/06/01 09:13:06

Well...

a) don't vnc as root in the first place
b) we supply anaconda already, why are you doing source installs?
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

sethp
Posts: 1
Joined: 2019/02/01 16:23:34

Re: [SOLVED] VNC black screen

Post by sethp » 2019/02/01 16:25:33

I'm having the same problem. How do I fix this?

User avatar
TrevorH
Forum Moderator
Posts: 26303
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] VNC black screen

Post by TrevorH » 2019/02/01 16:31:48

If it is genuinely the same problem then by removing the anaconda3 directory from PATH.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

paul18fr
Posts: 4
Joined: 2019/04/24 12:00:25

Re: [SOLVED] VNC black screen

Post by paul18fr » 2019/05/16 09:15:00

I spent a lot of time in looking for how to fix the same issue; many thanks for your feedback :D

Paul

Post Reply