Login Loop CentOS 7.7

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

Re: Login Loop CentOS 7.7

Post by TrevorH » 2019/10/09 15:28:41

Did you already try hitting Ctrl-Alt-F2 to switch to vt 2 and try logging in at the command prompt? See if that does anything different and/or logs more.
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

Nalo092
Posts: 15
Joined: 2019/10/07 15:10:06

Re: Login Loop CentOS 7.7

Post by Nalo092 » 2019/10/09 15:37:08

Login through VT works fine, no errors or anything are outputted.

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

Re: Login Loop CentOS 7.7

Post by TrevorH » 2019/10/09 16:45:52

I'm afraid I'm out of ideas and don't use gnome3 or gdm so I don't know what else to suggest. Since you can login ok at the cli, that sort of rules out /etc/passwd/shadow as potential causes but from the message you get about "Request to sssd failed." it sounds like gnome/gdm is set up to try to use sssd in preference to local logins. No idea what would cause that.
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

Nalo092
Posts: 15
Joined: 2019/10/07 15:10:06

Re: Login Loop CentOS 7.7

Post by Nalo092 » 2019/10/09 16:51:12

So would changing from GNOME to KDE be a possible solution? I am not loyal to any one environment, and at this point I'd take a GUI that looks like Windows XP so long as it works.

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Login Loop CentOS 7.7

Post by desertcat » 2019/10/09 20:39:46

Nalo092 wrote:
2019/10/09 16:51:12
So would changing from GNOME to KDE be a possible solution? I am not loyal to any one environment, and at this point I'd take a GUI that looks like Windows XP so long as it works.
TrevorH just gave me an idea: Have you tried to replace gdm with lightdm?!? It also would not hurt to install KDE Plasma Workspaces via yum grouplist and yum groupinstall "<group>".

If TrevorH is out of ideas you are in deep TROUBLE!!

OK before you ask, "How do I install lightdm?" here is a link:

viewtopic.php?f=47&t=67166&p=282241&hil ... dm#p282241

If neither of these ideas work... you might have to do a re-install. gdm is a giant PITA and I've have had more than my fair share of problems with it. Switching to lightdm *may* or *may NOT* solve your problems but it is worth a shot. Installing KDE Plasma Workspaces is also worth a shot.

After you install lightdm and added KDE get back to us. I am very CURIOUS if these last ideas will fix your problem.

D'Cat

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Login Loop CentOS 7.7

Post by desertcat » 2019/10/09 21:21:44

desertcat wrote:
2019/10/09 20:39:46
Nalo092 wrote:
2019/10/09 16:51:12
So would changing from GNOME to KDE be a possible solution? I am not loyal to any one environment, and at this point I'd take a GUI that looks like Windows XP so long as it works.
TrevorH just gave me an idea: Have you tried to replace gdm with lightdm?!? It also would not hurt to install KDE Plasma Workspaces via yum grouplist and yum groupinstall "<group>".

If TrevorH is out of ideas you are in deep TROUBLE!!

OK before you ask, "How do I install lightdm?" here is a link:

viewtopic.php?f=47&t=67166&p=282241&hil ... dm#p282241

If neither of these ideas work... you might have to do a re-install. gdm is a giant PITA and I've have had more than my fair share of problems with it. Switching to lightdm *may* or *may NOT* solve your problems but it is worth a shot. Installing KDE Plasma Workspaces is also worth a shot.

After you install lightdm and added KDE get back to us. I am very CURIOUS if these last ideas will fix your problem.

D'Cat
This is a Wild Hare hunch: Your Grub2 files *may* also be out of whack.

Using you favourite file browser, such as Midnight Commander (mc), vi, vim, etc., check /etc/grub.d you should have files that look like this: This is from an old post I made. If you have multiple entries in /etc/grub.d, or they appear in a different order your problem *may* be due to a whacked out grub2 system. Wild Hare hunch worth also checking.

D'Cat

Re: grub.cfg deleted

Post by desertcat » 2018/03/14 04:23:54

knzzz wrote:
Hi Team,

can some one please share the steps of how to create the grub.cfg file , in case if it got deleted from grub2 folder need assistance to fix it and also how to boot the system back to normal

Regards
Kanna

I HATE grub2!!! There is a useful utility that everyone should have called Grub Customizer, and will help you recover from disasters.

There are 3 Directories that are important to recover from a whacked system you should check: 1) /boot/grub2 (under which you find grub.cfg); 2) /etc/default (under which you find grub); and 3) /etc/grub.d (which contains the files (?) used by grub.cfg). Open any text editor and look at /etc/grub.d, and you *should* see something like this:

*00_header
*00_tuned
*01_users
*10_linux
*20_linux_xen
*20_ppc_terminfo
*30_os-prober
*40_custom
*41_custom

That is the order in which they should appear. If they don't you are severely whacked. What I've done is sometimes is to simply rename the various out of whack files back to the above list ie if I have a file called *20_os-prober, and I know that it should be *30_os-prober I simply rename it back to its original file name. Once I am satisfied I have the list back in order I run:

grub2-mkconfig -o /boot/grub2/grub.cfg

With luck it will now boot your machine. Having learned my lesson the hard way I have made copies of /boot/grub2/grub.cfg; /etc/default/grub; and /etc/grub.d and its lists of files. In the event somehow this my system gets mangled, I simply go over to the back up files, wipe out the mangled files, and copy my backup into place then run

grub2-mkconfig -o /boot/grub2/grub.cfg

and reboot the system. Many of the so-called "grub-recovery" tools are based on this same idea -- make copies of all three of these directories followed by the "grub2-mkconfig -o /boot/grub2/grub.cfg" command.

If you want to download Grub Customizer the package for CentOS 7 is grub-customizer-5.0.6-1.el7.x86_64.rpm.

Hope this helps
Top

Nalo092
Posts: 15
Joined: 2019/10/07 15:10:06

Re: Login Loop CentOS 7.7

Post by Nalo092 » 2019/10/10 16:12:01

So I found something new. I tried KDE and it tells me this:

$DISPLAY is not set or cannot connect to the X server.

So I tried startx but was given this

Code: Select all

[root@NSINTRANET ~]# sudo startx
xauth:  file /root/.serverauth.5350 does not exist


X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System:  3.10.0-957.1.3.el7.x86_64
Current Operating System: Linux NSINTRANET.afa.net 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-1062.1.1.el7.x86_64 root=UUID=ebe7ffb2-5207-4995-a298-10bddbf87d96 ro rhgb quiet LANG=en_US.UTF-8
Build Date: 09 August 2019  03:27:09AM
Build ID: xorg-x11-server 1.20.4-7.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.1.log", Time: Thu Oct 10 12:10:11 2019
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
pci id for fd 15: 1a03:2000, driver (null)
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
/etc/X11/xinit/Xclients: Permission denied
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
So would this mean there is something wrong with my X server install?

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

Re: Login Loop CentOS 7.7

Post by TrevorH » 2019/10/10 16:30:02

You should not sudo startx. That's the same as trying to login to the GUI as root. Don't. Use a normal user.

Though this

/etc/X11/xinit/Xclients: Permission denied

might also be part of the problem

[root@centos7 ~]# ls -la /etc/X11/xinit/Xclients
-rwxr-xr-x. 1 root root 2147 Apr 10 2018 /etc/X11/xinit/Xclients
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

Nalo092
Posts: 15
Joined: 2019/10/07 15:10:06

Re: Login Loop CentOS 7.7

Post by Nalo092 » 2019/10/10 17:43:34

THAT WAS IT!

Nalo092
Posts: 15
Joined: 2019/10/07 15:10:06

Re: Login Loop CentOS 7.7

Post by Nalo092 » 2019/10/10 17:44:25

I owe you guys any drink of choice!

EDIT: my fix was editing the permissions of xClient

[root@NSINTRANET~]# ls -la /etc/X11/xinit/Xclients
-rw-r--r--. 1 root root 2147 Aug 26 16:51 /etc/X11/xinit/Xclients

[root@NSINTRANET~]# chmod 755 /etc/X11/xinit/Xclients

[root@NSINTRANET~]# ls -la /etc/X11/xinit/Xclients
-rwxr-xr-x. 1 root root 2147 Aug 26 16:51 /etc/X11/xinit/Xclients

Post Reply