[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3417
  • Last Modified:

RHEL 6: Crashes/reboots after login reaches desktop

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
stu215
Asked:
stu215
  • 21
  • 16
1 Solution
 
farzanjCommented:
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
 
stu215Author Commented:
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
 
farzanjCommented:
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
stu215Author Commented:
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
 
farzanjCommented:
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
 
stu215Author Commented:
Came back with

/dev/sda6: clean, 152079/26025984 files, 2914528/104103680 blocks
0
 
farzanjCommented:
Check if you find the above files
0
 
farzanjCommented:
The files that were missing
0
 
stu215Author Commented:
The folder "faces" does not exist let alone a file inside it:
/usr/share/kde4/apps/kdm/faces/
0
 
stu215Author Commented:
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
 
farzanjCommented:
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
 
stu215Author Commented:
It says its already installed and latest version....
( is there a way to re-install? )
0
 
farzanjCommented:

yum groupremove kde-desktop
yum groupinstall kde-desktop

Open in new window

0
 
stu215Author Commented:
:-( rebooted after install and still having the same problem...

I had errors in my .xsession log as well. See Attached.
xsessionErr.txt
0
 
farzanjCommented:
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
 
stu215Author Commented:
neither of those commands worked [ im using bash shell if that makes any diff ] :
( command not found )
0
 
farzanjCommented:
Try
xrandr
0
 
stu215Author Commented:
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
 
farzanjCommented:
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
 
stu215Author Commented:
yum install kudzu = "No package kudzu available."



0
 
farzanjCommented:
Ok.  I will investigate that later.

Try using xrandr and set your options or correct them.
0
 
stu215Author Commented:
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
 
stu215Author Commented:
Also tried ::

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

xrandr -o normal

results in ::
"Can't open display :0"
0
 
stu215Author Commented:
xhost +localhost

results in ::

xhost: unable to open display ":0"
0
 
farzanjCommented:
To check whether the problem is resolved or not you have to do

startx
0
 
stu215Author Commented:
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
 
stu215Author Commented:
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
 
farzanjCommented:
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
 
stu215Author Commented:
X -configure while in init 1 or 3

0
 
farzanjCommented:
Ok, thanks for your response.
0
 
stu215Author Commented:
That created the xorg.conf_new in the user directory then we moved it to /etc/X11/xorg.conf
0
 
farzanjCommented:
One more thing that I wanted to know.  Suppose you delete or move /etc/X11/xorg.conf, is it recreated?
0
 
stu215Author Commented:
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
 
stu215Author Commented:
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
 
farzanjCommented:
I don't have access to RHN, could you please paste the description.

Appreciated
0
 
stu215Author Commented:
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
 
stu215Author Commented:
I dont think I will bother doing any more updates to RHEL 6 after that ordeal.
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 21
  • 16
Tackle projects and never again get stuck behind a technical roadblock.
Join Now