[oS-en] tracker-extract 25206 - - Locale 'LANG' is not set, defaulting to C locale
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I get literally thousands of that message spamming my logs. Googling a bit, I decided to edit /etc/xdg/autostart/tracker-miner-fs-3.desktop: I changed: Exec=/usr/lib/tracker-miner-fs-3 to: Exec=LANG=en_US.UTF-8 /usr/lib/tracker-miner-fs-3 But this did not work (I'm unsure the syntax is correct, anyway, with two '=' symbols. I have the file "/etc/xdg/autostart/tracker-extract.desktop" only in backups from 2018 or 2017, but not in the current system. Where can I change the LANG for "tracker-extract" to try eliminate that nuisance message? (Yes, my user does have LANG set) This is on Leap 15.4. The complete sequence seems to be this: <3.6> 2023-03-19T16:47:03.165293+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' <3.6> 2023-03-19T16:47:45.077197+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.65' (uid=1000 pid=8348 comm="/usr/lib/tracker-miner-fs-3 ") <1.4> 2023-03-19T16:47:45.221328+01:00 Telcontar tracker-extract 25667 - - Locale 'LANG' is not set, defaulting to C locale <3.6> 2023-03-19T16:47:45.221430+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' <3.6> 2023-03-19T16:48:22.990217+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.65' (uid=1000 pid=8348 comm="/usr/lib/tracker-miner-fs-3 ") <1.4> 2023-03-19T16:48:23.118752+01:00 Telcontar tracker-extract 25688 - - Locale 'LANG' is not set, defaulting to C locale <3.6> 2023-03-19T16:48:23.118870+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' <3.6> 2023-03-19T16:49:53.256461+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.65' (uid=1000 pid=8348 comm="/usr/lib/tracker-miner-fs-3 ") and this one: <1.4> 2023-03-19T16:48:23.118752+01:00 Telcontar tracker-extract 25688 - - Locale 'LANG' is not set, defaulting to C locale goes to /var/log/warn. - -- Cheers Carlos E. R. (from 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZBcwYxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV3/4AoI73kAiJjA1Dty2+X9+h GveNNxx7AJ9/XkqEov0wlYZ8+z+QFdKZMFlcNQ== =Dii6 -----END PGP SIGNATURE-----
Carlos E. R. wrote:
I get literally thousands of that message spamming my logs.
Googling a bit, I decided to edit /etc/xdg/autostart/tracker-miner-fs-3.desktop:
I changed:
Exec=/usr/lib/tracker-miner-fs-3
to:
Exec=LANG=en_US.UTF-8 /usr/lib/tracker-miner-fs-3
That syntax is specific to the shell/bash, unless that "Exec" is invoked with e.g. bash, it won't work.
I have the file "/etc/xdg/autostart/tracker-extract.desktop" only in backups from 2018 or 2017, but not in the current system.
If you're not using it, you could just de-install. I don't see "tracker" installed on any of my desktops.
Where can I change the LANG for "tracker-extract" to try eliminate that nuisance message?
Maybe try just adding a line with "LANG=whatever" to that desptop file. There is a specification for those .desktop files, although I didn't see anything about setting variables. -- Per Jessen, Zürich (11.0°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes
On 2023-03-19 18:37, Per Jessen wrote:
Carlos E. R. wrote:
I get literally thousands of that message spamming my logs.
Googling a bit, I decided to edit /etc/xdg/autostart/tracker-miner-fs-3.desktop:
I changed:
Exec=/usr/lib/tracker-miner-fs-3
to:
Exec=LANG=en_US.UTF-8 /usr/lib/tracker-miner-fs-3
That syntax is specific to the shell/bash, unless that "Exec" is invoked with e.g. bash, it won't work.
Good point. I googled a bit, and in <https://wiki.archlinux.org/title/desktop_entries> found this: +++············· 2.3 Validation As some keys have become deprecated over time, you may want to validate your desktop entries using desktop-file-validate(1) which is part of the desktop-file-utils package. To validate, run: $ desktop-file-validate <your desktop file> This will give you very verbose and useful warnings and error messages. ·············++- Very verbose warnings and errors! Fine, let's try. Telcontar:~ # desktop-file-validate /etc/xdg/autostart/tracker-miner-fs-3.desktop Telcontar:~ # Well... says nothing. That's in linuxese means "no error, nothing to say". So the syntax is good :-D Ohhh..., look: +++············· 5.2.1 Modify environment variables To set environment variables, in the .desktop file, edit the Exec= line to first use the env(1) command to set your variables. For example, with the original line commented out: ~/.local/share/applications/abiword.desktop ... # Exec=abiword %U Exec=env LANG=he_IL.UTF-8 abiword %U ... ·············++- So, I got it almost right. I do the edit, then check with "desktop-file-validate", and doesn't complain.
I have the file "/etc/xdg/autostart/tracker-extract.desktop" only in backups from 2018 or 2017, but not in the current system.
If you're not using it, you could just de-install. I don't see "tracker" installed on any of my desktops.
It's used by gnome/xfce. On KDE you should have baloo instead.
Where can I change the LANG for "tracker-extract" to try eliminate that nuisance message?
Maybe try just adding a line with "LANG=whatever" to that desptop file. There is a specification for those .desktop files, although I didn't see anything about setting variables.
I just did :-) I did more changes. To: /usr/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Extract.service +++············· [D-BUS Service] Name=org.freedesktop.Tracker3.Miner.Extract Exec=/usr/lib/tracker-extract-3. SystemdService=tracker-extract-3.service # Miner details needed for tracker-control Path=/org/freedesktop/Tracker3/Miner/Extract NameSuffix=Miner.Extract ·············++- and +++············· /usr/lib/systemd/user/tracker-extract-3.service [Unit] Description=Tracker metadata extractor ConditionUser=!root [Service] Type=dbus BusName=org.freedesktop.Tracker3.Miner.Extract ExecStart=/usr/lib/tracker-extract-3 Restart=on-failure # Don't restart after tracker daemon -k (aka tracker-control -k) RestartPreventExitStatus=SIGKILL Slice=background.slice [Install] WantedBy=default.target ·············++- Telcontar:~ # systemctl daemon-reload Telcontar:~ # I have no idea what syntax to use here, and google doesn't say how to add environment on this. So I am trying the same syntax. It is possible the syntax is (<https://www.freedesktop.org/software/systemd/man/systemd.service.html#>): Environment=LANG=LANG=en_US.UTF-8 So changing accordingly. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
On Sun, 19 Mar 2023 16:55:15 +0100 (CET), "Carlos E. R." <robin.listas@telefonica.net> wrote:
I get literally thousands of that message spamming my logs. Googling a bit, I decided to edit /etc/xdg/autostart/tracker-miner-fs-3.desktop:
I changed: Exec=/usr/lib/tracker-miner-fs-3
to: Exec=LANG=en_US.UTF-8 /usr/lib/tracker-miner-fs-3
But this did not work (I'm unsure the syntax is correct, anyway, with two '=' symbols.
How about: Exec=/bin/sh -c 'export LANG="${LANG:-en_US.UTF-8}"; echo "=== LANG is [$LANG]" >&2; /usr/lib/tracker-miner-fs-3'
I have the file "/etc/xdg/autostart/tracker-extract.desktop" only in backups from 2018 or 2017, but not in the current system.
Maybe it got moved to /lib* or /usr .
Where can I change the LANG for "tracker-extract" to try eliminate that nuisance message?
Just a guess. Somewhere in the general systemd config for your user?
(Yes, my user does have LANG set) This is on Leap 15.4.
The complete sequence seems to be this: <3.6> 2023-03-19T16:47:03.165293+01:00 Telcontar dbus-daemon 6597 - - [session uid=1000 pid=6597] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' [...]
-- Robert Webb
participants (4)
-
Carlos E. R.
-
Carlos E.R.
-
Per Jessen
-
Robert Webb