VNC on Lucid: Connection reset by peer (104) after first session logout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Binary package hint: gdm
Problem occurs on headless server (no screen, no keyboard) which I have just upgraded from 8.04 LTS to 10.04 LTS. I believe the problem appeared after the upgrade. It may be related to 433928 and 578013.
The first VNC connection from a remote system works correctly. After a normal logout from this first server session (which closes the remote vncviewer window), subsequent VNC connection attempts fail with the ubiquitous read: Connection reset by peer (104) message.
Restarting gdm allows connections to be made again.
The following syslog sequence shows the messages from the sequence:
1. failed connection attempt
2. restart gdm
3. successful connection attempt
-------
Jul 19 11:15:52 uranus console-
Jul 19 11:16:54 uranus gdm-binary[5641]: WARNING: Unable to find users: no seat-id found
Jul 19 11:16:54 uranus acpid: client 3941[0:0] has disconnected
Jul 19 11:16:54 uranus acpid: client connected from 5645[0:0]
Jul 19 11:16:54 uranus acpid: 1 client rule loaded
Jul 19 11:17:01 uranus gdm-simple-
Jul 19 11:17:01 uranus CRON[5686]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 19 11:17:02 uranus gdm-simple-
Jul 19 11:17:02 uranus xinetd[5693]: warning: can't get client address: Transport endpoint is not connected
Jul 19 11:17:13 uranus gdm-simple-
Jul 19 11:17:15 uranus gdm-simple-
Jul 19 11:17:19 uranus gdm-session-
Jul 19 11:17:29 uranus gnome-session[
-------
and the processes running after the successful connection:
vince@uranus:
5641 ? Ssl 0:00 gdm-binary
5642 ? Sl 0:00 /usr/lib/
5645 tty8 Ss+ 0:02 /usr/bin/X :0 -br -verbose -auth /var/run/
5667 ? Ssl 0:00 /usr/bin/
5673 ? Ss 0:00 /usr/lib/
5681 ? S 0:01 /usr/lib/
5683 ? S 0:00 /usr/lib/
5694 ? Sl 0:00 /usr/lib/
5722 ? Sl 0:00 /usr/lib/
5993 pts/1 S+ 0:00 grep gdm
Packages in use:
Linux uranus 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux
gdm 2.30.2.
gnome-session-bin 2.30.0-0ubuntu1
vnc4server 4.1.2
vnc4-common 4.1.2
My current workround is *not* to logout but close the remote vncviewer process. The Xvnc session on the server then continues and I reuse it on subsequent connections.
Changed in gdm (Ubuntu): | |
importance: | Undecided → Low |
I forgot to say that I invoke the vnc server via xinetd. Here is the process info:
vince@uranus: /var/log$ ps ax|grep vnc fonts/X11/ misc -DisconnectClie nts=0 -NeverShared -extension XFIXES passwordFile= /root/. vncpasswd
5693 ? Ss 25:24 Xvnc -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/
6006 pts/1 S+ 0:00 grep vnc
The gdm processes after I logout and can not reconnect look like this:
5641 ? Ssl 0:00 gdm-binary gdm/gdm- simple- slave --display-id /org/gnome/ DisplayManager/ Display1 gdm/auth- for-gdm- 7LmKg3/ database gnome-session --autostart= /usr/share/ gdm/autostart/ LoginWindow/ gnome-settings- daemon/ gnome-settings- daemon --gconf- prefix= /apps/gdm/ simple- greeter/ settings- manager- plugins gdm/gdm- simple- greeter gdm/gdm- session- worker
5642 ? Sl 0:00 /usr/lib/
5645 tty8 Ss+ 0:02 /usr/bin/X :0 -br -verbose -auth /var/run/
5667 ? Ssl 0:00 /usr/bin/
5673 ? Ss 0:00 /usr/lib/
5681 ? S 0:01 /usr/lib/
5683 ? S 0:00 /usr/lib/
6032 pts/1 S+ 0:00 grep gdm
and there are no vnc processes.