unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53000: How to reclaim space when no space is available?
@ 2022-01-04  4:12 Jeffrey Walton
  2022-01-04  6:56 ` Liliana Marie Prikler
  2022-01-04 10:00 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: Jeffrey Walton @ 2022-01-04  4:12 UTC (permalink / raw)
  To: 53000

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53000: How to reclaim space when no space is available?
  2022-01-04  4:12 bug#53000: How to reclaim space when no space is available? Jeffrey Walton
@ 2022-01-04  6:56 ` Liliana Marie Prikler
  2022-01-04 10:00 ` Mark H Weaver
  1 sibling, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2022-01-04  6:56 UTC (permalink / raw)
  To: noloader, 53000

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53000: How to reclaim space when no space is available?
  2022-01-04  4:12 bug#53000: How to reclaim space when no space is available? Jeffrey Walton
  2022-01-04  6:56 ` Liliana Marie Prikler
@ 2022-01-04 10:00 ` Mark H Weaver
  2022-01-04 17:30   ` Leo Famulari
  1 sibling, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2022-01-04 10:00 UTC (permalink / raw)
  To: noloader, 53000

Jeffrey Walton <noloader@gmail.com> 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 <https://stallmansupport.org>.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53000: How to reclaim space when no space is available?
  2022-01-04 10:00 ` Mark H Weaver
@ 2022-01-04 17:30   ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2022-01-04 17:30 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: noloader, 53000

On Tue, Jan 04, 2022 at 05:00:38AM -0500, Mark H Weaver wrote:
> Jeffrey Walton <noloader@gmail.com> 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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-04 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04  4:12 bug#53000: How to reclaim space when no space is available? Jeffrey Walton
2022-01-04  6:56 ` Liliana Marie Prikler
2022-01-04 10:00 ` Mark H Weaver
2022-01-04 17:30   ` Leo Famulari

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).