#718446 tracker-extract possibly prevents shutdown to complete

Package:
tracker-extract
Source:
tracker-miners
Description:
metadata database, indexer and search tool - metadata extractors
Submitter:
Sebastian Niehaus
Date:
2024-01-29 17:45:03 UTC
Severity:
important
#718446#5
Date:
2013-07-31 20:53:33 UTC
From:
To:
Dear Maintainer,


sometimes my computer does not shutdown completely after logging out
from kde:

|asking all remaining processes to terminate ... done
|currently running processes are (pstree)
| ....
| tracker-extract

(see sreenshot attached)


I suppose the other processes regarding NFS are okay to be running after
/etc/init.d/sendsigs but tracker-extract should have been finished.

Shutdown remains incomplete and I have to press the power button to
force a power down. However, the file system is not unmounted cleanly
then.


The problem is not *always* reproducible but quite often.



Thanks for your consideration



Sebastian

#718446#10
Date:
2013-07-31 21:15:42 UTC
From:
To:
Am 31.07.2013 22:53, schrieb Sebastian Niehaus:

Are you using NFS for your $HOME directory?

#718446#15
Date:
2013-07-31 21:41:49 UTC
From:
To:
Am 31.07.2013 23:15, schrieb Michael Biebl:

No, $HOME is on the maschine's local disk.

The NFS file system however is mounted into one user's home like

/home/user1/nfs


THT,


Sebastian

#718446#20
Date:
2013-07-31 22:08:20 UTC
From:
To:
Am 31.07.2013 23:41, schrieb Sebastian Niehaus:

You might want to exclude that directory from being crawled/indexed by
tracker.

#718446#25
Date:
2013-08-08 21:35:11 UTC
From:
To:
Am 01.08.2013 00:08, schrieb Michael Biebl:

Looks if this made disappear the unwanted behavior. Not very good it
still can happen but quite easy to work around.



Sebastian

#718446#30
Date:
2024-01-29 14:22:31 UTC
From:
To:
IMHO, the process should stop immediately at shutdown and not try
to finish its task first.

When I upgraded a machine from stable to testing in December 2023,
tracker-extract was also preventing the shutdown (always, AFAIK),
and I had no NFS, just the local disk. However, in my case,
tracker-extract (gst-plugin-scan) was yielding a crash in nouveau

2023-12-19T03:10:02.176832+01:00 qaa tracker-extract-3[1967]: nvc0_screen_create:1077 - Error allocating PGRAPH context for M2MF: -16
2023-12-19T03:10:02.177550+01:00 qaa kernel: ------------[ cut here ]------------
2023-12-19T03:10:02.177568+01:00 qaa kernel: nouveau 0000:01:00.0: timeout
[...]
2023-12-19T03:10:02.177710+01:00 qaa kernel: CPU: 3 PID: 1967 Comm: gst-plugin-scan Tainted: G        W          6.5.0-5-amd64 #1  Debian 6.5.13-1

and gst-plugin-scan even survived SIGKILL:

[...]
2023-12-19T03:13:06.240298+01:00 qaa systemd[2079]: tracker-extract-3.service: State 'final-sigterm' timed out. Killing.
2023-12-19T03:13:06.240435+01:00 qaa systemd[2079]: tracker-extract-3.service: Killing process 2150 (gst-plugin-scan) with signal SIGKILL.
2023-12-19T03:13:40.973708+01:00 qaa kernel: INFO: task gst-plugin-scan:2150 blocked for more than 120 seconds.
2023-12-19T03:13:40.973803+01:00 qaa kernel:       Tainted: G        W          6.5.0-5-amd64 #1 Debian 6.5.13-1
2023-12-19T03:13:40.973810+01:00 qaa kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2023-12-19T03:13:40.973816+01:00 qaa kernel: task:gst-plugin-scan state:D stack:0     pid:2150  ppid:2079   flags:0x00000006
[...]
2023-12-19T03:14:36.240345+01:00 qaa systemd[2079]: tracker-extract-3.service: Processes still around after final SIGKILL. Entering failed mode.
[...]

So perhaps in this particular case, there was nothing that could
be done on the tracker-extract side, but I'm wondering.

Since then, the nouveau issue has been fixed, but I had removed
tracker-extract earlier, and I didn't try again to see whether
the problem was solved about it.

#718446#35
Date:
2024-01-29 15:03:44 UTC
From:
To:
That's certainly a kernel/driver bug. In principle it should not be
possible for Tracker to cause a crash in kernel code (was this an OOPS
or a BUG message or what?), even if it wanted to do this intentionally.

If it has got sufficiently wedged in kernel code that even SIGKILL won't
delete the process, then there isn't going to be anything further that
either Tracker or systemd can do to resolve that.

    smcv

#718446#40
Date:
2024-01-29 17:39:57 UTC
From:
To:
also triggered this error. This was due to missing symbolic links
in the firmware-misc-nonfree package:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058991