all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pkill9 via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 36687@debbugs.gnu.org
Subject: bug#36687: guix gc: error: executing SQLite statement: database disk image is malformed
Date: Sat, 30 Dec 2023 02:25:49 +0000	[thread overview]
Message-ID: <13KG6S.9JVA2Q8FX3TN@runbox.com> (raw)
In-Reply-To: <87v9w2ctpm.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

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 
<https://stackoverflow.com/questions/18259692/how-to-recover-a-corrupt-sqlite3-database/57872238#57872238>


[-- Attachment #2: Type: text/html, Size: 681 bytes --]

      parent reply	other threads:[~2023-12-30  2:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-16  7:41 bug#36687: guix gc: error: executing SQLite statement: database disk image is malformed Chris Marusich
2019-07-16 12:44 ` Ricardo Wurmus
2019-07-19  5:30   ` Chris Marusich
2019-07-19  8:04     ` Ricardo Wurmus
2019-08-03  9:11       ` Chris Marusich
2019-08-03 13:06         ` Mike Gerwitz
2019-11-16 23:30     ` Chris Marusich
2023-12-30  2:25 ` pkill9 via Bug reports for GNU Guix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13KG6S.9JVA2Q8FX3TN@runbox.com \
    --to=bug-guix@gnu.org \
    --cc=36687@debbugs.gnu.org \
    --cc=pkill9@runbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.