From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: bug#33862: "guix gc" failing to complete Date: Sat, 06 Apr 2019 11:44:06 +0100 (BST) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCiot-0001g2-C7 for bug-guix@gnu.org; Sat, 06 Apr 2019 06:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCior-0002DK-BH for bug-guix@gnu.org; Sat, 06 Apr 2019 06:45:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33063) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCiop-0002CL-1F for bug-guix@gnu.org; Sat, 06 Apr 2019 06:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hCion-0000Jv-Oi for bug-guix@gnu.org; Sat, 06 Apr 2019 06:45:02 -0400 In-Reply-To: Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 33862 <33862@debbugs.gnu.org> I'm also getting this problem. `guix gc --verify` doesn't fix it for me. Here is the output for each of the commands you (Danny Milosavljevic) sugge= sted: $ cp /var/guix/db/db.sqlite /tmp/ $ sqlite3 /tmp/db.sqlite sqlite> .tables DerivationOutputs FailedPaths Refs ValidPaths=20=20= =20=20=20=20=20 sqlite> .schema Refs CREATE TABLE Refs ( referrer integer not null, reference integer not null, primary key (referrer, reference), foreign key (referrer) references ValidPaths(id) on delete cascade, foreign key (reference) references ValidPaths(id) on delete restrict ); CREATE INDEX IndexReferrer on Refs(referrer); CREATE INDEX IndexReference on Refs(reference); sqlite> .schema DerivationOutputs CREATE TABLE DerivationOutputs ( drv integer not null, id text not null, -- symbolic output id, usually "out" path text not null, primary key (drv, id), foreign key (drv) references ValidPaths(id) on delete cascade ); CREATE INDEX IndexDerivationOutputs on DerivationOutputs(path); sqlite> .schema FailedPaths CREATE TABLE FailedPaths ( path text primary key not null, time integer not null ); sqlite> .schema ValidPaths CREATE TABLE ValidPaths ( id integer primary key autoincrement not null, path text unique not null, hash text not null, registrationTime integer not null, deriver text, narSize integer ); CREATE TRIGGER DeleteSelfRefs before delete on ValidPaths begin delete from Refs where referrer =3D old.id and reference =3D old.id; end;=