From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OJR0N0UBMGVmHwAAauVa8A:P1 (envelope-from ) for ; Wed, 18 Oct 2023 18:01:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OJR0N0UBMGVmHwAAauVa8A (envelope-from ) for ; Wed, 18 Oct 2023 18:01:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4717A542E1 for ; Wed, 18 Oct 2023 18:01:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=rgC32D3F; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697644869; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VIfnrdHzQVbMrZojpLgoBSWlQV778tC7Xba/bNAszKc=; b=RgKsgiCBWpKB3fcmjt7bXdFSB9MO3RaLS9LVoG+gAb3ni21kuLozPlrgfdliupu4GZjzD+ Vb0daZ1b16GqXIfszfLoj92alQIq9swCO+IHjUZCx4cZQulnLcH7WzsUhiITVyF01hThur k8csXszGGquSHycDSguw08NvkB0zQOcODh/0HPZA/tQsfA+P59lRKX2Lt5fewh3SNEPyn8 kX70OI0COjT3qLdQwhFO1A83VC7sbXMIeVxwd7/vh991hc2/GMgfwznhntmnTMVfFBl2d2 RFmsEUiNhTz8Mu9DOmFFoWW7g+udlJJRWVhoufOlEHJnGhX1Voy7YYeOF4mx+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=rgC32D3F; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697644869; a=rsa-sha256; cv=none; b=QvXLQQozjn43Q2+pPaeRGKDRocF68DFujqViYhd14tXNEzzeHFhjT9k3Tv8vKiz7SJ85wl Ww2LxY39ebi+sM5R0FkFN54kC2Y1UiLH8Me0L/4lEb+VNxq3Xwlel1cb7Vj0QKbMNFFiEf 8yOvqc1DrcnRQrEmXKqKMdA0nhEVKt2AoLhnFJRh0T/Duuu1VZHQTw5130CL8rZK0jYfPE 8nRx694q+KgMjb4/Lx5+qGd4o448WvlkQuFHgGZPA6j4TjcdYkrkL3LuEmfTY/6inXhZv3 EseikfU384nicNjSMESD6bdCnv9VTtodtkmE97ImBKB+ilvwQfzKHdI/QqVScQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qt8vA-0004cW-EL; Wed, 18 Oct 2023 11:57:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt8tW-0002km-KR for bug-guix@gnu.org; Wed, 18 Oct 2023 11:55:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qt8tU-0006r2-Sm for bug-guix@gnu.org; Wed, 18 Oct 2023 11:55:38 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qt8tu-0005M7-Gs for bug-guix@gnu.org; Wed, 18 Oct 2023 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66612: guix locate guild results in sqlite3 attempt to write readonly database Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Oct 2023 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66612 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Matt Wette Cc: 66612@debbugs.gnu.org Received: via spool by 66612-submit@debbugs.gnu.org id=B66612.169764453520531 (code B ref 66612); Wed, 18 Oct 2023 15:56:02 +0000 Received: (at 66612) by debbugs.gnu.org; 18 Oct 2023 15:55:35 +0000 Received: from localhost ([127.0.0.1]:34530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt8tS-0005KF-Pf for submit@debbugs.gnu.org; Wed, 18 Oct 2023 11:55:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qt8tN-0005Js-H4 for 66612@debbugs.gnu.org; Wed, 18 Oct 2023 11:55:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt8sr-0006WA-Vc; Wed, 18 Oct 2023 11:54:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=VIfnrdHzQVbMrZojpLgoBSWlQV778tC7Xba/bNAszKc=; b=rgC32D3FDrXnxYxzJq6M fvmBjYutcU2/Q9NjTky7OIp86sid0CysFjSp0LmiDoERoUATX46qxblg4CAqVfp7bV9wHIUl0qaPx UAteGLbcrrA2mxMAd4kFVPypaO6zUN4gGUo372DB4iAWpZqYvaYIAqUg7B9KadiqGNhkQ14oC++F2 RGsD62TYyUJzueX/YIPFSCL2OSrHZq9fJt7K7Vtz6SBNYBmk4v6DcwUj9tyHqMV0vPhGcJAJhqDXx BZgRIyuf9SE3nrU2J5VyFtYJKCLEbx915Ht8TJeap4rKkoSHmSgeeP+MhLkNGnGLBliIAC3rqILTI 9TVaGP6ELT7zFQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Matt Wette's message of "Wed, 18 Oct 2023 08:47:01 -0700") References: <19e4ed14-520c-4eec-9584-8a178733527c@gmail.com> Date: Wed, 18 Oct 2023 17:54:54 +0200 Message-ID: <87wmvk53jl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.83 X-Spam-Score: -6.83 X-Migadu-Queue-Id: 4717A542E1 X-Migadu-Scanner: mx2.migadu.com X-TUID: gL09PF8V5HYY Hi, Matt Wette skribis: > `guix locate guild' fails with attempt to write a readonly sqlite3 databa= se > > mwette@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) =3D 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=E2=80=99s a bug in the file-choosing logic. To be continued=E2=80=A6 Ludo=E2=80=99.