xmanger xstart 不能正常图形登录的问题

1,报错内容具体如下,昨天还可以用,今天突然不能正常使用了,且咨询相关人员,网络和主机未作任何修改,问题特别奇怪

现象是连接打开后,却又被关闭了,


09:29:14] Connecting...
[09:29:14] Connecting to '10.4.124.236'...
[09:29:14] Connected.
[09:29:14] Version exchange initiated...
[09:29:14]     server: SSH-2.0-OpenSSH_4.3
[09:29:14]     client: SSH-2.0-nsssh2_4.0.0023 NetSarang Computer, Inc.
[09:29:14]     SSH2 is selected.
[09:29:14] Algorithm negotiation initiated...
[09:29:14]     key exchange: diffie-hellman-group14-sha1
[09:29:14]     host key: ssh-dss
[09:29:14]     outgoing encryption: aes128-cbc
[09:29:14]     incoming encryption: aes128-cbc
[09:29:14]     outgoing mac: hmac-sha1
[09:29:14]     incoming mac: hmac-sha1
[09:29:14]     outgoing compression: none
[09:29:14]     incoming compression: none
[09:29:14] Host authentication initiated...
[09:29:14]     Hostkey fingerprint:
[09:29:14]     ssh-dsa 1024 d5:0c:cb:fb:15:25:f2:25:a4:98:d8:8c:64:dd:03:b6
[09:29:14]     Accepted. Verifying host key...
[09:29:14]     Verified.
[09:29:14] User authentication initiated...
[09:29:14]     Sent user name 'root'.
[09:29:15]     Sent password.
[09:29:15]     Access granted.
[09:29:15] Sent X11 forwarding request...
[09:29:15]     Succeeded.
[09:29:15] Sent the command line.
[09:29:15]     /usr/bin/gnome-session --display $DISPLAY
[09:29:15] Start timer (TIMER_SHUTDOWN, 180).
[09:29:15] An X11 channel (id=1) has opened.
[09:29:15] Stop timer (TIMER_SHUTDOWN).
SESSION_MANAGER=local/dtydb6:/tmp/.ICE-unix/20240
[09:29:15] An X11 channel (id=2) has opened.
[09:29:15] An X11 channel (id=2) has closed.
[09:29:30] Connection closed.


2,折腾了半天,发现配置和网络确实没啥问题,查看22端口连接的时候,发现了少许异常,大量gnome-session的的连接存在,说明图形不存在了,大量进程依然存在。


[root@dtydb6 ~]# netstat -anp |grep 22
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      14016/hpiod         
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      14021/python        
tcp      225      0 127.0.0.1:57276             127.0.0.1:6010              CLOSE_WAIT  25294/gnome-session 
tcp      225      0 127.0.0.1:54278             127.0.0.1:6011              CLOSE_WAIT  25430/gnome-session 
tcp        0      0 :::50221                    :::*                        LISTEN      8770/java           
tcp        0      0 :::22                       :::*                        LISTEN      14034/sshd          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:36322      ESTABLISHED 8436/java           
tcp        0      0 ::ffff:127.0.0.1:52233      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:52266      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:52233      ESTABLISHED 8436/java           
tcp        0      0 ::ffff:10.4.124.236:22      ::ffff:10.6.90.46:57384     ESTABLISHED 30046/sshd: flume [ 
tcp        0      0 ::ffff:127.0.0.1:36322      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:52266      ESTABLISHED 8436/java           
unix  2      [ ACC ]     STREAM     LISTENING     1780561187 22185/gnome-keyring /tmp/keyring-gDWLxA/socket
unix  2      [ ACC ]     STREAM     LISTENING     1891200462 22469/dbus-daemon   @/tmp/dbus-tSqkNMzoy8
unix  2      [ ACC ]     STREAM     LISTENING     1891236206 22591/dbus-daemon   @/tmp/dbus-9Hf74ZYnFO
unix  2      [ ACC ]     STREAM     LISTENING     1890815660 22019/gnome-keyring /tmp/keyring-9AetWr/socket
unix  2      [ ACC ]     STREAM     LISTENING     1891236314 22598/gnome-keyring /tmp/keyring-P9K1TT/socket
unix  2      [ ACC ]     STREAM     LISTENING     1891236098 22565/ssh-agent     /tmp/ssh-pAbVj22529/agent.22529
unix  2      [ ACC ]     STREAM     LISTENING     1891221988 22496/Xorg          /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     1652657822 11493/gnome-keyring /tmp/keyring-8bmXqi/socket
unix  2      [ ACC ]     STREAM     LISTENING     1891236633 22621/scim-launcher /tmp/scim-socket-frontend-root
unix  2      [ ACC ]     STREAM     LISTENING     1891237045 22625/scim-helper-m /tmp/scim-helper-manager-socket-root
unix  2      [ ACC ]     STREAM     LISTENING     1891237051 22626/scim-panel-gt /tmp/scim-panel-socket:0-root
unix  2      [ ACC ]     STREAM     LISTENING     1780561165 22169/gnome-session /tmp/.ICE-unix/22169
unix  2      [ ACC ]     STREAM     LISTENING     1890815634 22003/gnome-session /tmp/.ICE-unix/22003
unix  2      [ ACC ]     STREAM     LISTENING     1891236301 22529/gnome-session /tmp/.ICE-unix/22529
unix  2      [ ACC ]     STREAM     LISTENING     1652485220 11305/gnome-session /tmp/orbit-root/linc-2c29-0-4fc370bf9d0a6
unix  2      [ ACC ]     STREAM     LISTENING     1324521 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/testAutomation-fd
unix  2      [ ACC ]     STREAM     LISTENING     1324553 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/mks-fd
unix  2      [ ACC ]     STREAM     LISTENING     1324743 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/vmx-vmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     1780561153 22169/gnome-session /tmp/orbit-root/linc-5699-0-6dbdd67f51d24
unix  2      [ ACC ]     STREAM     LISTENING     1890815609 22003/gnome-session /tmp/orbit-root/linc-55f3-0-267726a47e0c1
unix  2      [ ACC ]     STREAM     LISTENING     1891236261 22529/gnome-session /tmp/orbit-root/linc-5801-0-578ef610e75e6
unix  2      [ ACC ]     STREAM     LISTENING     1891236349 22600/gnome-setting /tmp/orbit-root/linc-5848-0-9c55c2cf33c3
unix  2      [ ACC ]     STREAM     LISTENING     1891263470 22645/gnome-screens /tmp/orbit-root/linc-5874-0-84749e3c3a5
unix  2      [ ACC ]     STREAM     LISTENING     40225  13431/dbus-daemon   /var/run/dbus/system_bus_socket
unix  2      [ ]         STREAM     CONNECTED     1892746223 23308/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1892746221 23308/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1891263490 22645/gnome-screens 
unix  3      [ ]         STREAM     CONNECTED     1891263487 22591/dbus-daemon   @/tmp/dbus-9Hf74ZYnFO
unix  3      [ ]         STREAM     CONNECTED     1891263486 22645/gnome-screens 
unix  3      [ ]         STREAM     CONNECTED     1891263473 22645/gnome-screens /tmp/orbit-root/linc-5874-0-84749e3c3a5
unix  3      [ ]         STREAM     CONNECTED     1891263466 22645/gnome-screens 
unix  3      [ ]         STREAM     CONNECTED     1891263455 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891263454 22645/gnome-screens 
unix  3      [ ]         STREAM     CONNECTED     1891237054 22626/scim-panel-gt /tmp/scim-panel-socket:0-root
unix  3      [ ]         STREAM     CONNECTED     1891237053 22628/scim-launcher 
unix  3      [ ]         STREAM     CONNECTED     1891237048 22625/scim-helper-m /tmp/scim-helper-manager-socket-root
unix  3      [ ]         STREAM     CONNECTED     1891237047 22626/scim-panel-gt 
unix  3      [ ]         STREAM     CONNECTED     1891236888 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891236887 22626/scim-panel-gt 
unix  3      [ ]         STREAM     CONNECTED     1891236874 22621/scim-launcher /tmp/scim-socket-frontend-root
unix  3      [ ]         STREAM     CONNECTED     1891236873 22625/scim-helper-m 
unix  3      [ ]         STREAM     CONNECTED     1891236784 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891236783 22628/scim-launcher 
unix  3      [ ]         STREAM     CONNECTED     1891236723 22621/scim-launcher /tmp/scim-socket-frontend-root
unix  3      [ ]         STREAM     CONNECTED     1891236722 22625/scim-helper-m 
unix  3      [ ]         STREAM     CONNECTED     1891236719 22621/scim-launcher /tmp/scim-socket-frontend-root
unix  3      [ ]         STREAM     CONNECTED     1891236718 22625/scim-helper-m 
unix  3      [ ]         STREAM     CONNECTED     1891236604 22529/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1891236400 22591/dbus-daemon   @/tmp/dbus-9Hf74ZYnFO
unix  3      [ ]         STREAM     CONNECTED     1891236399 22600/gnome-setting 
unix  3      [ ]         STREAM     CONNECTED     1891236354 22600/gnome-setting /tmp/orbit-root/linc-5848-0-9c55c2cf33c3
unix  3      [ ]         STREAM     CONNECTED     1891236347 22600/gnome-setting 
unix  3      [ ]         STREAM     CONNECTED     1891236339 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891236338 22600/gnome-setting 
unix  7      [ ]         STREAM     CONNECTED     1891236319 22591/dbus-daemon   @/tmp/dbus-9Hf74ZYnFO
unix  3      [ ]         STREAM     CONNECTED     1891236318 22529/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1891236264 22529/gnome-session /tmp/orbit-root/linc-5801-0-578ef610e75e6
unix  3      [ ]         STREAM     CONNECTED     1891236257 22529/gnome-session 
unix  11     [ ]         STREAM     CONNECTED     1891236241 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891236240 22529/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1891236215 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891236214 22590/dbus-launch   
unix  3      [ ]         STREAM     CONNECTED     1891236213 22591/dbus-daemon   
unix  3      [ ]         STREAM     CONNECTED     1891236212 22591/dbus-daemon   
unix  3      [ ]         STREAM     CONNECTED     1891224901 14124/xfs           /tmp/.font-unix/fs7100
unix  3      [ ]         STREAM     CONNECTED     1891224900 22496/Xorg          
unix  3      [ ]         STREAM     CONNECTED     1891221995 13618/acpid         /var/run/acpid.socket
unix  3      [ ]         STREAM     CONNECTED     1891221994 22496/Xorg          
unix  9      [ ]         STREAM     CONNECTED     1891224912 22496/Xorg          /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     1891221991 14407/gdm-binary    
unix  3      [ ]         STREAM     CONNECTED     1891200464 22469/dbus-daemon   
unix  3      [ ]         STREAM     CONNECTED     1891200463 22469/dbus-daemon   
unix  3      [ ]         STREAM     CONNECTED     1890815746 22003/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1890815719 22003/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1890815612 22003/gnome-session /tmp/orbit-root/linc-55f3-0-267726a47e0c1
unix  3      [ ]         STREAM     CONNECTED     1890815605 22003/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1890815087 22003/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1890815084 22003/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1780562293 20840/bonobo-activa /tmp/orbit-root/linc-5168-0-4e8676cd9d166
unix  3      [ ]         STREAM     CONNECTED     1780562290 22169/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1780561274 22169/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1780561156 22169/gnome-session /tmp/orbit-root/linc-5699-0-6dbdd67f51d24
unix  3      [ ]         STREAM     CONNECTED     1780561151 22169/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1780558732 22169/gnome-session 
unix  2      [ ]         STREAM     CONNECTED     1780558730 22169/gnome-session 
unix  3      [ ]         STREAM     CONNECTED     1657600422 20840/bonobo-activa /tmp/orbit-root/linc-5168-0-4e8676cd9d166
unix  3      [ ]         STREAM     CONNECTED     1652485223 11305/gnome-session /tmp/orbit-root/linc-2c29-0-4fc370bf9d0a6
unix  3      [ ]         STREAM     CONNECTED     1652485222 11275/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     1628529229 18992/gnome-panel   
unix  3      [ ]         STREAM     CONNECTED     40229  13431/dbus-daemon   
unix  2      [ ]         DGRAM                    39422  13001/rpc.statd 

3,手工杀掉相关进程,无gnome进程存在了

[root@dtydb6 ~]# netstat -anp |grep 22
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      14016/hpiod         
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      14021/python        
tcp        0      0 :::50221                    :::*                        LISTEN      8770/java           
tcp        0      0 :::22                       :::*                        LISTEN      14034/sshd          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:36322      ESTABLISHED 8436/java           
tcp        0      0 ::ffff:127.0.0.1:52233      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:52266      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:52233      ESTABLISHED 8436/java           
tcp        0    260 ::ffff:10.4.124.236:22      ::ffff:10.6.90.46:57384     ESTABLISHED 30046/sshd: flume [
tcp        0      0 ::ffff:127.0.0.1:36322      ::ffff:127.0.0.1:50010      ESTABLISHED 14192/java          
tcp        0      0 ::ffff:127.0.0.1:50010      ::ffff:127.0.0.1:52266      ESTABLISHED 8436/java           
unix  2      [ ACC ]     STREAM     LISTENING     1910332822 30585/metacity      /tmp/orbit-root/linc-7779-0-18085b0f318e2
unix  2      [ ACC ]     STREAM     LISTENING     1324521 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/testAutomation-fd
unix  2      [ ACC ]     STREAM     LISTENING     1324553 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/mks-fd
unix  2      [ ACC ]     STREAM     LISTENING     1324743 26721/vmware-vmx    /var/run/vmware/root_0/1354763574226987_26721/vmx-vmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     40225  13431/dbus-daemon   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     40229  13431/dbus-daemon   
unix  2      [ ]         DGRAM                    39422  13001/rpc.statd     

4,再次xstart启动图形,终于ok了


5,又一次不能正常启动,上述方法不再有效,感觉是异常退出后相关文件删除的不彻底

删除了/tmp目录下的相关文件

[root@dtydb6 tmp]# rm -rf .X0-lock
[root@dtydb6 tmp]# rm -rf  .ICE-unix
[root@dtydb6 tmp]# rm -rf  gconfd-root
[root@dtydb6 tmp]# rm -rf orbit-root

你可能感兴趣的:(xmanger xstart 不能正常图形登录的问题)