Opened 14 years ago

Last modified 14 years ago

#57 assigned defect

x11vncをxinetd経由で用いると、勝手にログアウトする

Reported by: mitty Owned by: mitty
Priority: critical Component: research
Keywords: vnc,x11,x11vnc,xinetd,logout Cc:

Description (last modified by mitty)

  • Ubuntu 10.10 Maverick on VMware Workstation 7.1.3
    Linux ubuntu-pxe 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/Linux
    
  • $ x11vnc --version
    x11vnc: 0.9.10 lastmod: 2010-04-28
    
  • $ aptitude show xinetd
    1:2.3.14-7ubuntu3
    
  • Xface4 on Xubuntu
    4.6.2 (Xfce 4.6)
    
  • UltraVNC Win32 viewer 1.0.5
    • SSH forwarding to localhost:5900
  • /etc/xinetd.d/x11vnc
    service x11vnc
    {
    	port		= 5900
    	type		= UNLISTED
    	socket_type	= stream
    	protocol	= tcp
    	wait		= no
    	only_from	= 127.0.0.1
    	user		= root
    	server		= /usr/bin/x11vnc
    	server_args	= -display :0 -auth guess -nopw -localhost -inetd -o /var/log/x11vnc.log
    	disable		= no
    }
    

Change History (5)

comment:1 Changed 14 years ago by mitty

  • Description modified (diff)
  • Status changed from new to assigned

logon Xface4 session with VNC

  • ログオンしてから勝手にログアウトするまでのログ
    • ログインは 00:26、ログアウトは 00:29
  • /var/log/x11vnc.log
    08/03/2011 00:26:16 x11vnc version: 0.9.10 lastmod: 2010-04-28  pid: 2478
    xauth:  unable to generate an authority file name
    08/03/2011 00:26:17 -auth guess: using 'XAUTHORITY=/var/run/gdm/auth-for-gdm-jKIzCL/database' for disp=':0'
    08/03/2011 00:26:17 Using X display :0
    08/03/2011 00:26:17 rootwin: 0x102 reswin: 0xc00001 dpy: 0x1d4b530
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 ------------------ USEFUL INFORMATION ------------------
    08/03/2011 00:26:17 X DAMAGE available on display, using it for polling hints.
    08/03/2011 00:26:17   To disable this behavior use: '-noxdamage'
    08/03/2011 00:26:17 
    08/03/2011 00:26:17   Most compositing window managers like 'compiz' or 'beryl'
    08/03/2011 00:26:17   cause X DAMAGE to fail, and so you may not see any screen
    08/03/2011 00:26:17   updates via VNC.  Either disable 'compiz' (recommended) or
    08/03/2011 00:26:17   supply the x11vnc '-noxdamage' command line option.
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 Wireframing: -wireframe mode is in effect for window moves.
    08/03/2011 00:26:17   If this yields undesired behavior (poor response, painting
    08/03/2011 00:26:17   errors, etc) it may be disabled:
    08/03/2011 00:26:17    - use '-nowf' to disable wireframing completely.
    08/03/2011 00:26:17    - use '-nowcr' to disable the Copy Rectangle after the
    08/03/2011 00:26:17      moved window is released in the new position.
    08/03/2011 00:26:17   Also see the -help entry for tuning parameters.
    08/03/2011 00:26:17   You can press 3 Alt_L's (Left "Alt" key) in a row to 
    08/03/2011 00:26:17   repaint the screen, also see the -fixscreen option for
    08/03/2011 00:26:17   periodic repaints.
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 XFIXES available on display, resetting cursor mode
    08/03/2011 00:26:17   to: '-cursor most'.
    08/03/2011 00:26:17   to disable this behavior use: '-cursor arrow'
    08/03/2011 00:26:17   or '-noxfixes'.
    08/03/2011 00:26:17 using XFIXES for cursor drawing.
    08/03/2011 00:26:17 GrabServer control via XTEST.
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 Scroll Detection: -scrollcopyrect mode is in effect to
    08/03/2011 00:26:17   use RECORD extension to try to detect scrolling windows
    08/03/2011 00:26:17   (induced by either user keystroke or mouse input).
    08/03/2011 00:26:17   If this yields undesired behavior (poor response, painting
    08/03/2011 00:26:17   errors, etc) it may be disabled via: '-noscr'
    08/03/2011 00:26:17   Also see the -help entry for tuning parameters.
    08/03/2011 00:26:17   You can press 3 Alt_L's (Left "Alt" key) in a row to 
    08/03/2011 00:26:17   repaint the screen, also see the -fixscreen option for
    08/03/2011 00:26:17   periodic repaints.
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 XKEYBOARD: number of keysyms per keycode 6 is greater
    08/03/2011 00:26:17   than 4 and 2 keysyms are mapped above 4.
    08/03/2011 00:26:17   Automatically switching to -xkb mode.
    08/03/2011 00:26:17   If this makes the key mapping worse you can
    08/03/2011 00:26:17   disable it with the "-noxkb" option.
    08/03/2011 00:26:17   Also, remember "-remap DEAD" for accenting characters.
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 X FBPM extension not supported.
    08/03/2011 00:26:17 X display is not capable of DPMS.
    08/03/2011 00:26:17 --------------------------------------------------------
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 Default visual ID: 0x21
    08/03/2011 00:26:17 Read initial data from X display into framebuffer.
    08/03/2011 00:26:17 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3200
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 X display :0.0 is 32bpp depth=24 true color
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 Xinerama is present and active (e.g. multi-head).
    08/03/2011 00:26:17 Xinerama: number of sub-screens: 1
    08/03/2011 00:26:17 Xinerama: no blackouts needed (only one sub-screen)
    08/03/2011 00:26:17 
    08/03/2011 00:26:17 fb read rate: 431 MB/sec
    08/03/2011 00:26:17 fast read: reset wait  ms to: 10
    08/03/2011 00:26:17 fast read: reset defer ms to: 10
    08/03/2011 00:26:17 The X server says there are 13 mouse buttons.
    08/03/2011 00:26:17 screen setup finished.
    
    ******************************************************************************
    Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?
    
    The scheme stores pixel data offscreen on the VNC viewer side for faster
    retrieval.  It should work with any VNC viewer.  Try it by running:
    
        x11vnc -ncache 10 ...
    
    One can also add -ncache_cr for smooth 'copyrect' window motion.
    More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
    
    08/03/2011 00:26:17   other clients:
    08/03/2011 00:26:17 check_access: client 127.0.0.1 matches host 127.0.0.1
    08/03/2011 00:26:17 Disabled X server key autorepeat.
    08/03/2011 00:26:17   to force back on run: 'xset r on' (3 times)
    08/03/2011 00:26:17 incr accepted_client=1 for 127.0.0.1:60926  sock=9
    08/03/2011 00:26:17 Client Protocol Version 3.4
    08/03/2011 00:26:17 Protocol version sent 3.4, using 3.4
    08/03/2011 00:26:18 Pixel format for client 127.0.0.1:
    08/03/2011 00:26:18   8 bpp, depth 8
    08/03/2011 00:26:18   true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
    08/03/2011 00:26:18 Using compression level 6 for client 127.0.0.1
    08/03/2011 00:26:18 Enabling X-style cursor updates for client 127.0.0.1
    08/03/2011 00:26:18 Enabling full-color cursor updates for client 127.0.0.1
    08/03/2011 00:26:18 Enabling cursor position updates for client 127.0.0.1
    08/03/2011 00:26:18 Using image quality level 6 for client 127.0.0.1
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
    08/03/2011 00:26:18 Enabling LastRect protocol extension for client 127.0.0.1
    08/03/2011 00:26:18 Enabling NewFBSize protocol extension for client 127.0.0.1
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type cacheEnable
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
    08/03/2011 00:26:18 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
    08/03/2011 00:26:18 Using ZRLE encoding for client 127.0.0.1
    08/03/2011 00:26:19 client_set_net: 127.0.0.1  0.0339
    08/03/2011 00:26:19 created   xdamage object: 0xc0001d
    08/03/2011 00:26:19 Pixel format for client 127.0.0.1:
    08/03/2011 00:26:19   32 bpp, depth 24, little endian
    08/03/2011 00:26:19   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
    08/03/2011 00:26:19 no translation needed
    08/03/2011 00:26:19 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
    08/03/2011 00:26:19 Using compression level 6 for client 127.0.0.1
    08/03/2011 00:26:19 Enabling X-style cursor updates for client 127.0.0.1
    08/03/2011 00:26:19 Enabling full-color cursor updates for client 127.0.0.1
    08/03/2011 00:26:19 Enabling cursor position updates for client 127.0.0.1
    08/03/2011 00:26:19 Using image quality level 6 for client 127.0.0.1
    08/03/2011 00:26:19 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
    08/03/2011 00:26:19 Enabling LastRect protocol extension for client 127.0.0.1
    08/03/2011 00:26:19 Enabling NewFBSize protocol extension for client 127.0.0.1
    08/03/2011 00:26:19 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
    08/03/2011 00:26:19 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
    08/03/2011 00:26:19 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
    08/03/2011 00:26:19 Switching from ZRLE to hextile Encoding for client 127.0.0.1
    08/03/2011 00:26:20 client 1 network rate 1912.1 KB/sec (5774.6 eff KB/sec)
    08/03/2011 00:26:20 client 1 latency:  0.9 ms
    08/03/2011 00:26:20 dt1: 0.2509, dt2: 0.0823 dt3: 0.0009 bytes: 636231
    08/03/2011 00:26:20 link_rate: LR_LAN - 1 ms, 1912 KB/s
    08/03/2011 00:26:20 copy_tiles: allocating first_line at size 26
    08/03/2011 00:26:27 Battling with something for -norepeat!! (1 resets left)
    08/03/2011 00:26:27 Disabled X server key autorepeat.
    08/03/2011 00:26:27   to force back on run: 'xset r on' (2 times)
    08/03/2011 00:26:29 created selwin: 0xc0001e
    08/03/2011 00:26:29 called initialize_xfixes()
    08/03/2011 00:26:35 Battling with something for -norepeat!! (0 resets left)
    08/03/2011 00:26:35 Disabled X server key autorepeat.
    08/03/2011 00:26:35   to force back on run: 'xset r on' (1 times)
    caught XIO error:
    08/03/2011 00:29:15 deleted 25 tile_row polling images.
    
  • /var/log/syslog
    Mar  8 00:26:21 ubuntu-pxe gdm-session-worker[2226]: GLib-GObject-CRITICAL: g_value_get_boolean: assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed
    Mar  8 00:26:25 ubuntu-pxe NetworkManager[855]: <error> [1299511585.203586] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:26:25 ubuntu-pxe NetworkManager[855]: <error> [1299511585.354450] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:26:32 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2749 of process 2749 (n/a) owned by '1000' high priority at nice level -11.
    Mar  8 00:26:32 ubuntu-pxe rtkit-daemon[1957]: Supervising 1 threads of 1 processes of 1 users.
    Mar  8 00:26:32 ubuntu-pxe pulseaudio[2749]: pid.c: Stale PID file, overwriting.
    Mar  8 00:26:34 ubuntu-pxe pulseaudio[2749]: alsa-util.c: Disabling timer-based scheduling because running inside a VM.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2764 of process 2749 (n/a) owned by '1000' RT at priority 5.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Supervising 2 threads of 1 processes of 1 users.
    Mar  8 00:26:35 ubuntu-pxe pulseaudio[2749]: alsa-util.c: Disabling timer-based scheduling because running inside a VM.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2769 of process 2749 (n/a) owned by '1000' RT at priority 5.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Supervising 3 threads of 1 processes of 1 users.
    Mar  8 00:26:37 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2776 of process 2776 (n/a) owned by '1000' high priority at nice level -11.
    Mar  8 00:26:37 ubuntu-pxe rtkit-daemon[1957]: Supervising 4 threads of 2 processes of 1 users.
    Mar  8 00:26:37 ubuntu-pxe pulseaudio[2776]: pid.c: Daemon already running.
    Mar  8 00:27:39 ubuntu-pxe pulseaudio[2749]: alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write!
    Mar  8 00:27:39 ubuntu-pxe pulseaudio[2749]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_ens1371'. Please report this issue to the ALSA developers.
    Mar  8 00:27:39 ubuntu-pxe pulseaudio[2749]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
    Mar  8 00:29:16 ubuntu-pxe NetworkManager[855]: <error> [1299511756.531728] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:29:18 ubuntu-pxe acpid: client 2184[0:0] has disconnected
    Mar  8 00:29:18 ubuntu-pxe acpid: client connected from 2884[0:0]
    Mar  8 00:29:18 ubuntu-pxe acpid: 1 client rule loaded
    Mar  8 00:29:19 ubuntu-pxe NetworkManager[855]: <error> [1299511759.811099] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:29:21 ubuntu-pxe gnome-session[2906]: WARNING: Could not launch application 'metacity.desktop': Unable to start application: Failed to execute child process "metacity" (No such file or directory)
    Mar  8 00:29:21 ubuntu-pxe gnome-session[2906]: WARNING: Could not launch application 'gnome-power-manager.desktop': Unable to start application: Failed to execute child process "gnome-power-manager" (No such file or directory)
    Mar  8 00:29:24 ubuntu-pxe gdm-simple-greeter[2922]: Gtk-WARNING: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow
    
  • /var/log/daemon.log
    Mar  8 00:26:21 ubuntu-pxe gdm-session-worker[2226]: GLib-GObject-CRITICAL: g_value_get_boolean: assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed
    Mar  8 00:26:25 ubuntu-pxe NetworkManager[855]: <error> [1299511585.203586] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:26:25 ubuntu-pxe NetworkManager[855]: <error> [1299511585.354450] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:26:32 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2749 of process 2749 (n/a) owned by '1000' high priority at nice level -11.
    Mar  8 00:26:32 ubuntu-pxe rtkit-daemon[1957]: Supervising 1 threads of 1 processes of 1 users.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2764 of process 2749 (n/a) owned by '1000' RT at priority 5.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Supervising 2 threads of 1 processes of 1 users.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2769 of process 2749 (n/a) owned by '1000' RT at priority 5.
    Mar  8 00:26:35 ubuntu-pxe rtkit-daemon[1957]: Supervising 3 threads of 1 processes of 1 users.
    Mar  8 00:26:37 ubuntu-pxe rtkit-daemon[1957]: Successfully made thread 2776 of process 2776 (n/a) owned by '1000' high priority at nice level -11.
    Mar  8 00:26:37 ubuntu-pxe rtkit-daemon[1957]: Supervising 4 threads of 2 processes of 1 users.
    Mar  8 00:29:16 ubuntu-pxe NetworkManager[855]: <error> [1299511756.531728] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:29:18 ubuntu-pxe acpid: client 2184[0:0] has disconnected
    Mar  8 00:29:18 ubuntu-pxe acpid: client connected from 2884[0:0]
    Mar  8 00:29:18 ubuntu-pxe acpid: 1 client rule loaded
    Mar  8 00:29:19 ubuntu-pxe NetworkManager[855]: <error> [1299511759.811099] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 00:29:21 ubuntu-pxe gnome-session[2906]: WARNING: Could not launch application 'metacity.desktop': Unable to start application: Failed to execute child process "metacity" (No such file or directory)
    Mar  8 00:29:21 ubuntu-pxe gnome-session[2906]: WARNING: Could not launch application 'gnome-power-manager.desktop': Unable to start application: Failed to execute child process "gnome-power-manager" (No such file or directory)
    Mar  8 00:29:24 ubuntu-pxe gdm-simple-greeter[2922]: Gtk-WARNING: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow
    

comment:3 Changed 14 years ago by mitty

  1. VMwareのコンソールから直接ログオンすると問題は起きない
    • 10分程度放置
  2. コンソールから直接ログオンしたまま、VNCを接続(上記コンソールセッションに接続される)すると、2分後くらいに勝手にログアウトする
  • /var/log/daemon.log
    Mar  8 01:03:51 ubuntu-pxe NetworkManager[855]: <error> [1299513831.196583] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 01:03:51 ubuntu-pxe acpid: client 3755[0:0] has disconnected
    Mar  8 01:03:51 ubuntu-pxe acpid: client connected from 4167[0:0]
    Mar  8 01:03:51 ubuntu-pxe acpid: 1 client rule loaded
    Mar  8 01:03:51 ubuntu-pxe NetworkManager[855]: <error> [1299513831.618945] [nm-manager.c:1317] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
    Mar  8 01:03:51 ubuntu-pxe gnome-session[4189]: WARNING: Could not launch application 'metacity.desktop': Unable to start application: Failed to execute child process "metacity" (No such file or directory)
    Mar  8 01:03:51 ubuntu-pxe gnome-session[4189]: WARNING: Could not launch application 'gnome-power-manager.desktop': Unable to start application: Failed to execute child process "gnome-power-manager" (No such file or directory)
    Mar  8 01:03:52 ubuntu-pxe gdm-simple-greeter[4205]: Gtk-WARNING: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow
    Mar  8 01:03:53 ubuntu-pxe gdm-simple-greeter[4205]: Gtk-WARNING: gtk_widget_size_allocate(): attempt to allocate widget with width 193 and height -1
    Mar  8 01:03:53 ubuntu-pxe gdm-simple-greeter[4205]: CRITICAL: murrine_style_draw_box: assertion `height >= -1' failed
    Mar  8 01:03:53 ubuntu-pxe gdm-simple-greeter[4205]: Gtk-WARNING: gtk_widget_size_allocate(): attempt to allocate widget with width 193 and height -1
    Mar  8 01:03:53 ubuntu-pxe gdm-simple-greeter[4205]: CRITICAL: murrine_style_draw_box: assertion `height >= -1' failed
    

comment:4 Changed 14 years ago by mitty

  • /etc/xinetd.d/x11vnc を以下のように変更したが効果無し
    @@ -8,6 +8,6 @@
            only_from       = 127.0.0.1
            user            = root
            server          = /usr/bin/x11vnc
    -       server_args     = -display :0 -auth guess -nopw -localhost -inetd -o /var/log/x11vnc.log
    +       server_args     = -display :0 -auth guess -nopw -localhost -inetd -o /var/log/x11vnc.log -forever -bg
            disable         = no
     }
    

comment:5 Changed 14 years ago by mitty

  • Summary changed from x11vncをxinetd経由で用いると、まれに勝手にログアウトする to x11vncをxinetd経由で用いると、勝手にログアウトする
Note: See TracTickets for help on using tickets.