From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 03 23:12:30 2022 Received: (at submit) by debbugs.gnu.org; 4 Jan 2022 04:12:30 +0000 Received: from localhost ([127.0.0.1]:36704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4bBW-0004wn-IS for submit@debbugs.gnu.org; Mon, 03 Jan 2022 23:12:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:55214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4bBS-0004wa-Np for submit@debbugs.gnu.org; Mon, 03 Jan 2022 23:12:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4bBS-00018c-Jm for bug-guix@gnu.org; Mon, 03 Jan 2022 23:12:26 -0500 Received: from [2607:f8b0:4864:20::102d] (port=35638 helo=mail-pj1-x102d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4bBR-0002bh-9j for bug-guix@gnu.org; Mon, 03 Jan 2022 23:12:26 -0500 Received: by mail-pj1-x102d.google.com with SMTP id r16-20020a17090a0ad000b001b276aa3aabso26344297pje.0 for ; Mon, 03 Jan 2022 20:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:reply-to:from:date:message-id:subject:to; bh=a6Yjt173BUu4TUuwYyoRN2OIUNuxCpd+Nusxyt17K0Y=; b=niwVcd6hhS8Zx/HAio1/+98acx9A+nD6MKn9Yr4VKhBUJ0/mPc5rdYvul4YPmrNd0o vKsuLq4H8w0t1joRB4WfPGAHjhiLV5fIFWtqxgkCjcqmr5/cxEMM0NPo2iHpBZuM1aVB AhziLCorGOJ1c7LvSmii89tvlB4cLfNanZR1iSF9InEErFje42GeQCT7i3fZk5UxMqFE YEq7uiArYTMpTsBlgAOGlmVsYzu7T6HIm00SF8PoeP5FC0yToaCoVHIyJO69PhhGCVGI X7m5K4RcTvOsojO0iuG/Hhl+flv1jQdS2EuOcuIyP4ZIEiHn0JOjwGl6l2bL8eGgs3YF aXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=a6Yjt173BUu4TUuwYyoRN2OIUNuxCpd+Nusxyt17K0Y=; b=hVf2ylbdjtfUNYxT8i1h/CRsXMmSn9LTzgdjKrFIY0loebJ4IPlhXBVLOfteD/d061 xIlariDu8F6EykoqTKIx7tg8JbzuaoefNOAS9JF0/VyldoKV3SAadtREX9Nu8gAAHFye EKlLc9XKWZL0KKKZSJfSdpC3audQurOCupHiejG1E0arNj1VMissLyCeyg77xRA4a8qI z8xzGjUWjSUjeipXjYSIQKCGngsK1IalwU+vKA3cv/S+QNY+bmYR6d3nPdKeZQhUTu21 PtXZkOMWpD8iuw9G5ayhMOasIS6/JoPPCW3xoHVGlUWSWsj13qZZ51SXhX1rffsR1xFl NXBA== X-Gm-Message-State: AOAM530xERT1XrjGNL94GZnz7LfCDoCslG0kjYA8J2YooYNQPN7p8Tom cObUSRb8VBleYk3nXLxQb+SfPKY+Iiu9h0HmDjeLwDKD6GoB+Q== X-Google-Smtp-Source: ABdhPJxHK7CAk2j4s7BIVhDeEHmyofeSvhCxqmz0GukepBCVz+smIm+pXGooBVKDozfSFXmw2EqnmeNOhSQNNfr1Qp0= X-Received: by 2002:a17:902:6e01:b0:149:8800:58b7 with SMTP id u1-20020a1709026e0100b00149880058b7mr33287081plk.47.1641269543138; Mon, 03 Jan 2022 20:12:23 -0800 (PST) MIME-Version: 1.0 From: Jeffrey Walton Date: Mon, 3 Jan 2022 23:12:12 -0500 Message-ID: Subject: How to reclaim space when no space is available? To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=noloader@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: noloader@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi Everyone, I've run out of disk space. I'm trying to run 'guix gc' but it seems to need disk space to perform the garbage collection. $ sudo guix gc finding garbage collector roots... note: can't create trash directory: creating directory `/gnu/store/trash': No space left on device deleting garbage... ... error (ignored): aborting transaction: cannot rollback - no transaction is active guix gc: error: committing transaction: database or disk is full Does anyone know how to delete all old packages and artifacts without the need for some free disk space? I don't need old stuff. I use the VM to test builds and run self tests of some packages I am responsible for. I don't need the extra bells and whistles. Jeff From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 04 01:56:15 2022 Received: (at 53000) by debbugs.gnu.org; 4 Jan 2022 06:56:15 +0000 Received: from localhost ([127.0.0.1]:36865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4djz-0001BW-HL for submit@debbugs.gnu.org; Tue, 04 Jan 2022 01:56:15 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:34736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4djv-0001BG-MI for 53000@debbugs.gnu.org; Tue, 04 Jan 2022 01:56:14 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4JSk0g2c0Qz3xYJ; Tue, 4 Jan 2022 07:56:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1641279363; bh=Qc53VH/lFeC4O3AcwhF0T9/W1lllNVVobrjSSFxQKkA=; h=Subject:From:To:Date:In-Reply-To:References; b=n3hi2xVQZSNZpofX7H7vTK5tkYfyyOEbU3tT9NC8hqjeBfu9oYLYu7OfMHVaqiBBK dtT2otHqBEfmqnl2IgrCHgGEnXccBgOIXHsD2LaMQNb+IyQMLgSwlUR5sp53jZcLRI U1KrGIndD3Mns9jzVdfMJlJVWHaEu7uhbTW9EQT4= Message-ID: <20431b5808c892bcb2fa27b3091d489741b7e369.camel@ist.tugraz.at> Subject: Re: How to reclaim space when no space is available? From: Liliana Marie Prikler To: noloader@gmail.com, 53000@debbugs.gnu.org Date: Tue, 04 Jan 2022 07:56:01 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53000 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Am Montag, dem 03.01.2022 um 23:12 -0500 schrieb Jeffrey Walton: > Hi Everyone, > > I've run out of disk space. I'm trying to run 'guix gc' but it seems > to need disk space to perform the garbage collection. > > $ sudo guix gc I don't think the manuals specify using `sudo guix gc'. Last time I checked a normal `guix gc' does the same, as the logic is in either way handed off to the daemon running as root already. > finding garbage collector roots... > note: can't create trash directory: creating directory > `/gnu/store/trash': No space left on device > deleting garbage... > ... > error (ignored): aborting transaction: cannot rollback - no > transaction is active guix gc: error: committing transaction: > database or disk is full > > Does anyone know how to delete all old packages and artifacts without > the need for some free disk space? It's a known bug that you currently can't free space without having space. (You can try searching for similar bug IDs or you can wait for someone else to link you to them.) The "fix" would ironically be to sacrifice even more space to Guix by avoiding store deduplication, because then store items can easily be deleted. You could try manually freeing up space, but as someone who already messed with GC internals I'd heavily suggest you avoid doing that. Unless you don't mind stuffing kittens in a blender, that is. > I don't need old stuff. I use the VM to test builds and run self > tests of some packages I am responsible for. I don't need the extra > bells and whistles. Those extra bells and whistles are the entire point of functional package management. You get backups and roll-backs for free. If you think VMs or Docker containers are sufficient for testing purposes while you happily accept Debian overwriting files in-place, that is a position you can hold, but it is not the Nix/Guix way. Cheers From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 04 05:01:28 2022 Received: (at 53000) by debbugs.gnu.org; 4 Jan 2022 10:01:28 +0000 Received: from localhost ([127.0.0.1]:37033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4gdE-0001lU-L1 for submit@debbugs.gnu.org; Tue, 04 Jan 2022 05:01:28 -0500 Received: from world.peace.net ([64.112.178.59]:48948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4gdD-0001lG-4i for 53000@debbugs.gnu.org; Tue, 04 Jan 2022 05:01:28 -0500 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4gd6-0005bp-FR; Tue, 04 Jan 2022 05:01:20 -0500 From: Mark H Weaver To: noloader@gmail.com, 53000@debbugs.gnu.org Subject: Re: bug#53000: How to reclaim space when no space is available? In-Reply-To: References: Date: Tue, 04 Jan 2022 05:00:38 -0500 Message-ID: <878rvvbz1a.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53000 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jeffrey Walton writes: > Does anyone know how to delete all old packages and artifacts without > the need for some free disk space? Are there are any nonessential files on that partition, outside of the store, that could be temporarily moved elsewhere, or deleted? Perhaps old logs from /var/log, e.g. old build logs from /var/log/guix/drvs? Mark -- Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about . From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 04 12:31:02 2022 Received: (at 53000) by debbugs.gnu.org; 4 Jan 2022 17:31:02 +0000 Received: from localhost ([127.0.0.1]:38591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4neI-0001zd-0j for submit@debbugs.gnu.org; Tue, 04 Jan 2022 12:31:02 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4neF-0001zK-Kz for 53000@debbugs.gnu.org; Tue, 04 Jan 2022 12:31:00 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8E1C85C02F5; Tue, 4 Jan 2022 12:30:54 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 04 Jan 2022 12:30:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=u6mcXzjG9hwRIs6eXg86lFQi 871Q5q7uLrFGpQi419M=; b=A2T1ruTa0NWaNniKmjak7Uu8ETe8bced3OHiML5H 2YnZcSPKxI4oUoff/F4GfwiFbwjBgitsHge/f1BKDNKDsaToYcD7ESfMcgEBVxdM f6U7KBAa3G7f4SSHWwQlLnYJSv7qdM5z86sI4lxK8cpCTlHiN58F1UhHoDvQYp9w wMo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=u6mcXz jG9hwRIs6eXg86lFQi871Q5q7uLrFGpQi419M=; b=JvJ4xpgwYJN58NweK/s+VJ /4OXFT76iJfaGU3pXURghpc7vWLYdzSK8YJs0F0VzMmo3RcXtgFk1p2WtnJAgaJI KDRomZVBAUQRxpCEXtx+YtsanA6kTJPVagYLtSEI9hIzmHtDL8Lxb/RaEcn6jCPj kyH5mVzJ+JURJUyryrGltX2vFoEMd6h1BWJBoyE6ZjwCALFNPMHPyv085pVBAet1 u5J63PQwabkggL9Ri06fGNGfKsigvBqT6YptOZKWS7WQLInvMBuy00/RWqW5UUu3 KcujLfq71h/z2L0c7nsEcslg78Jtk4/9omjQasHKL9tc9NZMQr1/oirZMNIQ8B9g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudeffedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeukeektdffvddtudegjeegtdevhf eufeeivdejiedtieegtdevjedvjeehffevgfenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jan 2022 12:30:54 -0500 (EST) Date: Tue, 4 Jan 2022 12:30:52 -0500 From: Leo Famulari To: Mark H Weaver Subject: Re: bug#53000: How to reclaim space when no space is available? Message-ID: References: <878rvvbz1a.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878rvvbz1a.fsf@netris.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53000 Cc: noloader@gmail.com, 53000@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Jan 04, 2022 at 05:00:38AM -0500, Mark H Weaver wrote: > Jeffrey Walton writes: > > Does anyone know how to delete all old packages and artifacts without > > the need for some free disk space? > > Are there are any nonessential files on that partition, outside of the > store, that could be temporarily moved elsewhere, or deleted? Perhaps > old logs from /var/log, e.g. old build logs from /var/log/guix/drvs? There may also be '/var/cache' and '/root/.cache', which should be safe to delete. The latter will definitely share a partition with the store, and the former will probably share the partition.