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 655000 - Indexing on battery even while preference says not to
Indexing on battery even while preference says not to
Status: RESOLVED NOTGNOME
Product: tracker
Classification: Core
Component: General
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2011-07-20 19:42 UTC by Reinout van Schouwen
Modified: 2011-10-06 23:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Reinout van Schouwen 2011-07-20 19:42:28 UTC
Forwarded from https://bugs.mageia.org/show_bug.cgi?id=1653 :

Description of problem:
In the Tracker preferences, I have unchecked 'Enable when running on battery'
in the Indexing tab.
Even so, tracker-store is happily indexing my home directory when my laptop is
disconnected from power.

Version-Release number of selected component (if applicable):
0.8.17

How reproducible:
I haven't seen it before

Steps to Reproduce:
1. Install Tracker
2. Disable indexing on battery
3. Disconnect from power and log in
4. check if tracker-store is running
Comment 1 Martyn Russell 2011-07-25 10:08:15 UTC
I have this issue on my laptop too, but I found out that it was related to the underlying libraries reporting the wrong status for my power use / charging state.

Are you able to run tracker with verbosity level 3 and attach the logs here so we can see what they say? You should do this for miner-fs primarily.
Comment 2 Fabio Durán Verdugo 2011-09-10 01:25:43 UTC
any news for this report?
Comment 3 Reinout van Schouwen 2011-09-10 22:53:27 UTC
SOrry, I forgot about this bug, but I am still affected by it.
I configured tracker miner-fs to run at verbosity level 3 as described on https://live.gnome.org/Tracker/Documentation/Debugging

I'll paste the first part of the log here, as I don't feel like sharing my complete directory structure with the rest of the world. I see nothing suspicious:

11 sep 2011, 00:43:26: Tracker: tracker-miner-fs 0.8.17
11 sep 2011, 00:43:26: Tracker: General options:
11 sep 2011, 00:43:26: Tracker:   Verbosity  ............................  3
11 sep 2011, 00:43:26: Tracker:   Initial Sleep  ........................  15
11 sep 2011, 00:43:26: Tracker: Indexer options:
11 sep 2011, 00:43:26: Tracker:   Throttle level  .......................  10
11 sep 2011, 00:43:26: Tracker:   Indexing while on battery  ............  no (first time only = no)
11 sep 2011, 00:43:26: Tracker:   Low disk space limit  .................  1%
11 sep 2011, 00:43:26: Tracker: Registering D-Bus service...
  Name:'org.freedesktop.Tracker1.Miner.Files.Reindex'
11 sep 2011, 00:43:26: Tracker: Monitor backend is libinotify
11 sep 2011, 00:43:26: Tracker: Monitor limit is 8192
11 sep 2011, 00:43:26: Tracker: Initializing Storage...
11 sep 2011, 00:43:26: Tracker: Mount monitors set up for to watch for added, removed and pre-unmounts...
11 sep 2011, 00:43:26: Tracker: No mounts found to iterate
11 sep 2011, 00:43:26: Tracker: Initializing mount points
11 sep 2011, 00:43:26: Tracker: Miner process pool limit is set to 10
11 sep 2011, 00:43:26: Tracker: Registering D-Bus service...
  Name:'org.freedesktop.Tracker1.Miner.Files'
11 sep 2011, 00:43:26: Tracker: Registering D-Bus object...
11 sep 2011, 00:43:26: Tracker:   Path:'/org/freedesktop/Tracker1/Miner/Files'
11 sep 2011, 00:43:26: Tracker:   Object Type:'TrackerMinerFiles'
11 sep 2011, 00:43:26: Tracker: Setting up directories to iterate from config (IndexSingleDirectory)
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout'
11 sep 2011, 00:43:26: Tracker: Setting up directories to iterate from config (IndexRecursiveDirectory)
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Bureaublad'
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Documenten'
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Downloads'
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Muziek'
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Afbeeldingen'
11 sep 2011, 00:43:26: Tracker:   Adding:'/home/reinout/Video's'
11 sep 2011, 00:43:26: Tracker: Setting up directories to iterate from devices/discs
11 sep 2011, 00:43:26: Tracker: Starting disk space check for every 10 seconds
11 sep 2011, 00:43:26: Tracker: Registering D-Bus object...
11 sep 2011, 00:43:26: Tracker:   Path:'/org/freedesktop/Tracker1/Miner/Files/Reindex'
11 sep 2011, 00:43:26: Tracker:   Type:'TrackerMinerFilesReindex'
11 sep 2011, 00:43:26: Tracker: Monitor backend is libinotify
11 sep 2011, 00:43:26: Tracker: Monitor limit is 8192
11 sep 2011, 00:43:26: Tracker: Miner process pool limit is set to 1
11 sep 2011, 00:43:26: Tracker: Registering D-Bus service...
  Name:'org.freedesktop.Tracker1.Miner.Applications'
11 sep 2011, 00:43:26: Tracker: Registering D-Bus object...
11 sep 2011, 00:43:26: Tracker:   Path:'/org/freedesktop/Tracker1/Miner/Applications'
11 sep 2011, 00:43:26: Tracker:   Object Type:'TrackerMinerApplications'
11 sep 2011, 00:43:26: Tracker: Thumbnailer connections being set up...
11 sep 2011, 00:43:26: Tracker: Thumbnailer service did not return supported mime types, The name org.freedesktop.thumbnails.Thumbnailer1 was not provided by any .service files
11 sep 2011, 00:43:26: Tracker: Starting next miner...
11 sep 2011, 00:43:26: Tracker: <--- [1] _tracker_miner_dbus_get_progress()
11 sep 2011, 00:43:26: Tracker: ---> [1] Success, no error given
11 sep 2011, 00:43:26: Tracker: <--- [2] _tracker_miner_dbus_get_status()
11 sep 2011, 00:43:26: Tracker: ---> [2] Success, no error given
11 sep 2011, 00:43:26: Tracker: <--- [3] _tracker_miner_dbus_get_progress()
11 sep 2011, 00:43:26: Tracker: ---> [3] Success, no error given
11 sep 2011, 00:43:26: Tracker: <--- [4] _tracker_miner_dbus_get_status()
11 sep 2011, 00:43:26: Tracker: ---> [4] Success, no error given
11 sep 2011, 00:43:26: Tracker: Crawling recursively directory '/usr/share/applications'
11 sep 2011, 00:43:26: Tracker: Generating mtime cache for URI 'file:///usr/share/applications' (config location)
11 sep 2011, 00:43:26: Tracker: Store availability has changed to AVAILABLE
11 sep 2011, 00:43:26: Tracker: Store availability has changed to AVAILABLE
11 sep 2011, 00:43:26: Tracker: Generating mtime cache for URI 'file:///usr/share' (fn:starts-with)
11 sep 2011, 00:43:26: Tracker: Populated mtime cache with '0' items
11 sep 2011, 00:43:26: Tracker: Processing…

(...)

11 sep 2011, 00:48:29: Tracker: Adding files from directory 'file:///home/reinout/Video's' into the processing queue
11 sep 2011, 00:48:29: Tracker: Adding files from directory 'file:///home/reinout/Video's/Sintel.2010.720p.Theora-VODO' into the processing queue
11 sep 2011, 00:48:29: Tracker: Generating children cache for URI 'file:///home/reinout/Video's/Sintel.2010.720p.Theora-VODO'
11 sep 2011, 00:48:29: Tracker: Populated IRI cache with '1' items
11 sep 2011, 00:48:31: Tracker: Adding item 'file:///home/reinout/Video's/Sintel.2010.720p.Theora-VODO/Sintel.2010.720p.Theora-VODO.mp4'

11 sep 2011, 00:48:31: Tracker-Critical **: Could not execute sparql: Unable to insert multiple values for subject `urn:uuid:a46748a8-81e8-f8d3-a348-94c802459edd' and single valued property `dc:rights' (old_value: '(c) copyright Blender Foundation | durian.blender.org', new value: 'Creative Commons Attribution 3.0 license')
11 sep 2011, 00:48:31: Tracker: --------------------------------------------------
11 sep 2011, 00:48:31: Tracker: Total directories : 715 (145 ignored)
11 sep 2011, 00:48:31: Tracker: Total files       : 5893 (5857 ignored)
11 sep 2011, 00:48:31: Tracker: Total monitors    : 554
11 sep 2011, 00:48:31: Tracker: Total processed   : 37 (47 notified, 36 with error)
11 sep 2011, 00:48:31: Tracker: --------------------------------------------------

11 sep 2011, 00:48:31: Tracker: Idle
11 sep 2011, 00:48:31: Tracker: Finished mining in seconds:297,480392, total directories:715, total files:5893
11 sep 2011, 00:48:31: Tracker: All miners are now finished
Comment 4 Martyn Russell 2011-09-12 09:32:31 UTC
Hmm, can you reproduce this with 0.10.x or 0.12.0? 0.8.x is now unsupported.

Also, I don't see any change of state in the logs, it would be useful to show that so we can see what action we are taking when charging state changes.

Here when I test I see something like:

"Running on battery and first-time index already done, pausing"

--

Additionally, are you indexing on first time run and is it a first time index here?

Everything works here as expected and I am guessing your battery state is incorrectly reported (since I have seen that before and we didn't change this code for a long time).
Comment 5 Aleksander Morgado 2011-09-12 10:12:38 UTC
Just to confirm it, you compiled Tracker with upower or hal support, right? This can be seen in the configure output report, along the line:
  Support for HAL:     Yes/No
  Support for UPower:  Yes/No

If none of them were used, on-battery status won't be known.
Comment 6 Reinout van Schouwen 2011-09-12 23:36:54 UTC
(In reply to comment #5)
> Just to confirm it, you compiled Tracker with upower or hal support, right?
> This can be seen in the configure output report, along the line:
>   Support for HAL:     Yes/No
>   Support for UPower:  Yes/No
> 
> If none of them were used, on-battery status won't be known.

I didn't compile Tracker myself, I'm just using the version shipped with Mageia 1 currently. I'll be able to test with a newer version once I upgrade to a newer (beta) release but this won't be very soon.
Comment 7 Reinout van Schouwen 2011-10-06 23:04:39 UTC
It turned out to be a missing compile option. From the downstream bug:

Advisory:

--------------

This update corrects an issue with tracker where it would index on battery
power when set not to. It may require anybody affected by this to re-apply
their tracker settings once updated.

--------------

Source RPM: tracker-0.8.17-4.1.mga1.src.rpm