我今天升级到了 Ubuntu 20.04,升级后,tracker-miner-fs 似乎崩溃并连续重启;我的 CPU 使用率一直保持在 100%,直到我手动终止该进程。
我遇到的错误/var/log/syslog
是:
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: Could not find parent node for URI:'file:///home/evert/Music/unsorted/iTunes%20Music/Giorgio%20Moroder/E=MC2'
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: NOTE: URI theme may be outside scheme expected, for example, expecting 'file://' when given 'http://' prefix.
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: tracker_file_system_set_property: assertion 'file != NULL' failed
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: tracker_file_system_set_property: assertion 'file != NULL' failed
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: Could not find parent node for URI:'file:///home/evert/Music/unsorted/iTunes%20Music/Giorgio%20Moroder/E=MC2/08%20Evolution.mp3'
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: NOTE: URI theme may be outside scheme expected, for example, expecting 'file://' when given 'http://' prefix.
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: tracker_file_system_set_property: assertion 'file != NULL' failed
Apr 28 22:23:01 evertbook5 tracker-miner-f[31182]: tracker_file_system_set_property: assertion 'file != NULL' failed
Apr 28 22:23:02 evertbook5 tracker-miner-fs[31182]: **
Apr 28 22:23:02 evertbook5 tracker-miner-fs[31182]: Tracker:ERROR:../src/libtracker-miner/tracker-file-system.c:259:file_tree_lookup: assertion failed: (ptr[0] == '/')
Apr 28 22:23:02 evertbook5 tracker-miner-fs[31182]: Bail out! Tracker:ERROR:../src/libtracker-miner/tracker-file-system.c:259:file_tree_lookup: assertion failed: (ptr[0] == '/')
Apr 28 22:23:02 evertbook5 systemd[2738]: tracker-miner-fs.service: Main process exited, code=dumped, status=6/ABRT
Apr 28 22:23:02 evertbook5 systemd[2738]: tracker-miner-fs.service: Failed with result 'core-dump'.
Apr 28 22:23:02 evertbook5 systemd[2738]: tracker-miner-fs.service: Scheduled restart job, restart counter is at 45.
有指示可以永久停止该过程,但我更希望看到它起作用。
答案1
删除跟踪器数据库似乎已经成功了:
rm -r ~/.cache/tracker
答案2
这个解决方案对我有用......
那么如何完全禁用 Tracker,使其不再索引任何文件,并停止在后台运行任何 Tracker 进程?您可以使用以下命令屏蔽 Tracker systemd 服务,以便为当前用户完全禁用它:
$ systemctl --user mask tracker-store.service tracker-miner-fs.service tracker-miner-rss.service tracker-extract.service tracker-miner-apps.service tracker-writeback.service
此后,重置Tracker:
$ tracker reset --hard
然后重新启动。
来源:https://www.linuxuprising.com/2019/07/how-to-completely-disable-tracker.html
答案3
对我来说,关键是跟踪器正在为没有主目录的系统帐户运行(在我的情况下是 pihole)。一旦我为 pihole 创建了主目录,问题就解决了(祈祷)。我在“ps -ef”中查找了 syslog 中的进程 ID,以查看跟踪器正在为哪个用户运行
答案4
我不知道这是否对每个人都有效。但我刚刚删除了
〜/ .cache / tracker3 /文件
然后重新启动笔记本电脑,检查系统监视器,tracker3-extract 花费了一些时间并写入了大约 2GB 磁盘。已经过去几天了,我没有看到 tracker-miner-fs-3 上升。您可以通过启用显示隐藏文件来访问 .cache。