LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting this error message: Could not create lock file in /tmp/.tX0-lock (https://www.linuxquestions.org/questions/linux-newbie-8/getting-this-error-message-could-not-create-lock-file-in-tmp-tx0-lock-4175495810/)

matt00 02-21-2014 05:12 PM

Getting this error message: Could not create lock file in /tmp/.tX0-lock
 
I had problems with my HP desktop machine last night while running Mint 16. The problems resulted in me being forced to do a hard-power button shut down of the machine. When I tried to get back on I got the splash screen and the login screen. Logging in takes me to a black window where only the mouse cursor is visible.

Alt+ctrl+f2 takes me into the terminal. Running "Startx" brings up the following error message:

(EE)
Fatal server error:
(EE) Could not create lock file in /tmp/.tX0-lock


xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error
xauth error in locking authority file /root/.Xauthority

I have tried to uninstall, reinstall and reconfigure xorg but nothing is working.

Any suggestions?

jpollard 02-21-2014 05:56 PM

1) you have a corrupted system... but I'm not sure where the corruption is. One possibility is to "rm -f /tmp/.X*" Be careful when you type this...

This is best done in single user mode, then resume the boot (just use control-d). This may correct the problems.

2) startx by default tries to create display :0.0, this is also the display created by the login - you can't do both. You can try "startx -- -display :1.0", but with some of the other corruption you have (the desktop thing) it may not work any better.

matt00 02-21-2014 07:15 PM

Quote:

Originally Posted by jpollard (Post 5122579)
1) you have a corrupted system... but I'm not sure where the corruption is. One possibility is to "rm -f /tmp/.X*" Be careful when you type this...

This is best done in single user mode, then resume the boot (just use control-d). This may correct the problems.

2) startx by default tries to create display :0.0, this is also the display created by the login - you can't do both. You can try "startx -- -display :1.0", but with some of the other corruption you have (the desktop thing) it may not work any better.

Thanks. I'll give your suggestion a try but have an idea I'll be doing a fresh install and saying goodbye to all my programs. Perhaps I'll go back to Mint 13, at least I knew that was working.

tockati 08-21-2015 11:51 AM

Same Error on Debian8
 
I have the same Errore on Debian8, the solution unfortunatly not work by me.

I give her my solution:

Code:

sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean

and then:

Code:

startx
remove the disque space for exemple remove files for the basket.


sory for my bad English :cry:

fatmac 08-21-2015 12:06 PM

Quote:

Fatal server error:
(EE) Could not create lock file in /tmp/.tX0-lock
It can't create it because it still exists from your previous session.
Check for & delete that file & you should be able to start X again.

TeTaFI 10-21-2018 04:23 PM

Quote:

Originally Posted by tockati (Post 5409064)
I have the same Errore on Debian8, the solution unfortunatly not work by me.

I give her my solution:

Just wanted to say thanks to @tockati even though he might not be around.

I had similar problems like the op, which led me to this thread. Video editor crashed unexpectedly several times. I rebooted and GUI kept looping my login window even though I used right crendentials. Running "Startx" displayed the same error message as above.

I took small steps via Google, tried df -h, noticed full disk and did some cleaning up.

Not in a million years I could have guessed that low disk space would create such login symptoms.

jpollard 10-22-2018 04:12 AM

Quote:

Originally Posted by TeTaFI (Post 5917610)
Just wanted to say thanks to @tockati even though he might not be around.

I had similar problems like the op, which led me to this thread. Video editor crashed unexpectedly several times. I rebooted and GUI kept looping my login window even though I used right crendentials. Running "Startx" displayed the same error message as above.

I took small steps via Google, tried df -h, noticed full disk and did some cleaning up.

Not in a million years I could have guessed that low disk space would create such login symptoms.

Only because the GUI startup has to create files for authorization and domain socket definitions for communication (the socket itself only needs an inode, but sometimes the directory that entry is put in must be created and/or have some block(s) allocated for the name. Other things also happen at the same time - the GUI startup tends to create a log file for errors, and that can cause the GUI to abort.

The same thing can happen with CLI logins when /var is full. The login/tty cannot add the audit records will cause the login to fail.

Habitual 10-24-2018 05:56 PM

Quote:

Originally Posted by matt00 (Post 5122598)
Perhaps I'll go back to Mint 13, at least I knew that was working.

EOL.

I'd move up to an LTS release.


All times are GMT -5. The time now is 01:17 AM.