Link to home
Start Free TrialLog in
Avatar of clsmoothe
clsmoothe

asked on

Problems with X

I recently upgraded from Redhat 6.0 to 6.1 Now upon reboot I only get the gray screen of death.  The mouse cursor works fine but nothing else.  It used to work fine (GNOME crashed quite a bit but...) Here is the output of some of the errors I have been getting:

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

When reporting a problem related to a server crash, please send
the full server output, not just the last messages

Xlib: connection to ":0.0" refused by server

Xlib: Invalid MIT-MAGIC-COOKIE-1 key

giving up.

xinit:  unable to connect to X server

xinit:  No such process (errno 3):  Server error.

I figured that maybe I did have an errant xsession running so here is the output of the ps -aux command:

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.7  1104  460 ?        S    Nov16   0:03 init
root         2  0.0  0.0     0    0 ?        SW   Nov16   0:00 [kflushd]
root         3  0.0  0.0     0    0 ?        SW   Nov16   0:00 [kupdate]
root         4  0.0  0.0     0    0 ?        SW   Nov16   0:00 [kpiod]
root         5  0.0  0.0     0    0 ?        SW   Nov16   0:00 [kswapd]
root         6  0.0  0.0     0    0 ?        SW<  Nov16   0:00 [mdrecoveryd]
root       247  0.0  1.0  1412  660 ?        S    Nov16   0:00 /sbin/pump -i tr0
bin        295  0.0  0.6  1200  412 ?        S    Nov16   0:00 portmap
root       348  0.0  0.8  1152  560 ?        S    Nov16   0:00 syslogd -m 0
root       359  0.0  1.1  1412  744 ?        S    Nov16   0:00 klogd
daemon     375  0.0  0.7  1128  484 ?        S    Nov16   0:00 /usr/sbin/atd
root       391  0.0  0.9  1304  600 ?        S    Nov16   0:00 crond
root       411  0.0  0.7  1124  480 ?        S    Nov16   0:00 inetd
root       427  0.0  0.6  1136  396 ?        S    Nov16   0:00 lpd
root       434  0.0  0.8  1200  552 ?        S    Nov16   0:00 lpd
root       451  0.0  0.8  1140  556 ?        S    Nov16   0:00 rpc.statd
root       464  0.0  0.5  1088  376 ?        S    Nov16   0:00 rpc.rquotad
lp         466  0.0  1.2  1696  816 ?        S    Nov16   0:00 bash /var/spool/l
root       488  0.0  0.7  1148  452 ?        S    Nov16   0:00 rpc.mountd
lp         510  0.0  1.2  1684  792 ?        S    Nov16   0:00 sh /usr/lib/rhs/r
root       519  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       520  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       521  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       522  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       523  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       524  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       525  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       526  0.0  0.0     0    0 ?        SW   Nov16   0:00 [nfsd]
root       564  0.0  1.7  2104 1108 ?        S    Nov16   0:00 sendmail: accepti
root       581  0.0  0.7  1132  444 ttyS0    S    Nov16   0:00 gpm -t ms
xfs        598  0.0  1.8  2036 1148 ?        S    Nov16   0:00 xfs -droppriv -da
lp         605  0.0  0.5  1080  344 ?        S    Nov16   0:00 cat /tmp/printtmp
root       635  0.0  1.5  2196 1000 tty1     S    Nov16   0:00 login -- root    
root       636  0.0  0.6  1076  384 tty2     S    Nov16   0:00 /sbin/mingetty tt
root       637  0.0  0.6  1076  384 tty3     S    Nov16   0:00 /sbin/mingetty tt
root       638  0.0  0.6  1076  384 tty4     S    Nov16   0:00 /sbin/mingetty tt
root       639  0.0  0.6  1076  384 tty5     S    Nov16   0:00 /sbin/mingetty tt
root       642  0.0  0.6  1076  384 tty6     S    Nov16   0:00 /sbin/mingetty tt
root       643  0.0  1.6  2500 1060 ?        S    Nov16   0:00 /usr/bin/gdm -nod
root       649  0.0  6.0  8356 3812 ?        S    Nov16   0:01 /etc/X11/X -auth
root       662  0.0  1.5  1756  992 tty1     S    Nov16   0:00 -bash
root       681  0.0  1.4  2280  896 ?        S    Nov16   0:00 smbd -D
root       683  0.0  1.5  1888  948 ?        S    Nov16   0:05 nmbd -D
root      1016  0.0  3.6  3620 2296 ?        S    09:00   0:00 smbd -D
root      1120  0.0  1.8  3612 1160 ?        S    12:17   0:00 smbd -D
root      1123  0.0  1.3  2508  860 tty1     R    12:24   0:00 ps aux
root      1124  0.0  0.6  1120  396 tty1     S    12:24   0:00 more

IF ANYBODY can read this and rely it would help.  
Avatar of Barn_Owl
Barn_Owl

This appears to be an X sessions trying to run >>
root       649  0.0  6.0  8356 3812 ?        S    Nov16   0:01 /etc/X11/X -auth

Try killing this proccess. Also 'ps -aux | grep X' will just list all proccess with a X in them A little easier to read.
Here are a few things you can check:

Is there a ~./xinitrc file or does X uses
the scripts in /etc/X11/xinit ? (~ is your
home directory, ex: /home/user /root ,..)

Check this file/these scripts ..
Actually there should be 2 things in it.
* the command to execute your X Manager
* the command to execute gnome

for example:
exec enlightenment
exec gnome-session
(exec panel, aldo I think gnome-session
starts panel already in one of the gnome
scripts)

RedHat uses a script wich detects if this or this
Manager is installed, etc etc etc ..  perhaps when
updating an empty ~/.xinitrc has been written
and X tries to use this file in stead of the scripts
in /etc/X11/xinit .

Question.. can you use the 'both mouse buttons' click, a menu should appear where you can start
for example xterm , and from xterm you can also
start enlightenment for example.

>>
Fatal server error:
                       Cannot establish any listening sockets - Make sure an X server isn't already running
>> I guess The X server was already running
while you tried to execute a new one .. not sure.
The other errors are just because of the first one.
try killing this process first:
root       649  0.0  6.0  8356 3812 ?        S    Nov16   0:01 /etc/X11/X -auth

oh ! and don't start X as root ,, not very smart !
Avatar of clsmoothe

ASKER

BarnOwl: I killed the process but it still did not work

SkAtAn: X uses the scripts in /X11/init
why shouldn't I startx as root?
Because  you can screw up things to easily in
X while working as root. And because opens
a few services (as far as I know) which make
your system more easy to crack/hack blahblah.

This may seem a little strange, but here is a way to see if an X session is active. X normally runs just after teh the last virtual console so that if you do an alt+f7 it will open the X session.

ps- You will likly need to kill gpm to get a mouse to work under X


p.s.s. = I think the gdm is the gnome sesion manager and it appears to be  running, any one confirm this?
Okay just reread the message. I bet you are booting to init 5 graphic logging. Is this correct? If this is the case then we need to change your runlevel back down to 3.
Barn Owl:  You are the MAN!! How did you know that if I switched to level 3 it would work?  Can I switch back to level 5?
root       643  0.0  1.6  2500 1060 ?        S    Nov16   0:00 /usr/bin/gdm -nod , was the give away , Sorry i didn ot see it the first time i looked through you post. Gdm is the gnome version of xdm,  the X11 graphical login. Your Gnome setup was dieing on bootup. you can switch back to runlevel 5 and go back to your GUI. But first I would find out what was causing the the X server to crash at boot. Personally I like to log in to a shell then manually startx.

p.s. you also appear to have 3 smbd  daemons running.


P.S.S> do I get the points :P
The points are yours...I guess I should clean up those smbd daemons.  You would like to log into my machine and manually startx? No offense, but can you say "security risk" :-)
ASKER CERTIFIED SOLUTION
Avatar of Barn_Owl
Barn_Owl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks