After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770793 - tracker-miner-user-guides.service: Failed with result 'timeout'.
tracker-miner-user-guides.service: Failed with result 'timeout'.
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
unspecified
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2016-09-03 12:49 UTC by Michael Biebl
Modified: 2017-08-16 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
user-guides: Fix typo in userguides miner DBus name (1.16 KB, patch)
2017-08-16 13:31 UTC, Carlos Garnacho
committed Details | Review
user-guides: Fix systemd spam when trying to launch miner (1.50 KB, patch)
2017-08-16 13:35 UTC, Bastien Nocera
none Details | Review

Description Michael Biebl 2016-09-03 12:49:08 UTC
I've been giving the new systemd user units provided by tracker a try.

When trying to run the user-guides miner, I get
$ systemctl start --user tracker-miner-user-guides.service
$ journalctl -f
Sep 03 14:43:13 pluto systemd[5940]: tracker-miner-user-guides.service: Start operation timed out. Terminating.
Sep 03 14:43:13 pluto tracker-miner-user-guides[11557]: Received signal:15->'Beendet'
Sep 03 14:43:13 pluto tracker-miner-user-guides[11557]: OK
Sep 03 14:43:13 pluto systemd[5940]: Failed to start Tracker user guides data miner.
Sep 03 14:43:13 pluto systemd[5940]: tracker-miner-user-guides.service: Unit entered failed state.
Sep 03 14:43:13 pluto systemd[5940]: tracker-miner-user-guides.service: Failed with result 'timeout'.
Sep 03 14:43:13 pluto systemd[5940]: tracker-miner-user-guides.service: Service hold-off time over, scheduling restart.
Sep 03 14:43:13 pluto systemd[5940]: Stopped Tracker user guides data miner.
Sep 03 14:43:13 pluto systemd[5940]: Starting Tracker user guides data miner...

and so on and on.

Running /usr/lib/tracker/tracker-miner-user-guides manually by hand works fine.
I assume, the miner does not properly grab a name on the session bus and as the service uses Type=dbus, systemd fails to notice the service has successfully started. Running status after after a start gives:

$ systemctl status --user tracker-miner-user-guides.service
● tracker-miner-user-guides.service - Tracker user guides data miner
   Loaded: loaded (/usr/lib/systemd/user/tracker-miner-user-guides.service; static; vendor preset: enabled)
   Active: activating (start) since Sa 2016-09-03 14:44:44 CEST; 59s ago
 Main PID: 11634 (tracker-miner-u)
   CGroup: /user.slice/user-1000.slice/user@1000.service/tracker-miner-user-guides.service
           └─11634 /usr/lib/tracker/tracker-miner-user-guides

Sep 03 14:44:44 pluto systemd[5940]: Starting Tracker user guides data miner...

Notice the state "activating (start)"
Comment 1 Michael Biebl 2016-09-03 12:49:23 UTC
This is with version 1.9.1
Comment 2 Carlos Garnacho 2017-08-16 13:30:46 UTC
The userguides miner is gone for 2.x. I'm attaching/pushing a fix for 1.12 though.
Comment 3 Carlos Garnacho 2017-08-16 13:31:15 UTC
Created attachment 357727 [details] [review]
user-guides: Fix typo in userguides miner DBus name

The miner name is "Userguides", not "UserGuides". Fixes pointless
spam from systemd because it tries to start a service that takes
a different name in the end.
Comment 4 Carlos Garnacho 2017-08-16 13:32:03 UTC
Attachment 357727 [details] pushed as 453da85 - user-guides: Fix typo in userguides miner DBus name
Comment 5 Bastien Nocera 2017-08-16 13:35:19 UTC
Created attachment 357731 [details] [review]
user-guides: Fix systemd spam when trying to launch miner

When trying to launch the user guides miner, systemd would expect the
org.freedesktop.Tracker1.Miner.UserGuides to then be taken. But because
that name isn't taken by the just launched miner, systemd would kill the
"hung" service after a timeout, and try to start it again.

systemd expects:
org.freedesktop.Tracker1.Miner.UserGuides
but the miner code owns:
org.freedesktop.Tracker1.Miner.Userguides

Change the "Guides" variant in the systemd service file as it is the only
occurence of that variant.