Public bug reported:

After the sqlite3 update 3.45.1-1ubuntu2.8 -> 3.45.1-1ubuntu2.9 (LP:
#2087772, which backports upstream check-in 7a3d0027f8 from SQLite
3.45.3, the SQLITE_ALLOW_ROWID_IN_VIEW change), Tracker 3.7.1 on noble
can no longer write to its database. Every insert/update fails with:

    tracker-miner-f[...]: Could not execute sparql: ambiguous column name: ROWID
    tracker-extract-3: Failed to update ignored file 'file:///...': ambiguous 
column name: ROWID

This is the same incompatibility upstream Tracker fixed for SQLite
3.45.3 in GNOME/tracker MR 665 (issue #435), "core: Fix incompatibility
introduced by SQLite 3.45.3", released in tracker 3.7.3 (Debian 3.7.3-1:
"add compatibility with SQLite 3.45.3"). Noble still ships tracker
3.7.1-1build1 without that fix, while noble's sqlite3 now carries the
3.45.3 behaviour.

Impact: a file that disappears before tracker-extract reads it (for
example an editor's atomic-write temp file name.tmp.<pid>.<hex> renamed
within milliseconds) can never be marked as failed, so it is retried
endlessly, about 56 times per second per file, with three warnings each
time. On this machine 6 such records produced a 14 GB /var/log/syslog in
about 18 hours and filled the root filesystem. The records live in the
Tracker database, so restarting the service does not stop it. Content
indexing does not work at all.

Steps to reproduce (noble, tracker 3.7.1-1build1, libsqlite3-0 
3.45.1-1ubuntu2.9):
1. Run tracker-miner-fs-3 (default GNOME session).
2. In an indexed folder (e.g. ~/Documents), repeatedly create a file and rename 
it away immediately:
   for i in $(seq 20); do echo x > f.tmp.$$.$i; mv f.tmp.$$.$i f; done
3. Watch journalctl --user -f or /var/log/syslog: "ambiguous column name: 
ROWID" on every write; vanished temp files are retried forever.

Even after "tracker3 reset --filesystem", re-indexing logs "ambiguous
column name: ROWID" about 24 times per minute.

Expected: Tracker indexes normally, as before the sqlite3 update.

Suggested fix: backport GNOME/tracker MR 665 to noble's tracker (or SRU
tracker 3.7.3), since the sqlite3 change is now in noble-updates.

Versions:
- Ubuntu 24.04.5 LTS
- tracker 3.7.1-1build1, libtracker-sparql-3.0-0 3.7.1-1build1
- tracker-miner-fs 3.7.1-1ubuntu0.1, tracker-extract 3.7.1-1ubuntu0.1
- libsqlite3-0 3.45.1-1ubuntu2.9 (upgraded from 2.8 on 2026-11-06)

References:
- https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/665
- https://gitlab.archlinux.org/archlinux/packaging/packages/tracker3/-/issues/2
- https://bugs.gentoo.org/931015
- LP: #2087772

** Affects: sqlite3 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tracker (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: noble regression-update

** Also affects: sqlite3 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2176015

Title:
  sqlite3 3.45.1-1ubuntu2.9 breaks tracker 3.7.1 on noble: "ambiguous
  column name: ROWID" on every write; tracker-miner-fs retries forever
  and floods syslog

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/2176015/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to