3
2
My computer was running fine until yesterday night, but today it is stuck in a login loop.
I tried going into recovery mode from grub and reconfiguring dpkg packages, but it didn't work, tried switching from lightdm to gdm3 but this just gives me a black screen upon login, then tried reconfiguring lightdm, uninstalling and reinstalling lightdm and all of this did not work, I'm still stuck on login loop. I've tried various methods found by googling, and I also wondered if my nvidia drivers were messing something up (even though that seems strange, since I've been using the computer with those drivers installed for quite some time) so I uninstalled the current nvidia drivers and installed nvidia-current drivers (304 I think), but I'm still stuck.
What else can I try? I'm starting to think about doing a clean install, but I would prefer fixing the problem rather than having to lose everything and start with a clean slate.
Thanks for any suggestions!
EDIT: Couldn't find any error messages in either /var/log/Xorg.0.log nor /var/log/Xorg.0.log.old
EDIT2: So, after a bit of looking around, I saw that there was some problem with reading .Xauthority, so I just created a backup and a new .Xauthority file and that solved it, but still after a few seconds being logged in I get a black screen and get sent back to the login screen. Looking at the lightdm logs I find a critical error, "session_get_login1_session_id: assertion 'session != NULL' failed". Any idea on how to fix this
I would suggest looking at the boot output to maybe get an idea of where its hanging up. If its easy for you to reinstall that might be the best option though. – Tristan Vigil – 2016-07-29T14:50:35.193
Looks like something is crashing X when you log in. Are you able to pull up any logs? – bwDraco – 2016-07-29T14:50:38.020
Where would I look for these logs? I thought about pressing F2 during the splash screen, but the hangup is on the login page, not on the OS loading – Luca Giorgi – 2016-07-29T14:58:53.483
Try opening
/var/log/Xorg.0.log
and/var/log/Xorg.0.log.old
(as root if needed). See if there's anything toward the end of the log (especially the old one) that indicates an error of some sort, and edit the relevant information into your question. – bwDraco – 2016-07-29T15:22:13.583Couldn't find any error messages in either log – Luca Giorgi – 2016-07-29T15:52:04.373
Anything of significance when you run
dmesg
immediately after the crash? – bwDraco – 2016-07-29T16:09:44.497Sorry for the late reply, anyway the only strange thing I could find was an "Nvidia taints kernel" message but I'm not even sure that's something to be worried about – Luca Giorgi – 2016-07-30T11:23:11.977
1So, after a bit of looking around, I saw that there was some problem with reading .Xauthority, so I just created a backup and a new .Xauthority file and that solved it, but still after a few seconds being logged in I get a black screen and get sent back to the login screen. Looking at the lightdm logs I find a critical error, "session_get_login1_session_id: assertion 'session != NULL' failed". Any idea on how to fix this – Luca Giorgi – 2016-07-30T12:35:43.603
"NVIDIA taints kernel" is not an issue (it simply means your kernel is in an unsupported state due to a proprietary module, namely the graphics driver). The assertion failure is probably a much more serious issue and would likely explain the issues you're having.
– bwDraco – 2016-07-31T01:19:55.923FYI I solved it by doing a clean install, couldn't find a way to solve the problem and everything I've found on the net about that lightdm assertion error didn't work for me. Very strange. – Luca Giorgi – 2016-07-31T12:43:27.353
@LucaGiorgi: Be sure to post that as an answer to your own question and accept it so that we know your problem is resolved. – bwDraco – 2016-07-31T18:49:33.717
https://askubuntu.com/questions/223501/ubuntu-gets-stuck-in-a-login-loop/223634#223634 – Ufos – 2019-04-04T14:12:05.990