plocate does not do/find anything
Description:
Ever since we have switched to plocate I could not get it to work for me. I am confused about all of this because from what I've heard from other people it just works out of the box for them.
excerpt from #archlinux-testing
2024-09-11 00:17:00•gromit• Foxboron: What am I doing wrong if plocate finds nothing even after doing a manual updatedb aswell as a "sudo systemctl start plocate-updatedb.service"
2024-09-11 00:21:29•gromit• I just tested it and i.e. "sudo pacdiff -l" yields no results while "sudo pacdiff" gives me my diffs as usual .. But this is only the motivating example "locate PKGBUILD" also gives back no result
2024-09-11 09:15:46•Antiz• gromit: Works fine on my side FWIW
2024-09-11 09:15:57•Foxboron• gromit: do you have any weird partition schema thing?
2024-09-11 11:30:19•gromit• Foxboron: no not really, standard btrfs on LUKS setup (I think) https://gist.github.com/christian-heusel/035f87cc62d66378a84b4275d991181c
Additional info:
package version(s): 1.1.22-3
config and/or log files:
$ cat /etc/updatedb.conf
PRUNE_BIND_MOUNTS = "yes"
PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset cramfs debugfs devpts devtmpfs ecryptfs exofs ftpfs fuse fuse.encfs fuse.s3fs fuse.sshfs fusectl gfs gfs2 hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs sshfs sysfs tmpfs ubifs udf usbfs vboxsf"
PRUNENAMES = ".git .hg .svn"
PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache /var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp"
$ pacman -Qkk plocate
plocate: 33 total files, 0 altered files
Partition setup:
$ lsblk --fs
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1 vfat FAT32 FABC-FA07 238.4M 52% /boot
└─nvme0n1p2 crypto 2 8913bf3e-3df0-478e-b072-f7bec731154b
└─archlinux btrfs archlinux-btrfs 924db749-b786-4970-9fed-688cccb609e9 42G 89% /var/cache/pacman/pkg
/var/log
/home
/.snapshots
/btrfs
/
$ cat /etc/fstab
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/archlinux
UUID=924db749-b786-4970-9fed-688cccb609e9 /btrfs btrfs rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 1
UUID=924db749-b786-4970-9fed-688cccb609e9 /home btrfs rw,relatime,ssd,space_cache=v2,subvolid=449,subvol=/@home 0 0
UUID=924db749-b786-4970-9fed-688cccb609e9 /.snapshots btrfs rw,relatime,ssd,space_cache=v2,subvolid=450,subvol=/@snapshots 0 0
UUID=924db749-b786-4970-9fed-688cccb609e9 /var/cache/pacman/pkg btrfs rw,relatime,ssd,space_cache=v2,subvolid=452,subvol=/@pkg 0 0
UUID=924db749-b786-4970-9fed-688cccb609e9 /var/log btrfs rw,relatime,ssd,space_cache=v2,subvolid=451,subvol=/@var_log 0 0
# /dev/nvme0n1p1
UUID=FABC-FA07 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
/swap/swapfile none swap defaults 0 0
link to upstream bug report, if any: -
Steps to reproduce:
-
sudo updatedb -v=> no output -
locate PKGBUILD=> no output
The motivating example was the following:
$ sudo pacdiff -l
<no output>
$ sudo pacdiff -f
==> pacsave file found for /etc/conf.d/prometheus-mosquitto-exporter
[...]
==> pacnew file found for /etc/hedgedoc2/settings.env
[...]
==> pacsave file found for /etc/mkinitcpio.d/linux-custom.preset