9

Is there any reason the login window would stop working and start looping? I'm running 18.04. I normally RDP into the ubuntu box, but that isn't working now. Using a keyboard and mouse, I see my username on the monitor. I type in my password. Then the screen goes blank for a few seconds... and I'm back to the login screen where my username is. I'm not getting through to my desktop!

I haven't messed with the machine except for the following, but, I'm not sure why any of these would impact the loginscreen.

But none of these messed with the login manager. Does anyone have any idea what could be up? Interestingly, nearly all of my docker containers (portainer, heimdall, tatulli, sonarr, radarr, pihole) work, with the exception of anything using ssl (plex and cockpit). I'm guessing somehow the firewall blocked port 443, but I'm not sure why that would stop me from logging into the box using a keyboard and mouse...

Any help/insight is greatly appreciated!

EDIT1: I tried creating another user via

sudo useradd -d /home/testuser testuser  
sudo passwd testuser

but the login manager still throws me for a loop

EDIT2: I've disabled the firewall via

sudo ufw disable

and I reversed the system-resolved.service work, but still no luck :(

abu_bua
  • 11,313
Emmit
  • 331

10 Answers10

11

I've almost done all suggestions here, but none of them didn't work. Also gd3 reconfigure has no effect. But I had suspected to my last gnome extensions.

The system-monitor@paradoxxx.zero.gmail.com was the problem. So I disabled all gnome extensions to solve login loop as following steps:

  1. Press Ctrl+Alt+F2 or Ctrl+Alt+F3 or ...
  2. Enter your username and password
  3. cd ~/.local/share/gnome-shell/
  4. mv extensions extensions.bak
  5. mkdir extensions
  6. Press Ctrl+Alt+F1
  7. Login and Thanks God

Hope help somebody else. I almost worked full day to find this solution.

PS: I've installed my favorite extentions again and I have to tell you Login Loop disaster in ubuntu has wide variety causes. So try to find your special cause and solve it.

slava
  • 4,085
7

Looks like it may have been related to "upgrading" from 18.04 to 18.04.01: No login screen after ubuntu 18.04.1 update

In any case, doing the following fixed it for me:

systemctl stop gdm.service  
systemctl restart gdm.service  
sudo dpkg-reconfigure gdm3  
reboot
Kulfy
  • 18,154
Emmit
  • 331
1

I also had tried a lot of solution but none of that work for me, but this did.

  1. Press Ctrl+Alt+F2
  2. Login with your username and password
  3. Enter ls -ld ~/ after you will see something like this drwxr-xr-x 30 root root 4096 Jul 6 20:26 /home/{yourcutename}/
  4. Now Enter sudo chown username:username /home/{yourcutename}/

This worked for me :-)

Kulfy
  • 18,154
U.A
  • 167
1

My ubuntu loop login problem started after switching from java11 openjdk to java8 openjdk. I had logged in via CTRL+ALT+F3 to terminal and switched back to java 11 via sudo update-alternatives --config java and login loop stopped.

Ahmet
  • 11
0

i have that same problem on Ubuntu 19.04. What i did was reinstall gnome and works fines.

sudo apt-get install gnome-session gnome

Then on the log in screen i change to gnome

Ranosi
  • 1
0

My issue started after I messed with the /etc/environment file by adding the following to my path variable:

PATH=$JAVA_HOME:$PATH

I fixed the issue by going into one of the strips down mode in grep, launching a command prompt, launching VI and removing the above.

I believe what happens, is by messing with the path variable, Ubuntu couldn't find some things.

I initially did this because I installed java manually.

Kulfy
  • 18,154
0

I faced the same problem with my Ubuntu 18.04 a couple of days ago. I tried all the mentioned solutions on the web. But I think, in the end, the problem with mine was some wonky graphics drivers. All I did was log in on my system on Ubuntu Wayland (by clicking that gear button at the time of login) opened the Terminal Window and upgraded. The commands were:

    sudo apt update
    sudo apt upgrade

And then rebooted my system. Ready as new!!! If you want you can stay and use it on Wayland, but some applications do not work properly on Wayland (like VLC).

Well, the other solutions on the web did not work for me. So, all the others and even if this solution does not work then I think only one option is left: Reinstall

n_195
  • 1
0

The cause for me was that I was playing around with the DISPLAY variable and had set export DISPLAY=:1.0 in my .profile

when I commented out that line, I could log in again ie. no more looping.

Chai Ang
  • 171
0

This issue seems to have a different solution for everyone. I tried many different solutions that I found throughout forums and nothing worked for me. After looking around I found the issue was that somehow my user had lost write permissions in my own $HOME folder.... Solution for me was:

  1. Load command line (ALT+CTRL+F2 or ALT+CTRL+F3)
  2. chmod 755 $HOME
  3. restart the Desktop Environment.

Hope this can help someone else.

NRW
  • 1
-1

The user with the Login Loop issue should do the following!

While in login screen, do;
Ctrl+Tab F5
login
password

While arrived in your home folder do;

mv ~/.cache ~/.cache.old
sudo systemctl reboot 

Your Login Loop should be gone! It took me a week, Thanks to Jesus!