LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2004, 03:46 PM   #1
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
xfree86 locking problem


Hey everybody. I've been using linux well for the past year, and all of a sudden after a bad shutdownk, i had a problem related to the x server crash. I was able to see the output after typing startx into the console, and here it is:


xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority
xauth: error in locking authority file /home/benjamin/.Xauthority


Fatal server error:
Can't read lock file /tmp/.X0-lock

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.
xauth: error in locking authority file /home/benjamin/.Xauthority

And then it terminated. If i switched to root the message was the same except for the directory-- /root/.Xauthority. What do i need to do to get the X server back up and running? I use a simple AGP intel Direct video card, and everything had been working before...thanks for your contributions.

-----------------------
Ben Frison
 
Old 04-13-2004, 04:14 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
first delete all /tmp/.X*-lock files,

If it starts then, its because the lock files were never deleted when the X server crashed.

If that doesnt help,

Then delete theose /tmp/*-lock files AND rename the .Xauthority files to something other than .Xauthority
and retry startx.

These files will be automatically generated upon startup.
startx as root first then properly do:
shutdown now -r and relogin as normal user then startx as regular user.
Post back . the deleteion of the lock files and renaming Xauthority files should do the trick.

also make sure /tmp is not mounted read-only .

Last edited by AutOPSY; 04-13-2004 at 04:15 PM.
 
Old 04-13-2004, 04:32 PM   #3
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
Thanks for your reply, but it still isn't working. in fact, when i went to check where those files were ( . X-0 and . Xauthority), .X-0 wasn't there. tmp is mounted r and w, and when i started the X server after deleting the .Xauthority-c file i found, it came up with exactly the same message
 
Old 04-13-2004, 06:11 PM   #4
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
hi again. I discovered that this is an authorizing problem with my x -server. somehow the .xAuthority file is unlocked or locked by the .X0-lock, and every time i boot up this .X0-lock file isn't there. Any suggestions are appreciated, because i'm not sure what i'm doing here.
 
Old 04-14-2004, 04:26 PM   #5
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
anything else?
 
Old 04-14-2004, 07:01 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
Can you start x as root?
Can you create a new user and start x as that user.

What are the permissions on the /home/benjamin/.Xauthority file.

Last edited by Franklin; 04-14-2004 at 07:06 PM.
 
Old 04-14-2004, 07:04 PM   #7
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
when i log onto root start x doesn't work, with the same problems as when i startx on my regular user
 
Old 04-14-2004, 07:26 PM   #8
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
Your login manager script may be corrupted.

Start linux in run level 3
login as root
type xdm, gdm, or kdm (try all three) instead of startx and see what happens.
 
Old 04-14-2004, 08:04 PM   #9
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
Thanks for your help franklin--it almost worked. I typed in xdm--nothing. then gdm... an error screen was brought up, and i went into an x config program, setting it to not automatically reload whenever i boot. After that, gdm retried the x server and it worked, sending me to a gdm graphic user login. However, i wanted to figure out if this would work every time i rebooted. And it has failed ever since. I do have another clue: here was the initial error screen that comes up when executing gdm:

execve failed for /etc/X11/X (errno 40)

Any suggestions welcome
 
Old 04-14-2004, 08:06 PM   #10
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
oh yes, and there is nothing in the .Xauthority files
 
Old 04-14-2004, 10:47 PM   #11
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
What were you doing when you crashed initially?
Any new drivers/hardware? (i.e. video card)
Have you looked at the logs /var/log/xdm.errors, /var/log/XFree86.x.x.log?
 
Old 04-14-2004, 10:59 PM   #12
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
I found this while googling your error...

Quote:
After doing some more investigating. I figured it out. I soon found that I could not read or write any files in my home directory. I logged in as root and saw that root had taken ownership of my home directory. I "chown" the directory back to me as root and now all is back to normal. Oh well, maybe this post will help someone else with the same problem.
Check the ownership of the /home/benjamin/.Xauthority file.

http://lantech.geekvenue.net/chuckti...264/index_html

The link may help.... ??

Just some random thots.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file locking problem with samba mpriddy Linux - Software 4 11-29-2004 04:00 PM
fedora passwd locking problem derlien Fedora 0 09-12-2004 10:09 AM
Problem with locking the screen Infhemanth Linux - Newbie 2 07-20-2004 11:55 PM
Samba File share locking problem Adam_equip Linux - Software 3 07-14-2004 09:14 AM
Xfree86 Locking up on Thinkpad R31, Mouse moves to top-right corner! Gnute Linux - Laptop and Netbook 1 01-05-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration