GNU bug report logs -
#66612
guix locate guild results in sqlite3 attempt to write readonly database
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66612 in the body.
You can then email your comments to 66612 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#66612
; Package
guix
.
(Wed, 18 Oct 2023 15:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matt Wette <matt.wette <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 18 Oct 2023 15:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
`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...
Backtrace:
13 (primitive-load "/home/mwette/.config/guix/current/bin/…")
In guix/ui.scm:
2323:7 12 (run-guix . _)
2286:10 11 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/locate.scm:
621:8 9 (_)
123:8 8 (call-with-database _ _)
In guix/progress.scm:
71:36 7 (call-with-progress-reporter _ _)
In srfi/srfi-1.scm:
634:9 6 (for-each #<procedure 7f179a23ca00 at guix/scripts/loc…> …)
In guix/scripts/locate.scm:
442:2 5 (_ _)
286:2 4 (insert-files #<<sqlite-db> pointer: #<pointer 0x1f98f…> …)
In srfi/srfi-1.scm:
634:9 3 (for-each #<procedure 7f179abb3000 at guix/scripts/loc…> …)
In sqlite3.scm:
637:15 2 (sqlite-fold #<procedure 7f179a23c5a0 at ice-9/boot-9.…> …)
166:2 1 (_ _)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `sqlite-error' with args `(#f 8 "attempt to write a
readonly database")'.
indexing 1,654 packages
mwette <at> bluefin$
[logx (text/plain, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#66612
; Package
guix
.
(Wed, 18 Oct 2023 15:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 66612 <at> debbugs.gnu.org (full text, mbox):
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’.
Severity set to 'important' from 'normal'
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 18 Oct 2023 15:56:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 18 Oct 2023 21:14:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Matt Wette <matt.wette <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 18 Oct 2023 21:14:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 66612-done <at> debbugs.gnu.org (full text, mbox):
Fixed in commit d0fed2f4df06446eafcc992f0bc7ea154124fdf4, thanks!
Ludo'.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#66612
; Package
guix
.
(Thu, 19 Oct 2023 15:35:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 66612 <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> skribis:
> 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:
The immediate workaround is to run ‘guix locate --update’ once: it’ll
create an up-to-date database under ~/.cache, which will then be used
unconditionally.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 17 Nov 2023 12:24:05 GMT)
Full text and
rfc822 format available.
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.