From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aPR9AgmAj2XQzQAAkFu2QA (envelope-from ) for ; Sat, 30 Dec 2023 03:27:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +Mo2OAiAj2UPewEAe85BDQ (envelope-from ) for ; Sat, 30 Dec 2023 03:27:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=runbox.com header.s=selector2 header.b=FcJdNncx; 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=1703903240; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=J0NewfP7mBf4JgvF0Yu/fK8Srtsr5AyI7ed33PnIqE4=; b=NqiJY5e7yjba7P1eeSmlTbn2PKQXl7njOFfy/YVhqdrAY7P0OBXWCpEuoXCEtG5feVCNam SIENu85vlCJmiUvwaNXr3JbX9uJVA85EhPAdzs1pXJZxj4XzggQsJLA84sSvFatR9GwoLk MQ11aoxhNYHICV3veS3LNGkaXTckpheFh2KCKcCgvPGoDztDeM7gcLcvHD67JsSrOi5Cd2 XqI7mw1yIgpIPdhPyj652pOmBDtc60xdvLqbI/VJAQXtkRspg6lmAIGkLEkbS+q1s5rlfi CJs0r5tunrCITzYuZlGmRPF+jLajS6rzd0e+PPnqOUgV8ghkudCNNZOIho4yXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=runbox.com header.s=selector2 header.b=FcJdNncx; 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=1703903240; a=rsa-sha256; cv=none; b=uqMTPiK0oadhdbJ6bk7RNFboDvbXhUskBMgs5YepJiKgNHEIYVfv0+2tiZU7UlO23/CCoj 84i6oKCAUPXpaUS83yMWMpoOLWklFTZ7huaDY9RlrYuFt7I/JyKMIdtRYhBRGC9lQm7KQS r5xCaTnQItfjbBUyaVlHem+LW3AFtt/1BLYYnzZPxDnwQFjErzOSI1RZn9SAu/NQJ9yTKM QuXhCXu+R10YfxfnGnWh1Xv27fzsoO6D5SbTUX6KUr3iqwtzuZ7/aFazyD7PVBXd8WbOwS ptSok8bGxFYAf0J+kGSnWkJKRbedzMyYjchvq59EzGLYzf3PfRD+g27wU+gOlw== 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 9761961F8B for ; Sat, 30 Dec 2023 03:27:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJP44-00023g-AV; Fri, 29 Dec 2023 21:27:04 -0500 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 1rJP41-00023F-Tg for bug-guix@gnu.org; Fri, 29 Dec 2023 21:27:02 -0500 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 1rJP41-0005UU-M0 for bug-guix@gnu.org; Fri, 29 Dec 2023 21:27:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJP41-0007U5-S6 for bug-guix@gnu.org; Fri, 29 Dec 2023 21:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36687: guix gc: error: executing SQLite statement: database disk image is malformed References: <87v9w2ctpm.fsf@gmail.com> In-Reply-To: <87v9w2ctpm.fsf@gmail.com> Resent-From: pkill9 Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Dec 2023 02:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36687 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36687@debbugs.gnu.org Received: via spool by 36687-submit@debbugs.gnu.org id=B36687.170390317328713 (code B ref 36687); Sat, 30 Dec 2023 02:27:01 +0000 Received: (at 36687) by debbugs.gnu.org; 30 Dec 2023 02:26:13 +0000 Received: from localhost ([127.0.0.1]:42730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJP3E-0007T3-Jy for submit@debbugs.gnu.org; Fri, 29 Dec 2023 21:26:12 -0500 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:33760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJP3C-0007Sh-30 for 36687@debbugs.gnu.org; Fri, 29 Dec 2023 21:26:11 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rJP33-005mfc-2R for 36687@debbugs.gnu.org; Sat, 30 Dec 2023 03:26:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Type:MIME-Version:Message-Id:To:Subject:From:Date; bh=J0NewfP7mBf4JgvF0Yu/fK8Srtsr5AyI7ed33PnIqE4=; b=FcJdNncx3r31bmzXAENUl07Kt JBzAeX3K0KlD1PGZ4PfDGBS+q9difxtalx6T/Gaw/TbGHkUxbJ1Pb9mriUWbAzjCPDb8RUD81GqXK huU/9yizslgesvIRXKktfoKMwhehA7Vfh0T9Lu7mfciFUMnEl2GQPC9WEaAkPsUHam3c7gb7Dl7qQ vyrr7gR9Au1HMhKoe4c+SZHExDT1WVBLHMexEERMAjC1/9GZwzGtqUZb840NiGZ9zLqudkArtp74p e30rZqVYStxnVQ2kklYQdzLQphuFliqJIUupg+5yOK4qZuIzO0XKSl2mTR8iT6MDJBMnwPVVjVTwT frxoecZCw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rJP32-0002wY-Jv for 36687@debbugs.gnu.org; Sat, 30 Dec 2023 03:26:00 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (780724)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rJP2y-007CmA-Dp for 36687@debbugs.gnu.org; Sat, 30 Dec 2023 03:25:56 +0100 Date: Sat, 30 Dec 2023 02:25:49 +0000 Message-Id: <13KG6S.9JVA2Q8FX3TN@runbox.com> X-Mailer: geary/44.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-fadujGU4cQCY/Q00yZIS" 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: , Reply-to: pkill9 From: pkill9 via Bug reports for GNU Guix 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-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.71 X-Spam-Score: -6.71 X-Migadu-Queue-Id: 9761961F8B X-TUID: KH5sNnmmIPCU --=-fadujGU4cQCY/Q00yZIS Content-Type: text/plain; charset=us-ascii; format=flowed Hi, I fixed this issue using sqlite3's built-in recover command: sudo mv /var/guix/db/db.sqlite /var/guix/db/db.sqlite.bak sqlite3 /var/guix/db/db.sqlite.bak ".recover" | sudo sqlite3 /var/guix/db/db.sqlite Solution was found at --=-fadujGU4cQCY/Q00yZIS Content-Type: text/html; charset=us-ascii
Hi, I fixed this issue using sqlite3's built-in recover command:

sudo mv /var/guix/db/db.sqlite /var/guix/db/db.sqlite.bak
sqlite3 /var/guix/db/db.sqlite.bak ".recover" | sudo sqlite3 /var/guix/db/db.sqlite

--=-fadujGU4cQCY/Q00yZIS--