GNU bug report logs - #66612
guix locate guild results in sqlite3 attempt to write readonly database

Previous Next

Package: guix;

Reported by: Matt Wette <matt.wette <at> gmail.com>

Date: Wed, 18 Oct 2023 15:48:02 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Matt Wette <matt.wette <at> gmail.com>
Cc: 66612 <at> debbugs.gnu.org
Subject: bug#66612: guix locate guild results in sqlite3 attempt to write readonly database
Date: Wed, 18 Oct 2023 17:54:54 +0200
Hi,

Matt Wette <matt.wette <at> gmail.com> skribis:

> `guix locate guild' fails with attempt to write a readonly sqlite3 database
>
> mwette <at> bluefin$ strace -o logx guix locate guild
> guix locate: indexing files from /gnu/store...
> guix locate: traversing local profile manifests...

The bug here is that it picked the system-wide database:

  openat(AT_FDCWD, "/var/cache/guix/locate/db.sqlite", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 14

but later decided that it was too old and that it needed to be
refreshed.  But of course, that file is read-only for unprivileged
users.

There’s a bug in the file-choosing logic.

To be continued…

Ludo’.




This bug report was last modified 1 year and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.