canonical / lightdm

Display Manager
GNU General Public License v3.0
827 stars 138 forks source link

x11vnc was unable to open the X DISPLAY: ":0", it cannot continue. #56

Open lighth7015 opened 5 years ago

lighth7015 commented 5 years ago

For some reason, lightdm uses the wrong magic cookie when connecting to the main X11 server. any ideas why?

[+10.97s] DEBUG: Seat vnc0: Loading properties from config section Seat:*
[+10.97s] DEBUG: Seat vnc0: Starting
[+10.97s] DEBUG: Seat vnc0: Creating greeter session
[+10.97s] DEBUG: Seat vnc0: Creating display server of type x
[+10.97s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+10.97s] DEBUG: XServer 1: Writing X server authority to /run/lightdm/root/:1
[+10.97s] DEBUG: XServer 1: Launching X Server
[+10.97s] DEBUG: Launching process 18078: /usr/bin/x11vnc :1 -auth /run/lightdm/root/:1 -nolisten tcp -inetd -geometry 1024x768 -depth 8
[+10.97s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+10.97s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat1
[+14.99s] DEBUG: Process 18078 exited with return value 1
[+14.99s] DEBUG: XServer 1: X server stopped
[+14.99s] DEBUG: XServer 1: Removing X server authority /run/lightdm/root/:1
[+14.99s] DEBUG: Seat vnc0: Display server stopped
[+14.99s] DEBUG: Seat vnc0: Stopping session
[+14.99s] DEBUG: Seat vnc0: Session stopped
[+14.99s] DEBUG: Seat vnc0: Stopping display server, no sessions require it
[+14.99s] DEBUG: Seat vnc0: Stopping; greeter display server failed to start
[+14.99s] DEBUG: Seat vnc0: Stopping
[+14.99s] DEBUG: Seat vnc0: Stopped
khurshid-alam commented 5 years ago

I can confirm that. I am kicked out of unity but it could be different prob. Also my display is now :0.0 but lightdm sets :0

@lighth7015

how do you know it is setting invalid magic cookie....any workaround ?

lighth7015 commented 5 years ago

Well it says the authorization cookie is /run/lightdm/root/:1, but it should be -auth /run/lightdm/root/:0 when connecting to the login desktop, right?

muktupavels commented 5 years ago

Why should it be :0? From your provided log file your vnc seat was started as :1 and vnc was started for same display... Your log file looks good to me except for fact that x11vnc process stops after 4 seconds.