From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2L/pAFOAyV40bQAA0tVLHw (envelope-from ) for ; Sat, 23 May 2020 19:58:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iBZlOFKAyV4BKgAA1q6Kng (envelope-from ) for ; Sat, 23 May 2020 19:58:10 +0000 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 CF57D940429 for ; Sat, 23 May 2020 19:58:09 +0000 (UTC) Received: from localhost ([::1]:35118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcaHY-0004iL-QY for larch@yhetil.org; Sat, 23 May 2020 15:58:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcaHS-0004i7-Jx for bug-guix@gnu.org; Sat, 23 May 2020 15:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcaHS-00079N-B7 for bug-guix@gnu.org; Sat, 23 May 2020 15:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcaHS-0001j2-BN for bug-guix@gnu.org; Sat, 23 May 2020 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41484: guix gc fails catastrophically if the disk has no space left Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 23 May 2020 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41484 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41484@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15902638616600 (code B ref -1); Sat, 23 May 2020 19:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2020 19:57:41 +0000 Received: from localhost ([127.0.0.1]:35774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcaH6-0001iM-VH for submit@debbugs.gnu.org; Sat, 23 May 2020 15:57:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:37438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcaH5-0001iF-IW for submit@debbugs.gnu.org; Sat, 23 May 2020 15:57:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcaH5-0004hD-A2 for bug-guix@gnu.org; Sat, 23 May 2020 15:57:39 -0400 Received: from mx1.riseup.net ([198.252.153.129]:54816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcaH3-00076B-Ot for bug-guix@gnu.org; Sat, 23 May 2020 15:57:38 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49TvKD3NbVzFfWF for ; Sat, 23 May 2020 12:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1590263856; bh=Ze7tsUgc15uRofwEVuCy2DVUZM4xDTQLrkdgos0TxFo=; h=Date:From:To:Subject:In-Reply-To:References:From; b=g/KaDFpsF5TOnUjodbe1RAwWGGJwo5pmYguQUAJRt2UfO0d4iNnv9dgdgsu3nUpAE DOnaGmoZtVyLoMYt0cOVWKjzX8wV46y2qNSiyK+EVidZ23d2uOR5sxeCT8Mp1wwjqh C9cpW1fNWkWmmjpvHVBxovl25CrFMFzi1ODOTlG8= X-Riseup-User-ID: 609C49D477E72A8B38F11DBAD820BD006876004DCCD57A0F4AD0192EE50C0555 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49TvKD0DNbzJmhc for ; Sat, 23 May 2020 12:57:35 -0700 (PDT) Date: Sat, 23 May 2020 21:57:33 +0200 From: raingloom Message-ID: <20200523215733.2ed2f0de@riseup.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/23 15:57:36 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=g/KaDFps; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: EvBcEP5gWy7k On Sat, 23 May 2020 16:49:02 +0200 Stefan wrote: > Hi! >=20 > While trying to build guix, my disk ran out of space. >=20 > building > /gnu/store/w5l7acwbfvn0n8zj2v9by4j3jwbiimj9-guix-1.1.0-4.bdc801e.drv... > 100% > [########################################################################= #]note: > build failure may have been caused by lack of free disk space builder > for > `/gnu/store/w5l7acwbfvn0n8zj2v9by4j3jwbiimj9-guix-1.1.0-4.bdc801e.drv' > failed with exit code 1 build of > /gnu/store/w5l7acwbfvn0n8zj2v9by4j3jwbiimj9-guix-1.1.0-4.bdc801e.drv > failed View build log at > '/var/log/guix/drvs/w5/l7acwbfvn0n8zj2v9by4j3jwbiimj9-guix-1.1.0-4.bdc801= e.drv.bz2'. > guix system: error: build of > `/gnu/store/w5l7acwbfvn0n8zj2v9by4j3jwbiimj9-guix-1.1.0-4.bdc801e.drv' > failed >=20 > stefan@guix ~$ df -h / > Dateisystem Gr=C3=B6=C3=9Fe Benutzt= Verf. > Verw% Eingeh=C3=A4ngt auf > :/volume5/RaspberryPi/Betriebssysteme/guix-system 1,4T 1,4T 0 > 100% / >=20 > OK, well, there=E2=80=99s certainly a lot of garbage to collect. Due to b= ad > experiences in the past with the same situation, I first try to > collect only a little garbage. >=20 > stefan@guix ~$ guix gc -F 100M > guix gc: 100 MiB werden freigegeben > finding garbage collector roots... > note: can't create trash directory: creating directory > `/gnu/store/trash': No space left on device deleting garbage... > [0%] deleting > '/gnu/store/g30aknl5yxk9jbpx2w7r5d0ak6xa5dl2-grub.cfg.lock' [0%] > deleting > '/gnu/store/gidc7jrgbnvfm38qx4sc012kn9llgsvz-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04-collection.lock' > [0%] deleting > '/gnu/store/9cpj3ir8fnsg5fiqs3x8alai713xzfz0-grub-keymap.de.lock' > [0%] deleting > '/gnu/store/z08s3kwlnpqq6aa1v6ydni5qp2k7gkkb-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04' > [0%] deleting > '/gnu/store/wv7iwd66q6n5775qa4hgaq9j9f2vyvl4-guix-1.1.0-4.bdc801e.lock' > [0%] deleting > '/gnu/store/pab2ylsvas12824qw6j8q2h1qm3gh4x6-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04-union.lock' > [0%] deleting > '/gnu/store/3ldyga22s6ym9g2pc9ycjwdwqb4i41v2-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04.lock' > [0%] deleting > '/gnu/store/nfxgqhjyzwngiadn0l180hsbfnw3h4zy-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04-collection.lock' > [0%] deleting > '/gnu/store/pab2ylsvas12824qw6j8q2h1qm3gh4x6-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04-union' > [0%] deleting > '/gnu/store/dahbiixsbi1xhjiim9phl1vginm83bbm-grub.cfg.lock' [0%] > deleting > '/gnu/store/61mwka1h77kkhylcs9jj4ij167qgfj39-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04.lock' > [0%] deleting > '/gnu/store/q829h36vnwhbdlnzkgdrx2b51kp2mvdv-grub.cfg.lock' [0%] > deleting '/gnu/store/ragpi42x39sf5qwcmcmdn751fp4jfhmv-grub.cfg.lock' > [0%] deleting > '/gnu/store/ncdsjfl245k6r7zym6w4sr9fyxrwhb38-grub.cfg.lock' [0%] > deleting > '/gnu/store/z08s3kwlnpqq6aa1v6ydni5qp2k7gkkb-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04.lock' > [0%] deleting > '/gnu/store/gidc7jrgbnvfm38qx4sc012kn9llgsvz-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04-collection' > [0%] deleting > '/gnu/store/61mwka1h77kkhylcs9jj4ij167qgfj39-package-collection-grub-efi-= raspberrypi-firmware-u-boot-rpi-3-2.04' > [0%] deleting > '/gnu/store/hmy4ni005digrilzjf93wr9gaj5cq536-computed-files.lock' > [0%] deleting > '/gnu/store/hmy4ni005digrilzjf93wr9gaj5cq536-computed-files' error > (ignored): aborting transaction: cannot rollback - no transaction is > active guix gc: error: committing transaction: disk I/O error > stefan@guix ~$=20 >=20 > And that=E2=80=99s it. Repeating the guix gc command now results in this > immediate error: >=20 > stefan@guix ~$ guix gc -F 100M > warning: SQLite database is busy (SQLITE_PROTOCOL) > guix gc: error: setting synchronous mode: locking protocol > stefan@guix ~$ guix gc -F 100M > warning: SQLite database is busy (SQLITE_PROTOCOL) > guix gc: error: setting synchronous mode: locking protocol >=20 > A reboot is needed to solve this SQLite error. But retrying all this > leads to the same situation again and again. It is kind of a deadlock. >=20 > Well, as my guix system boots from an NFS share, in the past I solved > this by removing other stuff =E2=80=93 not related to guix =E2=80=93 from= the same > disk. But right now there isn't unrelated stuff left to be deleted.=20 >=20 > I intend to remove the listed /gnu/store/=E2=80=A6 files by hand from the= NFS > server side (which is much easier than removing the read-only > bind-mount.) Is this save at least? >=20 > This is all on a Raspberry Pi 3b aarch64 machine, if it matters. >=20 >=20 > Bye >=20 > Stefan >=20 >=20 >=20 >=20 Try deleting /var/log. That's what I did on my tiny Pentium II desktop with 4 gigs of HDD space.