在Ubuntu 20.04上,XFCE VNC死机

分享于 

11分钟阅读

ubuntu

  繁體

问题:

在20.04,我的无头xubuntu/xfce服务器在短时间(例如5分钟左右)之后卡死了vnc服务器,syslog显示


Oct 11 22:35:02 BS-Server2 systemd[1]: Started Run anacron jobs.


Oct 11 22:35:02 BS-Server2 anacron[93014]: Anacron 2.3 started on 2020-10-11


Oct 11 22:35:02 BS-Server2 anacron[93014]: Normal exit (0 jobs run)


Oct 11 22:35:02 BS-Server2 systemd[1]: anacron.service: Succeeded.


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] AppArmor D-Bus mediation is enabled


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=1000 pid=93089 comm="xf


ce4-session " label="unconfined")


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.a11y.Bus'


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.xfce.Xfconf' requested by ':1.2' (uid=1000 pid=93089 comm=


"xfce4-session " label="unconfined")


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.xfce.Xfconf'


Oct 11 22:36:18 BS-Server2 org.a11y.Bus[93110]: dbus-daemon[93110]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=93089 comm=


"xfce4-session " label="unconfined")


Oct 11 22:36:18 BS-Server2 org.a11y.Bus[93110]: dbus-daemon[93110]: Successfully activated service 'org.a11y.atspi.Registry'


Oct 11 22:36:18 BS-Server2 org.a11y.Bus[93120]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.xfce.ScreenSaver' requested by ':1.2' (uid=1000 pid=93089


comm="xfce4-session " label="unconfined")


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.Daemon' requested by ':1.5' (uid=1000 pid=93124 co


mm="/usr/bin/xfce4-screensaver --no-daemon " label="unconfined")


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.Daemon'


Oct 11 22:36:18 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.xfce.ScreenSaver'


Oct 11 22:36:20 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.15'


(uid=1000 pid=93168 comm="xfdesktop --display :1.0 --sm-client-id 2f8228d1d-" label="unconfined")


Oct 11 22:36:20 BS-Server2 org.freedesktop.thumbnails.Thumbnailer1[93201]: error: XDG_RUNTIME_DIR not set in the environment.


Oct 11 22:36:20 BS-Server2 kernel: [115733.127180] xiccd[93203]: segfault at e4 ip 00005602078484f6 sp 00007ffdf326ff50 error 4 in xiccd[560207844000+5000]


Oct 11 22:36:20 BS-Server2 kernel: [115733.127196] Code: 00 eb 91 90 48 89 ef e8 e8 f8 ff ff eb c5 e8 01 cc ff ff 90 f3 0f 1e fa 55 53 48 89 fb 48 83 ec 08 e8 ce f


8 ff ff 48 8b 7b 08 <8b> 97 e4 00 00 00 85 d2 7e 34 31 ed 66 0f 1f 44 00 00 48 89 e8 ba


Oct 11 22:36:20 BS-Server2 kernel: [115733.257146] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7


Oct 11 22:36:20 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.freedesktop.Notifications' requested by ':1.21' (uid=1000


pid=93208 comm="xfce4-power-manager " label="unconfined")


Oct 11 22:36:20 BS-Server2 kernel: [115733.304595] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7


Oct 11 22:36:20 BS-Server2 kernel: [115733.317064] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7


Oct 11 22:36:20 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.freedesktop.Notifications'


Oct 11 22:36:20 BS-Server2 NetworkManager[812]: <info> [1602448580.7144] agent-manager: agent[12c3d6c8e884b7fb,:1.130/org.freedesktop.nm-applet/1000]: agent regis


tered


Oct 11 22:36:21 BS-Server2 org.freedesktop.thumbnails.Thumbnailer1[93180]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o


Oct 11 22:36:21 BS-Server2 org.freedesktop.thumbnails.Thumbnailer1[93180]: Registered thumbnailer atril-thumbnailer -s %s %u %o


Oct 11 22:36:21 BS-Server2 org.freedesktop.thumbnails.Thumbnailer1[93180]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o


Oct 11 22:36:21 BS-Server2 org.freedesktop.thumbnails.Thumbnailer1[93180]: Registered thumbnailer gnome-thumbnail-font --size %s %u %o


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.18' (uid=10


00 pid=93180 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.18' (uid=1000 p


id=93180 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.GoaVolumeMonitor' requested by ':1.18' (uid=1000 p


id=93180 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.GoaVolumeMonitor'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.18' (uid=10


00 pid=93180 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.18' (uid=1000 p


id=93180 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Activating service name='org.gtk.vfs.Metadata' requested by ':1.15' (uid=1000 pid=93168


 comm="xfdesktop --display :1.0 --sm-client-id 2f8228d1d-" label="unconfined")


Oct 11 22:36:21 BS-Server2 dbus-daemon[93103]: [session uid=1000 pid=93101] Successfully activated service 'org.gtk.vfs.Metadata'


Oct 11 22:36:25 BS-Server2 kernel: [115738.266473] panel-6-systray[93172]: segfault at f8 ip 00007f5b3f656b66 sp 00007ffdcdb33948 error 4 in libgdk-3.so.0.2404.16[


7f5b3f633000+81000]


Oct 11 22:36:25 BS-Server2 kernel: [115738.266503] Code: 25 fe ff e9 57 fd ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 8b 87 f8 00 00 00 c3 0f 1f 40 0


0 f3 0f 1e fa 31 c0 <48> 39 bf f8 00 00 00 0f 94 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00


Oct 11 22:36:26 BS-Server2 kernel: [115738.861088] traps: nm-applet[93189] trap int3 ip:7f04ad3a20d5 sp:7ffc72c8b330 error:0 in libglib-2.0.so.0.6400.3[7f04ad36600


0+84000]


Oct 11 22:36:33 BS-Server2 org.xfce.ScreenSaver[93124]: Xlib: extension "DPMS" missing on display ":1".


Oct 11 22:36:48 BS-Server2 org.xfce.ScreenSaver[93124]: Xlib: extension "DPMS" missing on display ":1".


Oct 11 22:37:03 BS-Server2 org.xfce.ScreenSaver[93124]: Xlib: extension "DPMS" missing on display ":1".



但当服务器死机时,没有别的错误消息,syslog只显示:


Oct 11 22:38:33 BS-Server2 org.xfce.ScreenSaver[93124]: message repeated 6 times: [ Xlib: extension "DPMS" missing on display ":1".]


Oct 11 22:38:48 BS-Server2 org.xfce.ScreenSaver[93124]: Xlib: extension "DPMS" missing on display ":1".



然后就卡住了。


答案1:


#!/bin/bash


xrdb $HOME/.Xresources


#unset SESSION_MANAGER


#unset DBUS_SESSION_BUS_ADDRESS


startxfce4 &




答案2:

使用Ubuntu 20.04 (基本系统是Xubuntu,因此默认是XFCE )进行远程访问时也遇到很多问题。将xrdp.ini文件中的连接用作


[Xvnc]


name=Xvnc


lib=libvnc.so


username=ask


password=ask


ip=127.0.0.1


port=-1



-----------以上失败---------------


A connection using Xorg - the xrdp.ini definition:



[Xorg]


name=Xorg


lib=libxup.so


username=ask


password=ask


ip=127.0.0.1


port=-1


code=20



----------- finally worked HOWEVER ------------



一次只适用于一个ID,也就是说,如果某人登录到ID XYZ,则其他人只有在第一个人退出后才能使用XYZ登录。


FREE  Ubuntu  冻结  VNC  XFCE  Xubuntu  
相关文章