updatedb incompatible with btrfs subvolumes

Bug #1968190 reported by Julian Andres Klode
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
plocate (Debian)
Unknown
Unknown
plocate (Ubuntu)
Triaged
Undecided
Unassigned
Jammy
Triaged
Undecided
Unassigned

Bug Description

I ran sudo updatedb, seeing locate did not find anything. It basically exited immediately.

strace log attached, no output with updatedb -v either

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: plocate 1.1.15-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Thu Apr 7 17:37:38 2022
InstallationDate: Installed on 2018-03-14 (1484 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180313)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: plocate
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :
description: updated
Revision history for this message
Julian Andres Klode (juliank) wrote : Re: updatedb incompatible with btrfs

This seems to fail because PRUNE_BIND_MOUNTS="yes", and it seems to treat the btrfs / volume, which has a bunch of subvolumes mounted at a bunch of paths as a bind mounted file system

summary: - updatedb does not really do anything other than stat /
+ updatedb incompatible with btrfs
Revision history for this message
Julian Andres Klode (juliank) wrote :

To make this cleaner these are the fstab entries:

/dev/mapper/ubuntu--vg-root / btrfs defaults,compress=zstd,subvol=@ 0 1
/dev/mapper/ubuntu--vg-root /var/cache/squid-deb-proxy btrfs defaults,subvol=@squid 0 2
/dev/mapper/ubuntu--vg-root /var/log btrfs defaults,subvol=@log 0 2
/dev/mapper/ubuntu--vg-root /var/cache/apt/archives btrfs defaults,subvol=@apt 0 2
/dev/mapper/ubuntu--vg-root /mnt btrfs defaults 0 2

summary: - updatedb incompatible with btrfs
+ updatedb incompatible with btrfs subvolumes
Changed in plocate (Ubuntu):
status: New → Triaged
Changed in plocate (Ubuntu Jammy):
milestone: none → ubuntu-22.04.1
tags: added: fr-2256
tags: removed: rls-jj-incoming
Revision history for this message
Gannet (ken20001) wrote :

There is 22.04.1 released. But still not working. 'updatedb' and, for example, 'locate fstab' gives nothing.

Changed in plocate (Ubuntu Jammy):
milestone: ubuntu-22.04.1 → jammy-updates
Changed in plocate (Ubuntu):
milestone: ubuntu-22.04.1 → none
Revision history for this message
Julian Andres Klode (juliank) wrote :

Upstream does not want to fix this

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.