[5.0.9-arch1-1-ARCH,带有 gnome-desktop 3.32.1.2-1 和 tracker 2.2.1]
我的系统日志at boot ( $ sudo journalctl -b
) 正在收到有关tracker-miner
无法sparql
与tracker-store.service
被屏蔽的单元一起执行的消息。我不记得屏蔽这个单位。下面是非常小的摘录:
Apr 26 07:47:05 HOSTNAME dbus-daemon[3165]: [session uid=1000 pid=3165] Activating via systemd: service name='org.freedesktop.Tracker1' unit='tracker-store.service' requested by ':1.54' (uid=1000 pid=3441 comm="/usr/lib/tracker-miner-fs ")
Apr 26 07:47:05 HOSTNAME dbus-daemon[3165]: [session uid=1000 pid=3165] Activation via systemd failed for unit 'tracker-store.service': Unit tracker-store.service is masked.
Apr 26 07:47:05 HOSTNAME tracker-miner-f[3441]: (Sparql buffer) Error in array-update: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit tracker-store.service is masked.
Apr 26 07:47:05 HOSTNAME tracker-miner-f[3441]: Could not execute sparql: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit tracker-store.service is masked.
Apr 26 07:47:05 HOSTNAME dbus-daemon[3165]: [session uid=1000 pid=3165] Activating via systemd: service name='org.freedesktop.Tracker1' unit='tracker-store.service' requested by ':1.54' (uid=1000 pid=3441 comm="/usr/lib/tracker-miner-fs ")
Apr 26 07:47:05 HOSTNAME dbus-daemon[3165]: [session uid=1000 pid=3165] Activation via systemd failed for unit 'tracker-store.service': Unit tracker-store.service is masked.
Apr 26 07:47:05 HOSTNAME tracker-miner-f[3441]: (Sparql buffer) Error in array-update: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit tracker-store.service is masked.
我还看到:
$ systemctl --user status tracker-store
● tracker-store.service
Loaded: masked (Reason: Unit tracker-store.service is masked.)
Active: inactive (dead)
和
$ tracker status
Currently indexed: 50073 files, 3018 folders
Remaining space on database partition: 39.0 GB (24.28%)
(tracker status:17788): Tracker-CRITICAL **: 19:47:02.875: Could not get miner progress for 'org.freedesktop.Tracker1.Miner.Extract': Timeout was reached
(tracker status:17788): Tracker-CRITICAL **: 19:47:27.899: Could not get miner progress for 'org.freedesktop.Tracker1.Miner.Files': Timeout was reached
All data miners are idle, indexing complete
表明该服务单元确实被屏蔽并且其已完成其索引工作。
相当多样化的帖子涉及与启动系统日志中出现的关键字类似的关键字:“tracker-miner”(1),“sparql”不执行(2),一个被屏蔽的“tracker-store.service”单元(3)。 tracker
曾被追究垄断责任中央处理器, 霸占内存和存储空间、侵犯用户隐私等,自从它开始作为 gnome-desktop 的一部分系统地发布以来。
没有帖子让我更接近回答:
- 为什么我在启动时收到这些系统日志消息?
注意:日志详细程度最低,所有应用程序默认设置为“错误” tracker
。我不知道如何将其减少到零。我还假设(也许是错误的)如果tracker
配置良好,它就不会成为启动时出现如此多错误消息的根源。
- 如果是这样,我需要修复/重新配置什么才能消除这些错误?
答案1
听起来屏蔽 tracker-store 并不是禁用 Tracker 的“正确”解决方案,因为它会产生如此多的日志噪音。
如果你自己屏蔽了 Tracker,我会恢复它,即systemctl --user unmask tracker-store
。 (没有什么可以自动掩盖它。如果你发现这样的罪魁祸首,我会向他们指出这些消息)。
如果您有兴趣禁用跟踪器:
在 Fedora 27 上,Gnome 3.26.2([tracker-preferences] 在存储库中不可用)。
看来只需转到“设置”->“搜索”->“[窗口栏]关闭”即可禁用跟踪器。
这个解决方案归功于 samtuke: