xauth: file /home/user/.serverauth.6692 does not exist

General support questions
ronel
Posts: 20
Joined: 2021/09/27 18:24:17

xauth: file /home/user/.serverauth.6692 does not exist

Post by ronel » 2021/09/27 18:29:27

All,

I have a CentOS 7 machine it had GNOME desktop. The PC did not have a clean shutdown,

After restarting the machine I can't get GNOME Desktop (GUI)

When I do startx I get the following error.

Error:-----

startx
xauth: file /home/user/.serverauth.6692 does not exist

(EE)
Fatal server error:
(EE) PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console


Any suggestions what is the issue here?

Any help is appreciated. I am new to Linux
Last edited by ronel on 2021/09/27 19:05:11, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xauth: file /home/user/.serverauth.7162 does not exist

Post by TrevorH » 2021/09/27 18:42:37

Since you have one filename in the subject of the post and another one in the body, I am guessing that the filename it complains about changes each time you try it? Title says .serverauth.7162, body has .6692. In which case, it most likely is not the file that's missing, it's that something that creates that and is meant to be using it has crashed and deleted it.
(EE) PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
Looks more like the problem.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: xauth: file /home/user/.serverauth.7162 does not exist

Post by ronel » 2021/09/27 18:52:43

TrevorH,

Whenever I run "startX" I get the error and the file name keeps changing (the numbers).

Do I need to login as root user to execute "Startx" ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by TrevorH » 2021/09/27 20:04:55

Running startx has been unsupported by Red Hat for some time. They say you should use gddm/lightdm/sddm or some other *dm and get a graphical login as well. What's the output from ls -la /dev/console and ls -laZ /dev/console ? Also worth reading viewtopic.php?t=4743 and if that doesn't help then https://access.redhat.com/solutions/24464
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by ronel » 2021/09/28 14:14:15

Here is the output

ls -la /dev/console
crw-------. 1 root root 5, 1 Sep 27 10:27 /dev/console


ls -laZ /dev/console
crw-------. root root system_u:object_r:console_device_t:s0 /dev/console

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by ronel » 2021/09/28 14:19:30

I also tried the steps from the link you sent. But I get this error now

startx
xauth: file /home/user/.serverauth.18729 does not exist


X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: 2.6.32-573.18.1.el6.x86_64
Current Operating System: Linux centos 3.10.0-514.21.1.el7.x86_64 #1 S MP Thu May 25 17:04:51 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-514.21.1.el7.x86_64 root=/dev/mapper/centos00-root r o crashkernel=auto rd.lvm.lv=centos00/root rd.lvm.lv=centos/swap rd.lvm.lv=centos00/swap rhgb quiet LANG=en_US.UTF-8
Build Date: 06 November 2016 12:43:39AM
Build ID: xorg-x11-server 1.17.2-22.el7
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.5.log", Time: Tue Sep 28 10:13:18 2021
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
touch: cannot touch ‘/home/user/.cache/imsettings/log’: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
/usr/libexec/imsettings-functions: line 37: /home/user/.cache/imsettings/log: Permission denied
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

Couldn't get a file descriptor referring to the console

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by TrevorH » 2021/09/28 15:29:42

touch: cannot touch ‘/home/user/.cache/imsettings/log’: Permission denied
Does that file exist and who owns it (and its parent directory)?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by ronel » 2021/09/28 17:04:08

The file doesn't exist. the directory is "/home/user/"

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by TrevorH » 2021/09/28 21:46:22

And who owns /home/user? and the permissions on it?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: xauth: file /home/user/.serverauth.6692 does not exist

Post by ronel » 2021/09/29 13:00:23

drwxrwxrwx. 24 user user 4096 Sep 28 11:54 /home/user/


ls -ld /home/
drwxrwxrwx. 4 root root 48 Sep 7 09:19 /home/
Last edited by ronel on 2021/09/29 13:35:46, edited 1 time in total.

Post Reply