syslog spammed with "file not found" errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tracker-miners (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm sometimes using `yt-dlp` to download videos from various websites.
It happened to me twice already, that my syslog got spammed with lines like this:
```plaintext
2025-05-
2025-05-
```
This message repeats ~200 times per second.
My syslogs files are bloated and it costs a ton of performance:
```plaintext
$ du -h /var/log/syslog*
5,2G /var/log/syslog
7,5G /var/log/syslog.1
472M /var/log/
2,3M /var/log/
1,1G /var/log/
```
I was able to remedy this with
```bash
tracker3-reset -f /home/nomike/
killall tracker-miner-fs-3
```
and I thought that will be the end of it.
But today I noticed this again, thus I'm filing this bug.
ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: tracker-miner-fs 3.7.3-1
ProcVersionSign
Uname: Linux 6.11.0-25-generic x86_64
ApportVersion: 2.30.0-0ubuntu4.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed May 7 01:23:18 2025
InstallationDate: Installed on 2023-07-14 (663 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230414.1)
SourcePackage: tracker-miners
UpgradeStatus: Upgraded to oracular on 2024-11-21 (166 days ago)
BTW:
I've just written a small shell-script which I'm executing as a user-cronjob once per hour, which alerts me in case this happens again:
```shell
#!/bin/bash
SYSLOG= "/var/log/ syslog" LINES=100000 # Max allowed lines since last invocation
MAX_GROWTH_
<email address hidden>"
# Store previous line count in a temp file "/tmp/syslog_ line_count. tmp"
COUNT_FILE=
if [ -f "$COUNT_FILE" ]; then COUNT=$ (cat "$COUNT_FILE")
PREV_
else
PREV_COUNT=$(wc -l < "$SYSLOG")
echo "$PREV_COUNT" > "$COUNT_FILE"
exit 0
fi
CURRENT_COUNT=$(wc -l < "$SYSLOG") $((CURRENT_ COUNT - PREV_COUNT))
GROWTH=
last_modified= $(date -r "$COUNT_FILE" +%s) # Get modification time in seconds $(date -d "@$last_modified" +"%F %T") # Convert to readable datetime
now=$(date +%s)
diff_seconds=$((now - last_modified))
human_readable=
time_ago=$(date -d "@$last_modified" +"%F %T was %A, %Y-%m-%d (%H:%M:%S)") # More verbose
if [ "$GROWTH" -gt "$MAX_GROWTH_LINES" ]; then LINES}) " | \ LINES}) "
echo "Warning: $SYSLOG grew by ${GROWTH} lines within $(date -d "@$diff_seconds" -u +"%H hours, %M minutes, %S seconds") (max allowed: ${MAX_GROWTH_
mail -s "Syslog Growth Alert" "$ALERT_EMAIL"
notify-send -u critical "Syslog Alert" "Syslog grew by ${GROWTH} lines within $(date -d "@$diff_seconds" -u +"%H hours, %M minutes, %S seconds") (max allowed: ${MAX_GROWTH_
fi
# Update the count file
echo "$CURRENT_COUNT" > "$COUNT_FILE"
```