From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#39774: guix incorrectly says "No space left on device" Date: Mon, 24 Feb 2020 22:15:10 -0500 Message-ID: <31D6F2BA-A08C-49C4-AD20-6076036A215C@lepiller.eu> References: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40778) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6aQR-0001DM-Tv for bug-guix@gnu.org; Tue, 25 Feb 2020 08:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6aQQ-0003pR-Go for bug-guix@gnu.org; Tue, 25 Feb 2020 08:39:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6aQQ-0003p3-3D for bug-guix@gnu.org; Tue, 25 Feb 2020 08:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6aQQ-0001UZ-0A for bug-guix@gnu.org; Tue, 25 Feb 2020 08:39:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> 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-mx.org@gnu.org Sender: "bug-Guix" To: Jesse Gibbons , 39774@debbugs.gnu.org Le 24 f=C3=A9vrier 2020 22:01:45 GMT-05:00, Jesse Gibbons a =C3=A9crit : >I have a laptop with two drives=2E A few days ago, when I ran `df -h` it >outputs: >Filesystem Size Used Avail Use% Mounted on >none 16G 0 16G 0% /dev >/dev/sdb1 229G 189G 29G 87% / >/dev/sda1 458G 136G 299G 32% /gnu/store >tmpfs 16G 0 16G 0% /dev/shm >none 16G 64K 16G 1% /run/systemd >none 16G 0 16G 0% /run/user >cgroup 16G 0 16G 0% /sys/fs/cgroup >tmpfs 3=2E2G 16K 3=2E2G 1% /run/user/983 >tmpfs 3=2E2G 60K 3=2E2G 1% /run/user/1001 > >As you can see, /dev/sda1 is the drive mounted on /gnu/store=2E >Everything in the store is written to it, and it has plenty of space >available=2E > >Guix sometimes says there is "No space left on device"=2E This always >happens in particular when I try `guix gc --optimize`, but it sometimes >happens when I call `guix pull` or `guix upgrade`=2E When guix pull or >guix upgrade fails with this message, I can clear up more space by >deleting ~/=2Ecache and emtpying my trash and it works=2E > > >Today I have also seen this happen when I'm trying to upgrade a large >profile=2E It said it could not build anything because there was no more >disk space, even after I cleaned up /dev/sdb1 to 40% use=2E It finally >recognized the empty disk space when I called guix gc and it deleted a >few of the dependencies needed for the upgrades=2E But it didn't take >long to trigger this bug again=2E Here's the new output of `df -h`: > >Filesystem Size Used Avail Use% Mounted on >none 16G 0 16G 0% /dev >/dev/sdb1 229G 86G 131G 40% / >/dev/sda1 458G 182G 253G 42% /gnu/store >tmpfs 16G 0 16G 0% /dev/shm >none 16G 80K 16G 1% /run/systemd >none 16G 0 16G 0% /run/user >cgroup 16G 0 16G 0% /sys/fs/cgroup >tmpfs 3=2E2G 24K 3=2E2G 1% /run/user/983 >tmpfs 3=2E2G 12K 3=2E2G 1% /run/user/1000 >tmpfs 3=2E2G 60K 3=2E2G 1% /run/user/1001 > >Any clues why this happens and what can be done to fix it? Could it be >related to how /dev/sdb1 is 229G large, and the total used space in / >and /gnu/store is more than that? > >-Jesse There could be two explanations: you've run out of inodes or the filesyste= m that was out of space is not the one you think (maybe it was during a bui= ld and your /tmp is a tmpfs?)=2E Try `df -i`=2E