Guix home reconfigure running out of memory

Hey y’all!

I’m running into this issue where running guix home reconfigure keeps running out of memory and exiting. The logs seem to indicate that it’s failing to load several modules (all of them?) and is unable to determine provenance of my system. The very first line indicates there might have been a problem with reading in my channels.scm file. I don’t think I’ve touched this at all since it was auto-generated, but I will paste it below.

Additional context

  • I ran a fresh guix pull immediately prior to this.
  • I ran guix system reconfigure a few days ago without issues (aside from a couple timeouts with the substitute server)
  • I found a couple open issues describing a similar problem that was apparently solved by specifying additional substitute servers. Ran reconfigure again with --substitute-urls='https://ci.guix.trop.in https://bordeaux.guix.gnu.org https://cuirass.genenetwork.org https://substitutes.nonguix.org', but it didn’t seem to make a difference.
  • My config is based on @daviwil’s dotfiles. I stripped out a lot of it in the interest of getting a really minimal setup working that I can iterate on later.
  • I’m not totally convinced this is a hardware limitation issue, but here are my specs:
    Thinkpad T430
    Intel i7-3520M @ 3.6 GHz
    8 GB RAM

Logs

nick@ulysses ~/.config/guix$ RUNNING_GUIX_HOME=1 guix home -L ~/.config/guix reconfigure ~/.config/guix/ns/systems/ulysses.scm

guix home: warning: cannot determine provenance for current system
guix home: warning: failed to load '(channels)':
no code for module (channels)
hint: File `/home/nick/.config/guix/channels.scm' should probably start with:

	(define-module (channels))

guix home: warning: failed to load '(current share guile site #{3.0}# gnu packages crates-database)':
no code for module (current share guile site #{3.0}# gnu packages crates-database)
/home/nick/.config/guix//current/share/guile/site/3.0/gnu/packages/crates-database.scm:32:0: warning: module name (gnu packages crates-database) does not match file name 'current/share/guile/site/3.0/gnu/packages/crates-database.scm'
hint: File
`/home/nick/.config/guix//current/share/guile/site/3.0/gnu/packages/crates-datab
ase.scm' should probably start with:

	(define-module (current share guile site #{3.0}# gnu packages crates-database))

# Proceeds to spit out a ton of these warnings and then...

Killed
nick@ulysses ~/.config/guix/ns/systems$

channels.scm

(list (channel
		(name 'guix)
		(url "https://git.savannah.gnu.org/git/guix.git")
		(branch "master")
		(introduction
			(make-channel-introduction
			"9edb3f66fd807b096b48283debdcddccfea34bad"
			(openpgp-fingerprint
				"BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"))))
		(channel
		(name 'nonguix)
		(url "https://gitlab.com/nonguix/nonguix")
		(branch "master")
		(introduction
			(make-channel-introduction
			"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
			(openpgp-fingerprint
				"2A39 3FFF 68F4 EF7A 3D29  12AF 6F51 20A0 22FB B2D5")))))

Any advice would be much appreciated, thanks!

Hello @nshan651,

just adding --substitute-urls is not not enough. You also need to add a key to authorize the server. You can read on how to do this in the readme of the nonguix channel under the section “Substitutes for nonguix”. It is also described in the guix manual. https://guix.gnu.org/manual/en/html_node/Getting-Substitutes-from-Other-Servers.html