unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24135: guix system reconfigure fails on successful build
@ 2016-08-02 18:14 myglc2
  2016-08-02 22:12 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: myglc2 @ 2016-08-02 18:14 UTC (permalink / raw)
  To: 24135

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

An ongoing attempt to configure RAID. It builds OK but fails on
reconfigure.

Yesterday the same config built and configured but failed to boot:

bug#24129: RAID config boot hangs at [...] Clocksource: Switched to clocksource tsc

Guix version info appears at the bottom of the log.


[-- Attachment #2: system40.log --]
[-- Type: application/octet-stream, Size: 2671 bytes --]

root@g1 ~# guix system build system40.scm
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/0qfm6y1q8wkcam051jxwvmkrksbkf7s7-system.drv
   /gnu/store/b6lbym312diipfhq0bpdcy95w8zg0ll6-activate-service.drv
   /gnu/store/fnzv64clqxcr4q80wqfdpxbqjgy12z3i-activate.drv
   /gnu/store/a3kl6dcahqs1p61ndf1wwxnpix04ary1-boot.drv
   /gnu/store/03bnp83fh7wwc3nvlngvprmlg9afrgxc-etc.drv
/gnu/store/qfq7kzqg9xcw1j5nvgs6wif2ymydm2n7-system
root@g1 ~# guix system reconfigure system40.scm
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following derivation will be built:
   /gnu/store/g5mj74zvdbq074qvmddfdqikxvz6739w-grub.cfg.drv
/gnu/store/qfq7kzqg9xcw1j5nvgs6wif2ymydm2n7-system
/gnu/store/qi3r489mq7hchzi87avp89n08gv4g1yk-grub.cfg
/gnu/store/zgm8s5z5y9dh0g36jqxh5i30js93irk5-grub-2.02beta3
activating system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/3vbg3i84k9z57kj5xwz91h08b59mh9yb-etc...
usermod: no changes
usermod: no changes
usermod: no changes
making '/gnu/store/qfq7kzqg9xcw1j5nvgs6wif2ymydm2n7-system' the current system...
guix system: loading new services: device-mapping-/dev/md0 file-system-/mnt/md0...
shepherd: Evaluating user expression (register-services (primitive-load "/gn...") #).
Backtrace:
In ice-9/boot-9.scm:
 157: 9 [catch #t #<catch-closure 2636ba0> ...]
In unknown file:
   ?: 8 [apply-smob/1 #<catch-closure 2636ba0>]
In ice-9/boot-9.scm:
  63: 7 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 6 [eval # #]
In ice-9/boot-9.scm:
2401: 5 [save-module-excursion #<procedure 2653940 at ice-9/boot-9.scm:4045:3 ()>]
4050: 4 [#<procedure 2653940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 3 [%start-stack load-stack ...]
1729: 2 [#<procedure 266aea0 ()>]
In unknown file:
   ?: 1 [primitive-load "/gnu/store/5ibkqq9414k3l762yi4ps63i9yjr7vlz-guix-0.10.0-1.97c8/bin/.guix-real"]
In guix/ui.scm:
1209: 0 [run-guix-command system "reconfigure" "system40.scm"]

guix/ui.scm:1209:6: In procedure run-guix-command:
guix/ui.scm:1209:6: Throw to key `srfi-34' with args `(#<condition &action-exception-error [service: device-mapping-/dev/md0 action: start key: unbound-variable args: (#f "Unbound variable: ~S" (every) #f)] 8a9b640>)'.
root@g1 ~# stat ~/.config/guix/latest | grep File:
  File: '/root/.config/guix/latest' -> '/home/g1/src/guix'
root@g1 ~# cd /home/g1/src/guix && git log -n 1 --oneline
0a4ebe0 gnu: Add Elixir.
root@g1 /home/g1/src/guix# cd /home/g1/src/guix && git describe
v0.10.0-2110-g0a4ebe0
root@g1 /home/g1/src/guix# exit
exit

Process shell finished

[-- Attachment #3: system40.scm --]
[-- Type: application/octet-stream, Size: 2282 bytes --]

;;; g1 system config
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 base
 admin
 disk
 linux                 ; mdadm
 package-management    ; guix
 screen
 ghostscript           ; gs-fonts
 fonts                 ; font-dejavu font-gnu-freefont-ttf
 curl                  ; lpaste
 ssh
 xorg certs
 rsync
 wget
 version-control       ; git
 aspell
 emacs
 cups
 graphviz
 qemu
 )
(define md0
  (mapped-device
   (source (list "/dev/sdb1" "/dev/sdc1"))
   (target "/dev/md0")
   (type raid-device-mapping)))
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (device "/dev/sda")))
  (mapped-devices (list md0))
  ;; Add a kernel module for RAID-1.
  (initrd (lambda (file-systems . rest)
            (apply base-initrd file-systems
                   #:extra-modules '("raid1")
		   rest)))
  (file-systems (cons*
		 (file-system
		   (device "ssd-root")
		   (title 'label)
		   (mount-point "/")
		   (type "ext4"))
		 (file-system
		   (title 'device)
		   (device "/dev/md0")
		   (dependencies (list md0))
		   (mount-point "/mnt/md0")
		   (create-mount-point? #t)
		   (type "ext4"))
		 %base-file-systems))
  (users (cons* (user-account
		 (name "glc")
		 (group "users")
		 (supplementary-groups '("wheel"))
		 (home-directory "/home/glc"))
		(user-account
		 (name "g1")
		 (group "users")
		 (supplementary-groups '("wheel" "kvm"))
		 (home-directory "/home/g1"))
		(user-account
		 (name "g1x")
		 (group "users")
		 (supplementary-groups '("wheel" "kvm"))
		 (home-directory "/home/g1x"))
		(user-account
		 (name "gx")
		 (group "users")
		 (supplementary-groups '("wheel" "kvm"))
		 (home-directory "/home/gx"))
		%base-user-accounts))
  (packages
   (cons*
    glibc-utf8-locales
    parted
    mdadm
    qemu
    guix
    screen
    openssh nss-certs xauth
    rsync wget
    curl                                                     ;lpaste
    git git-manpages
    gs-fonts font-dejavu font-gnu-freefont-ttf
    aspell
    emacs
    flycheck paredit magit
    emacs-zenburn-theme emacs-markdown-mode emacs-web-mode
    cups
    graphviz
    %base-packages))
  (services (cons* (dhcp-client-service)
		   (lsh-service #:port-number 22)
		   %base-services)))

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

* bug#24135: guix system reconfigure fails on successful build
  2016-08-02 18:14 bug#24135: guix system reconfigure fails on successful build myglc2
@ 2016-08-02 22:12 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-08-02 22:12 UTC (permalink / raw)
  To: myglc2; +Cc: 24135-done

Hi again!  :-)

myglc2 <myglc2@gmail.com> skribis:

> root@g1 ~# guix system reconfigure system40.scm
> substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivation will be built:
>    /gnu/store/g5mj74zvdbq074qvmddfdqikxvz6739w-grub.cfg.drv
> /gnu/store/qfq7kzqg9xcw1j5nvgs6wif2ymydm2n7-system
> /gnu/store/qi3r489mq7hchzi87avp89n08gv4g1yk-grub.cfg
> /gnu/store/zgm8s5z5y9dh0g36jqxh5i30js93irk5-grub-2.02beta3
> activating system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/3vbg3i84k9z57kj5xwz91h08b59mh9yb-etc...
> usermod: no changes
> usermod: no changes
> usermod: no changes
> making '/gnu/store/qfq7kzqg9xcw1j5nvgs6wif2ymydm2n7-system' the current system...
> guix system: loading new services: device-mapping-/dev/md0 file-system-/mnt/md0...
> shepherd: Evaluating user expression (register-services (primitive-load "/gn...") #).
> Backtrace:
> In ice-9/boot-9.scm:
>  157: 9 [catch #t #<catch-closure 2636ba0> ...]
> In unknown file:
>    ?: 8 [apply-smob/1 #<catch-closure 2636ba0>]
> In ice-9/boot-9.scm:
>   63: 7 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
>  432: 6 [eval # #]
> In ice-9/boot-9.scm:
> 2401: 5 [save-module-excursion #<procedure 2653940 at ice-9/boot-9.scm:4045:3 ()>]
> 4050: 4 [#<procedure 2653940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 3 [%start-stack load-stack ...]
> 1729: 2 [#<procedure 266aea0 ()>]
> In unknown file:
>    ?: 1 [primitive-load "/gnu/store/5ibkqq9414k3l762yi4ps63i9yjr7vlz-guix-0.10.0-1.97c8/bin/.guix-real"]
> In guix/ui.scm:
> 1209: 0 [run-guix-command system "reconfigure" "system40.scm"]

The backtrace shouldn’t be here.  Fixed by
aa1e73a996ad170fecac848f203528aeb3d2173e.

> guix/ui.scm:1209:6: In procedure run-guix-command:
> guix/ui.scm:1209:6: Throw to key `srfi-34' with args `(#<condition &action-exception-error [service: device-mapping-/dev/md0 action: start key: unbound-variable args: (#f "Unbound variable: ~S" (every) #f)] 8a9b640>)'.

Fixed in 10618627bfe210f4ec84ab3018f12840704a11e0.

For the record, non-top-level forms work with compiled code, but note
with eval’d code, which is what happens here (the Shepherd ’eval’ action
uses ‘eval’, which gives it an (ice-9 eval) procedure):

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (define u (make-fresh-user-module))
scheme@(guile-user)> u
$6 = #<module (#{ g7828}#) 4d13c60>
scheme@(guile-user)> (eval '(lambda () (use-modules(srfi srfi-1)) every) u)
$7 = #<procedure 56bc270 at ice-9/eval.scm:416:20 ()>
scheme@(guile-user)> ($7)
ERROR: In procedure memoize-variable-access!:
ERROR: Unbound variable: every

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,q
scheme@(guile-user)> (eval '(lambda () (current-module)) u)
$8 = #<procedure 481d060 at ice-9/eval.scm:416:20 ()>
scheme@(guile-user)> ($8)
$9 = #<directory (guile-user) 1f5ebd0>
scheme@(guile-user)> (eval '(lambda () (eval-when (expand load eval) (current-module))) u)
$10 = #<procedure 56b0e40 at ice-9/eval.scm:416:20 ()>
scheme@(guile-user)> ($10)
$11 = #<directory (guile-user) 1f5ebd0>
--8<---------------cut here---------------end--------------->8---

Thank you for finding and reporting all these bugs!

Ludo’.

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

end of thread, other threads:[~2016-08-02 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 18:14 bug#24135: guix system reconfigure fails on successful build myglc2
2016-08-02 22:12 ` Ludovic Courtès

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).