What, why, and how I solved a long login time issue with LinuxMint

SOLVED

What was happening?

A couple of days ago there was a power outage in my neighborhood. This wouldn't be a problem except that I noticed that after startup, login into my account took an abnormally long amount of time. I don't mean a minute long, but actually almost 20 minutes to display the desktop. I shrugged it off to a hitch caused by the forced restart but was left with the itch of curiosity.

Curious, a few hours later I decided to check and restarted the machine normally. Again, almost 20 minutes long to login, not to start (my computer reaches the login screen in 30 seconds). I started to worry. Apparently I haven't noticed because it had been almost a week since I had last restarted.

Why was this happening?

I immediately went to search the internet, but to no avail, it was a too broad issue to find out. So I had to diagnose a bit on my own. I restarted the machine and after login I immediately went to a terminal with Ctr+Alt+F1 to run top and see which process were running. A few suspects immediately popped up: mount.ntfs, tracker-extract, and a couple of others. But tracker-extract was there always on top. This is when I noticed my archive hard-drive was being tax hard.

The hard-drives were reading and writing furiously the whole 20 minutes. Even after Cinnamon finally loaded, the hard-drives were always abnormally spinning.

To be certain I opened logs to see if there were any error messages. Again, tracker jumped at me with several errors “Failed to start”.

With these new info my internet searches could be more refined and that's when I found an issue with tracker and nautilus that caused tracker to crash consistently. Weird, since I use nemo, not nautilus.

Except, when I check synaptic I do have nautilus and tracker installed, but why?

How to solve it?

Now, I don't suggest you diagnose in this same manner, but to find out why and who installed these two apps in my system I used synaptic. When you mark a package to uninstall, synaptic will show a dialog complaining of other packages that would break, essentially displaying dependencies. I'm sure there must be an easier way to check packages dependants, but this is what I thought of in the moment.

My discoveries were that nautilus and tracker are dependencies of the Cairo-dock. When I installed that dock it gave me a long list of over 20 packages to install as dependencies. Since almost all of them started with Cairo, I didn't check that closely, nor did I have a reason to suspect it would cause any issue.

So I uninstalled the Cairo dock, tracker, nautilus and their associated packages. Installed plank instead (just two packages), and restarted to check.

Now login time is back to under a second to desktop. Apparently tracker was trying to index all of my 2TB of hard-drives every time I logged in. But since any attempt to start tracker crashed, the task was locking everything else and preventing the desktop environment from starting.

That's all, I hope the info helps someone in the future and:

  • Cairo, why do you need Nautilus?
  • Tracker, why do you need to index everything every time?
  • Nautilus, why does tracker with nautilus crashes and still haven't been fixed?

TL;DR: Suddenly got extremely long login times and ridiculously busy hard-drives. Culprits were tracker, nautilus and the cairo-dock stabbing my hard drives to death at every login.

Posted Jul 16, 2022, 2:23 PM UTC

232
gimlet58•

Plank is the best of the docks for ease and resources

3
Alverso_Balsalm•

Interesting. I'm also wondering why a dock needs another full fledged file manager as a dependency.

2