[SOLVED] Cannot Login (login loop)

Forum rules
Before you post please read how to get help
Post Reply
User avatar
playr018
Level 1
Level 1
Posts: 3
Joined: Sun Jan 14, 2018 2:13 pm

[SOLVED] Cannot Login (login loop)

Post by playr018 » Sun Jan 14, 2018 2:31 pm

Hi. I'm writing from Guest session. I cannot login into GUI Linux Mint 18.2 Xfce 64-bit (installed since August 2017 or earlier).
My system (information provided by inxi -Fxxxr | pastebin (I can't remember for sure how many "x" and other letters) https://gist.github.com/anonymous/4f3dd ... c8876b6249
After I stopped the lightdm service from terminal session and rebooted my PC, appeared the Login screen on which I am entering the password without errors but it returns me back into Login screen. I am able to use Guest (from Login screen) and any Terminal session (Ctlr+Alt+F1 or F2, etc.).
One of errors I have got on the terminal while I was trying to start the GUI with "startx" command was:

Code: Select all

system-ligind [2427]: Failed to start user service, ignoring: Unknown unit user@1000.service
I tried to move .config and .gconfig, even .Xauthority. Not helped retrieved back like it was. Reinstalled and reconfigured Xfce - xfwm4 (sudo dpkg-reconfigure xfwm4) and reinstalled "lightdm". Still nothing.
Is there something I should try before I make a new installation? I haven't found nothing helpful here, on other forums I have seen similar issue for Arch.
Sorry for your time and thank you in advance for any answer.
======
My quick solution (worked for me):
I installed mdm

Code: Select all

sudo apt-get install mdm
then

Code: Select all

sudo dpkg-reconfigure mdm
And I logged successfully in (as usual).
In other cases it could be useful to read (in case my way haven's solved this) this - lighghtdm - Ubuntu gets stuck in a login loop (same login loop as mine).
It is some weird bug or error of lightdm after using sudo with startx command...
Last edited by playr018 on Mon Jan 15, 2018 4:47 pm, edited 2 times in total.

User avatar
playr018
Level 1
Level 1
Posts: 3
Joined: Sun Jan 14, 2018 2:13 pm

Re: Cannot Login

Post by playr018 » Sun Jan 14, 2018 2:57 pm

Maybe there is some Login error because after I stopped the Xserver by

Code: Select all

sudo service lightdm stop
used sudo to start the Xserver by

Code: Select all

sudo startx
and now I cannot login GUI with my username, only as guest or as root (on default Xfce desktop).
---------Edit----------
Can I just try to upgrade from Terminal (Ctrl+Alt+F1) to Mint 18.3?

Code: Select all

sudo apt-get dist-upgrade
Is that okay or this can be a possible solution? Should I stop lightdm first?[/i]

User avatar
playr018
Level 1
Level 1
Posts: 3
Joined: Sun Jan 14, 2018 2:13 pm

Re: Cannot Login

Post by playr018 » Mon Jan 15, 2018 4:38 pm

Hi. Finally I solved this!
First of all - "sudo apt-get dist-upgrade" - returned: "nothing to upgrade" :(
I read some similar problems with login on lightdm and .Xauthority, tried to reinstall and reconfigure lightdm, removed nvidia driver and installed open source nouveau, removed and reinstalled xserver, the reconfigured. Then I found this Ubuntu topic - lighghtdm - Ubuntu gets stuck in a login loop where I found the author was having the same error on login screen "My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back. " Made the same things as one person answered (the best answer). But still the same... Then I read somewhere this can be a strange error or bug of lightdm after using "sudo startx" instead of "startx". So I decided to keep the reinstalled lightdm and install and use mdm. After the installation and configuration to use mdm a new login screen appeared - I entered the same password as always and voila! :D I see again my Desktop as usual user!
Why lightdm is not working right anymore? I don't know... But since now I will use mdm instead!
Maybe this will help someone before you decide to make a fresh install, try this. Good luck!

OoDeLally
Level 1
Level 1
Posts: 1
Joined: Tue Jul 24, 2018 4:24 am

Re: [SOLVED] Cannot Login (login loop)

Post by OoDeLally » Tue Jul 24, 2018 4:29 am

I had a similar problem.
On login screen, when I was clicking on my username, the screen went black and loop back to a new login screen.
The problem was that I added myself (me as a user) in the nopasswdlogin group. This is an old feature that seems to be obsolete now, but it still messes with the login process. After removing myself from that group, the login screen worked again.
Hope it helps some people.

BobSongs
Level 1
Level 1
Posts: 17
Joined: Mon Nov 28, 2011 2:25 pm

Re: [SOLVED] Cannot Login (login loop)

Post by BobSongs » Wed Aug 08, 2018 1:50 pm

Just thought I'd pipe in on this topic... because this is one of those "just-in-case" posts.

My son's laptop wasn't logging in. It displayed all the symptoms of a corrupted .ICEauthority/.Xauthority that I've seen. Here's what resolved his problem.

I inserted the Linux Mint start-up USB. Fired up ol' GPartEd and noticed immediately that his / partition was... full. Yep. I set it up for him, but I admit that the base Linux system has grown in size since Breezy Badger. Clearly, the original partition size of 25gb was simply not enough.

Using GPartEd, I solved the problem by reducing his /home partition by about 12gb. /swap shifted accordingly, leaving room to grow the system partition. Of course GPartEd warned me of cataclysmic events if I proceeded, but the changes were done within a virtual block. So, I had confidence in the effectiveness of the software. Worst case scenario: re-install Mint, update, tweak and restore software (Inkscape, MyPaint, etc.)

Upon reboot, everything was back to normal.

Post Reply

Return to “Xfce”