Solved

RHEL 6: Crashes/reboots after login reaches desktop

Posted on 2011-03-09
37
3,027 Views
Last Modified: 2013-12-06
I just finished setting up my web server and everything was working fine but when i rebooted this morning it wont let me login again.
It goes to the desktop then blacks out and reboots to the login screen.  
I think that its just KDE that is crashing and not the whole system as it comes back really quick.

Things Installed on System:
Red Hat Enterprise 6 ( x64 bit )
Coldfusion 9
Apache 2.2
PHP 5.3.5
vsftpd

The last two things i installed were the updates from redhat for my system & vsftpd.

I can still remotely login via SSH but not on the console.

Let me know if there are any log files you would need to see to assist me in fixing this.

Here is a tail -30 of my message.log ::
Mar  9 12:38:29 Blizzard abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-beta
Mar  9 12:38:29 Blizzard abrtd: Checking for unsaved crashes (dirs to check:5)
Mar  9 12:38:29 Blizzard abrtd: Registered Database plugin 'SQLite3'
Mar  9 12:38:29 Blizzard rhnsd[1873]: Red Hat Network Services Daemon starting up, check in interval 240 minutes.
Mar  9 12:38:29 Blizzard abrtd: Done checking for unsaved crashes
Mar  9 12:38:29 Blizzard abrtd: Init complete, entering main loop
Mar  9 12:38:32 Blizzard kdm_greet[1925]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Mar  9 12:38:54 Blizzard kdm: :0 '[2009]: Session log file according to .xsession-errors-%d cannot be created: Permission denied
Mar  9 12:38:59 Blizzard pulseaudio[2239]: pid.c: Stale PID file, overwriting.
Mar  9 12:38:59 Blizzard polkitd[2233]: started daemon version 0.96 using authority implementation `local' version `0.96'
Mar  9 12:39:01 Blizzard kernel: abrt-hook-ccpp[2501]: segfault at 0 ip 0000003724d2146f sp 00007fffd72141c8 error 4 in libc-2.12.so[3724c00000+175000]
Mar  9 12:39:01 Blizzard kernel: Process 2501(abrt-hook-ccpp) has RLIMIT_CORE set to 1
Mar  9 12:39:01 Blizzard kernel: Aborting core
Mar  9 12:39:01 Blizzard kdm[1889]: X server for display :0 terminated unexpectedly
Mar  9 12:39:03 Blizzard kdm: :0[2503]: Cannot update authorization file in home dir /root
Mar  9 12:39:03 Blizzard NetworkManager[1494]: <error> [1299692343.124245] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
Mar  9 12:39:04 Blizzard kdm_greet[2513]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Mar  9 12:53:23 Blizzard kdm: :0[2509]: Fatal X server IO error: Interrupted system call
Mar  9 12:54:05 Blizzard kdm_greet[2680]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory
Mar  9 12:55:05 Blizzard NetworkManager[1494]: <error> [1299693305.900671] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
Mar  9 12:55:05 Blizzard kdm: :0 '[2703]: Session log file according to .xsession-errors-%d cannot be created: Permission denied
Mar  9 12:55:07 Blizzard pulseaudio[2931]: pid.c: Stale PID file, overwriting.
Mar  9 12:55:09 Blizzard kdm[1889]: X server for display :0 terminated unexpectedly
Mar  9 12:55:09 Blizzard abrt[3202]: saved core dump of pid 2671 (/usr/bin/Xorg) to /var/spool/abrt/ccpp-1299693309-2671.new/coredump (61440 bytes)
Mar  9 12:55:09 Blizzard abrtd: Directory 'ccpp-1299693309-2671' creation detected
Mar  9 12:55:09 Blizzard abrtd: Crash is in database already (dup of /var/spool/abrt/ccpp-1299691978-5712)
Mar  9 12:55:09 Blizzard abrtd: Deleting crash ccpp-1299693309-2671 (dup of ccpp-1299691978-5712), sending dbus signal
Mar  9 12:55:11 Blizzard kdm: :0[3205]: Cannot update authorization file in home dir /root
Mar  9 12:55:11 Blizzard NetworkManager[1494]: <error> [1299693311.356471] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
Mar  9 12:55:13 Blizzard kdm_greet[3217]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory

Open in new window

0
Comment
Question by:stu215
  • 21
  • 16
37 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35086253
First thing is to run fsck.  You may need to go to run level 1 or s or emergency.

Then go to run level 3 by issuing the command
init 3

Then check for the presence of the files it is complaining about.

Then go to run level 5 by issuing the following command
startx
0
 
LVL 10

Author Comment

by:stu215
ID: 35086466
How should I be running fsck, I went to "init 1" and ran fsck but it said my file system is mounted and not to continue as I would cause severe damage.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35087170
Yes.  You are right.  So hopefully the suspected file system is not on / partition.

So see which partition is it on and unmount it.  Then do

fsck /dev/...
0
 
LVL 10

Author Comment

by:stu215
ID: 35087210
Im rather clueless as to which partition I should be checking with fsck...
[ here is the df -h ]

/dev/sda6             391G  4.9G  367G   2% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda1             243M   76M  155M  33% /boot
/dev/sda2              39G  830M   36G   3% /tmp
/dev/sda3              20G  176M   19G   1% /var/log

0
 
LVL 31

Expert Comment

by:farzanj
ID: 35087305
Ok. It is unfortunately your root partition.

Here is what you do
Go to single user mode by doing 's' instead of '1'

then you issue the following command

 
mount -o remount,ro /dev/sda6
fsck /dev/sda6

Open in new window

0
 
LVL 10

Author Comment

by:stu215
ID: 35087473
Came back with

/dev/sda6: clean, 152079/26025984 files, 2914528/104103680 blocks
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35087502
Check if you find the above files
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35087507
The files that were missing
0
 
LVL 10

Author Comment

by:stu215
ID: 35087551
The folder "faces" does not exist let alone a file inside it:
/usr/share/kde4/apps/kdm/faces/
0
 
LVL 10

Author Comment

by:stu215
ID: 35087851
On a side note if i login at init 3 and run startx  it also fails...

I found this in the Xorg.0.log

(II) PS/2+USB Mouse: initialized for relative axes.

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x28) [0x4aaaf8]
1: /usr/bin/X (0x400000+0x63249) [0x463249]
2: /lib64/libpthread.so.0 (0x3725400000+0xf4c0) [0x372540f4c0]
3: /usr/lib64/libpixman-1.so.0 (pixman_image_set_has_client_clip+0x0) [0x3730a17050]
4: /usr/lib64/xorg/modules/libfb.so (image_from_pict_18+0x35d) [0x7f0a1d82287d]
5: /usr/lib64/xorg/modules/libfb.so (fbComposite+0x11f) [0x7f0a1d822a7f]
6: /usr/lib64/xorg/modules/libxaa.so (XAAComposite+0x242) [0x7f0a1d5dfe22]
7: /usr/lib64/xorg/modules/libxaa.so (0x7f0a1d5ab000+0x52785) [0x7f0a1d5fd785]
8: /usr/bin/X (0x400000+0xe1450) [0x4e1450]
9: /usr/bin/X (0x400000+0xd829e) [0x4d829e]
10: /usr/bin/X (0x400000+0x40a8c) [0x440a8c]
11: /usr/bin/X (0x400000+0x2208a) [0x42208a]
12: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x3724c1ec5d]
13: /usr/bin/X (0x400000+0x21c49) [0x421c49]
Segmentation fault at address 0x24

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the Red Hat, Inc. support 
	 at https://www.redhat.com/apps/support/
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

(II) ServerEngines SE USB Device: Close
(II) UnloadModule: "evdev"
(II) BTC USB Multimedia Keyboard: Close
(II) UnloadModule: "evdev"
(II) BTC USB Multimedia Keyboard: Close
(II) UnloadModule: "evdev"
(II) Power Button: Close
(II) UnloadModule: "evdev"
(II) Power Button: Close
(II) UnloadModule: "evdev"
(II) Macintosh mouse button emulation: Close
(II) UnloadModule: "evdev"
(II) ServerEngines SE USB Device: Close
(II) UnloadModule: "evdev"
(II) PS/2+USB Mouse: Close
(II) UnloadModule: "evdev"

Open in new window

0
 
LVL 31

Expert Comment

by:farzanj
ID: 35088287
Your KDE has crashed.

Here is how you fix it.  Assuming you have yum configured and subscription enabled.

Just issue the following command
yum groupupdate kde-desktop

Open in new window

0
 
LVL 10

Author Comment

by:stu215
ID: 35088345
It says its already installed and latest version....
( is there a way to re-install? )
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35088400

yum groupremove kde-desktop
yum groupinstall kde-desktop

Open in new window

0
 
LVL 10

Author Comment

by:stu215
ID: 35088525
:-( rebooted after install and still having the same problem...

I had errors in my .xsession log as well. See Attached.
xsessionErr.txt
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35088583
Ok.

Issue the following command

system-config-display


And if this doesn't work, first issue the command

kudzu

And then
system-config-display
0
 
LVL 10

Author Comment

by:stu215
ID: 35088612
neither of those commands worked [ im using bash shell if that makes any diff ] :
( command not found )
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35088749
Try
xrandr
0
 
LVL 10

Author Comment

by:stu215
ID: 35088796
Note: the monitor hooked up to console is the same one I have been using the whole time throughout setup and it worked fine up until the reboot ...

When run from console on init 3 : "Can't open display"

When run from ssh terminal on init 3 :
Screen 0: minimum 2960 x 1050, current 2960 x 1050, maximum 2960 x 1050
screen connected 2960x1050+0+0 0mm x 0mm
   2960x1050       0.0      0.0*
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 31

Expert Comment

by:farzanj
ID: 35088969
Ok.  I have been a little outdated.  System-config-display has been replaced by xrandr.  You have to do xrandr --help and man xrandr to see the options.  I have been trying to figure it out.

Kudzu should still be there. Try

yum install kudzu
0
 
LVL 10

Author Comment

by:stu215
ID: 35089009
yum install kudzu = "No package kudzu available."



0
 
LVL 31

Expert Comment

by:farzanj
ID: 35089049
Ok.  I will investigate that later.

Try using xrandr and set your options or correct them.
0
 
LVL 10

Author Comment

by:stu215
ID: 35089094
I tried running a few commands with xrandr and keep getting :
"Can't open display"

xrandr --newmode 800x600 0 800 0 0 0 600 0 0 0
0
 
LVL 10

Author Comment

by:stu215
ID: 35089158
Also tried ::

export DISPLAY=:0
export XAUTHORITY=/home/<user>/.Xauthority

xrandr -o normal

results in ::
"Can't open display :0"
0
 
LVL 10

Author Comment

by:stu215
ID: 35089239
xhost +localhost

results in ::

xhost: unable to open display ":0"
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35090076
To check whether the problem is resolved or not you have to do

startx
0
 
LVL 10

Author Comment

by:stu215
ID: 35095902
Yea that doesnt work either...

It says:

xauth: /home/sfraser/.Xauthority not writable, changes will be ignored
xauth: error in locking authority file /home/sfraser/.Xauthority

Fatal server error:
PAM authentication failed, cannot start X server.
0
 
LVL 10

Accepted Solution

by:
stu215 earned 0 total points
ID: 35098006
Yarrr, I finally got it to work.

Had someone at work help me out.

They managed to create a xorg.conf, moved it to etc/x11, &  changed the driver to the generic vesa one and it boots fine.(

X -configure
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35098033
Yes, previously system-config-display would do it for you.  It used to make a new file in x11.

So did you figure out one single command that would do it now?
0
 
LVL 10

Author Comment

by:stu215
ID: 35098164
X -configure while in init 1 or 3

0
 
LVL 31

Expert Comment

by:farzanj
ID: 35098183
Ok, thanks for your response.
0
 
LVL 10

Author Comment

by:stu215
ID: 35098186
That created the xorg.conf_new in the user directory then we moved it to /etc/X11/xorg.conf
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35098207
One more thing that I wanted to know.  Suppose you delete or move /etc/X11/xorg.conf, is it recreated?
0
 
LVL 10

Author Comment

by:stu215
ID: 35098417
I moved /etc/X11/xorg.conf    to  /etc/X11/xorg.conf_good and rebooted.

It did not create a new one and the login problem came back.
Logged in via Failsafe and put it back, works fine.

~Stu
0
 
LVL 10

Author Comment

by:stu215
ID: 35099553
Heh, Red Hat just released this afternoon ::

xorg-x11-server bug fix update  --- RHBA-2011:0340 - Bug Fix Advisory
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=11004
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35100148
I don't have access to RHN, could you please paste the description.

Appreciated
0
 
LVL 10

Author Comment

by:stu215
ID: 35100177
Synopsis
xorg-x11-server bug fix update

Issued: 3/10/11
Updated: 3/10/11

Topic
Updated xorg-x11-server packages that fix a bug are now available for Red Hat
Enterprise Linux 6.

Description
X.Org X11 is an open source implementation of the X Window System. It provides
the basic low level functionality upon which full fledged graphical user
interfaces such as GNOME and KDE are designed.

This update fixes the following bug:

* Prior to this update, when the X Window System was unable to detect a monitor
and obtain valid extended display identification data (EDID), it set the default
resolution limit to 800x600. Consequent to this, users of the "mga" driver for
Matrox video cards were unable to select a screen resolution higher than
800x600. This update increases the default limit to 1024x768, allowing users of
Matrox video cards to select this resolution as expected. (BZ#668514)

All users of xorg-x11-server are advised to upgrade to these updated packages,
which resolve this issue.

Solution
Before applying this update, make sure that all previously-released errata
relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use the Red
Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

Affected Channels
Red Hat Enterprise Linux Server (v. 6 for 32-bit x86)
Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)
RHEL Server Debuginfo (v.6 for x86)
RHEL Server Debuginfo (v.6 for x86_64)
RHEL Server Optional (v. 6 64-bit x86_64)
RHEL Server Optional (v. 6 for 32-bit x86)
RHEL Server Optional Debuginfo (v.6 for x86)
RHEL Server Optional Debuginfo (v.6 x86_64)

Fixes
RHEL6 SS12: Only 2 resolution options present on systems utilizing Matrox video
0
 
LVL 10

Author Closing Comment

by:stu215
ID: 35135867
I dont think I will bother doing any more updates to RHEL 6 after that ordeal.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now