Upgrade to Linux kernel 5.4.0-74.83 caused login loop

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rootwork
Level 1
Level 1
Posts: 2
Joined: Wed Jun 02, 2021 7:22 pm

Upgrade to Linux kernel 5.4.0-74.83 caused login loop

Post by rootwork »

In the past, Linux kernel updates have gone pretty smoothly for me, so when 5.4.0-74.83 appeared in Update Manager I went ahead and installed it.

Upon reboot, I got stuck in a "login loop" -- entering my username and correct password generated a quick flash of a black screen, then reloaded the login page. Using ctrl-alt-f1 to login via the command-line allowed me to verify that I was entering the correct credentials. Nonetheless, I also tried booting into single-user/recovery mode and changing my user's password (as root), but that had no effect.

I was able to login as root through the (GUI) login screen. Once I realized that, I used that account to look up various reports of similar behavior--

viewtopic.php?t=261704
https://askubuntu.com/questions/223501/ ... oop#223634
https://unix.stackexchange.com/question ... login-loop
https://superuser.com/questions/1456804 ... innamon-19

and so I tried the following:

- changed various settings on the "Login Window" control panel to see if overriding whatever had been set fixed things
- made sure my user was not somehow in the "nopasswdlogin" group
- checked to see if I had an .Xauthority file with incorrect permissions (I didn't have the file)
- checked to make sure my home directory had the right owner and permissions
- replaced LightDM with MDM

There are additional possible solutions mentioned in the posts above, but I started to get tired of rebooting to try a new thing, so I eventually just restored a Timeshift backup of my earlier system configuration.

My internal SSD is about 82% full, and an external HDD partition (just used as storage, no active OS files) was 99% full, so it's possible it could have been that.

This may have just been something specific to me, but I wanted to post it here in case others run across it, and also to suggest that you make sure you have a backup should you try upgrading the kernel like I did :)

Here's my system info:

Code: Select all

System:    Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Dell product: OptiPlex 7050 v: N/A serial: <filter> Chassis: type: 3 serial: <filter> 
           Mobo: Dell model: 0NW6H5 v: A00 serial: <filter> UEFI: Dell v: 1.14.0 date: 07/03/2020 
Battery:   Device-1: hid-[mac-id]-battery model: Logitech K811 serial: N/A charge: N/A status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-6600 bits: 64 type: MCP arch: Skylake-S rev: 3 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 26399 
           Speed: 938 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 1677 2: 1618 3: 1768 4: 1682 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1912 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Intel 200 Series PCH HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a2f0 
           Device-2: Micronas Blue Snowflake type: USB driver: snd-usb-audio bus ID: 1-6:2 chip ID: 074d:0005 
           Sound Server: ALSA v: k5.4.0-73-generic 
Network:   Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: 3.2.6-k port: f040 bus ID: 00:1f.6 
           chip ID: 8086:15e3 
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IF-ID-1: br-27a4074256f8 state: down mac: <filter> 
           IF-ID-2: br-c0c14a193055 state: down mac: <filter> 
           IF-ID-3: br-c737e3b1876c state: down mac: <filter> 
           IF-ID-4: br-e340d023dd06 state: down mac: <filter> 
           IF-ID-5: docker0 state: down mac: <filter> 
           IF-ID-6: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:    Local Storage: total: 7.39 TiB used: 2.02 TiB (27.3%) 
           ID-1: /dev/sda vendor: OCZ model: AGILITY3 size: 111.79 GiB speed: 6.0 Gb/s serial: <filter> rev: 2.15 temp: 30 C 
           scheme: GPT 
           scheme: GPT 
Partition: ID-1: / size: 109.04 GiB used: 84.65 GiB (77.6%) fs: ext4 dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 33.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://typora.io/linux ./
           2: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
           Active apt repos in: /etc/apt/sources.list.d/agornostal-ulauncher-focal.list 
           1: deb http://ppa.launchpad.net/agornostal/ulauncher/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/aos1-diff-so-fancy-focal.list 
           1: deb http://ppa.launchpad.net/aos1/diff-so-fancy/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/costales-folder-color-focal.list 
           1: deb http://ppa.launchpad.net/costales/folder-color/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/font-manager-staging-focal.list 
           1: deb http://ppa.launchpad.net/font-manager/staging/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/jonaski-strawberry-focal.list 
           1: deb http://ppa.launchpad.net/jonaski/strawberry/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/nodesource.list 
           1: deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_15.x focal main
           2: deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_15.x focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/sublime-text.list 
           1: deb https://download.sublimetext.com/ apt/stable/
Info:      Processes: 306 Uptime: 13m Memory: 7.64 GiB used: 4.81 GiB (63.0%) Init: systemd v: 245 runlevel: 5 
           target: graphical.target Compilers: gcc: 9.3.0 alt: 7/9 Shell: zsh v: 5.8 running in: guake inxi: 3.0.38
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31776
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Upgrade to Linux kernel 5.4.0-74.83 caused login loop

Post by SMG »

rootwork wrote: Wed Jun 02, 2021 7:48 pmIn the past, Linux kernel updates have gone pretty smoothly for me, so when 5.4.0-74.83 appeared in Update Manager I went ahead and installed it.

Upon reboot, I got stuck in a "login loop" -- entering my username and correct password generated a quick flash of a black screen, then reloaded the login page.
Welcome to the forum, rootwork.

The usual reason for a login loop is a full partition. Here are some tips How to Clean Linux Mint Safely.
rootwork wrote: Wed Jun 02, 2021 7:48 pmand so I tried the following:
- replaced LightDM with MDM
MDM is not supported on Linux Mint 20.1.

The data you posted indicates your computer's root partition is 77.6% full.
Partition:
ID-1: / size: 109.04 GiB used: 84.65 GiB (77.6%) fs: ext4 dev: /dev/sda2
Image
A woman typing on a laptop with LM20.3 Cinnamon.
rootwork
Level 1
Level 1
Posts: 2
Joined: Wed Jun 02, 2021 7:22 pm

Re: Upgrade to Linux kernel 5.4.0-74.83 caused login loop

Post by rootwork »

Right, as I mentioned, I knew my partition was somewhat full, though I wouldn't characterize 77% (or 82%) as "full." Additionally since it happened directly after upgrading the kernel, it seemed likely to have something to do with that -- which was confirmed when I rolled back to the previous kernel.

In any case, yesterday I tried again (root partition 83% full!) and it worked fine. There were various updates in the interim, including firmware updates, so perhaps one of those addressed the underlying issue.
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: Upgrade to Linux kernel 5.4.0-74.83 caused login loop

Post by deepakdeshp »

You can boot to any of the installed kernels by choosing advance option from grub as you boot.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Installation & Boot”