Tracker miners (eg. tracker-miner-fs-3) are started for GDM and other system users

Bug #2007755 reported by Mantas Kriaučiūnas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tracker-miners (Debian)
Fix Released
Unknown
tracker-miners (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Tracker miners (for example tracker-miner-fs-3) are started for GDM, lightdm, other system users, and waste RAM + SSD resources. I don't think tracker miners should be started for such users.
At https://bugs.debian.org/981089 I've found solution how to fix this important issue - I'm pasting with trivial change to work on Ubuntu 22.04 and newer:

The fix is to change one line in all tracker-miners systemd files:
/usr/lib/systemd/user/tracker-miner-fs-3.service
/usr/lib/systemd/user/tracker-miner-fs-control-3.service
/usr/lib/systemd/user/tracker-extract-3.service

From: ConditionUser=!root
To: ConditionUser=!@system

On running system you can run simple sed command:

sed -i 's|ConditionUser=!root|ConditionUser=!@system|' /usr/lib/systemd/user/tracker-{extract-3,miner-fs-*}.service

I can provide a debdiff if you can include this trivial patch into LTS release.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "disable tracker-miners for system-users - patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Changed in tracker-miners (Debian):
status: Unknown → New
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Please report this issue upstream. I'd like to get upstream's opinion on this before making this change directly in Ubuntu.

https://gitlab.gnome.org/GNOME/tracker-miners/-/issues

tags: added: rls-mm-incoming
Revision history for this message
Jeremy Bícha (jbicha) wrote :
Changed in tracker-miners (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I have fixed this bug for inclusion in the next Ubuntu stable release, 23.10, to be released in October.

To fix this in Ubuntu 22.04 LTS, someone needs to update this bug's description:

https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in tracker-miners (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tracker-miners - 3.4.3-2

---------------
tracker-miners (3.4.3-2) unstable; urgency=medium

  [ Jeremy Bícha ]
  * debian/gbp.conf: Branch for trixie
  * Cherry-pick 2 patches to improve tracker systemd services
    - Fix tracker-extract.service WantedBy target so that gvfsd has
      access to KRB5CCNAME. Thanks Denison Barbosa (LP: #1779890)
    - Don't start the daemons for non-root system users like gdm
      and lightdm (LP: #2007755) (Closes: #981089)

  [ Daniel van Vugt ]
  * Add tracker-extract-Add-missing-break-to-remove-a-single.patch
    to fix SIGSEGV in decorator_item_cache_remove (LP: #2012638)

 -- Jeremy Bícha <email address hidden> Mon, 21 Aug 2023 08:32:05 -0400

Changed in tracker-miners (Ubuntu):
status: Fix Committed → Fix Released
Changed in tracker-miners (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.