unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Error system reconfigure with guix-latest
@ 2018-03-04 12:46 Jone
  2018-03-04 15:01 ` 宋文武
  2018-03-04 19:57 ` Alex Kost
  0 siblings, 2 replies; 11+ messages in thread
From: Jone @ 2018-03-04 12:46 UTC (permalink / raw)
  To: help-guix

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

Hello!
I'm newbie. After update system (guix pull) I see this error:

root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
/etc/CURRENT.scm:37:24: error: you need these modules in the initrd for
/dev/sdb2: sata_nv pata_acpi

BUT:
1. Prior to this (before upgrade) everything was OK
2. sata_nv and pata_acpi already selected in CURRENT.scm:

(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (target "/dev/sdd")))
  (initrd (lambda (file-systems . rest)
          (apply base-initrd file-systems
        #:extra-modules '("sata_nv" "pata_acpi")
        rest)))
  (file-systems (cons*
              (file-system
            (device "two")
             (mount-point "/")
             (type "ext4")
             (title 'label))
            (file-system
             (device "one")
             (mount-point "/home")
             (type "ext4")
             (title 'label))
             %base-file-systems))

I didn't find any answers in GuixSD documentation..

[-- Attachment #2: Type: text/html, Size: 1569 bytes --]

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

* Re: Error system reconfigure with guix-latest
  2018-03-04 12:46 Error system reconfigure with guix-latest Jone
@ 2018-03-04 15:01 ` 宋文武
  2018-03-04 19:57 ` Alex Kost
  1 sibling, 0 replies; 11+ messages in thread
From: 宋文武 @ 2018-03-04 15:01 UTC (permalink / raw)
  To: Jone; +Cc: help-guix

Jone <yeger9@gmail.com> writes:

> Hello!
> I'm newbie. After update system (guix pull) I see this error:
>
> root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
> /etc/CURRENT.scm:37:24: error: you need these modules in the initrd for
> /dev/sdb2: sata_nv pata_acpi

Hello, this is due to recently added functinon to detect missing modules
in the initrd: <https://debbugs.gnu.org/30629>.

To fix it, you can use 'initrd-modules' instead of the 'initrd' field in
the 'operating-system' record.

>
> BUT:
> 1. Prior to this (before upgrade) everything was OK
> 2. sata_nv and pata_acpi already selected in CURRENT.scm:
>
> (operating-system
> (host-name "guix")
> (timezone "Europe/Moscow")
> (locale "en_US.utf8")
> (bootloader (bootloader-configuration
> (bootloader grub-bootloader)
> (target "/dev/sdd")))
> (initrd (lambda (file-systems . rest)
> (apply base-initrd file-systems
> #:extra-modules '("sata_nv" "pata_acpi")
> rest)))

This '#:extra-modules' usage is deprecated by the newly added
'initrd-modules' field in 'operating-system'.  For example:
<https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/beaglebone-black.tmpl#n19>

> (file-systems (cons*
> (file-system
> (device "two")
> (mount-point "/")
> (type "ext4")
> (title 'label))
> (file-system
> (device "one")
> (mount-point "/home")
> (type "ext4")
> (title 'label))
> %base-file-systems))
>
> I didn't find any answers in GuixSD documentation..

Well, the guix info manual did got updated, but currently 'guix pull'
won't bring it, for reference: <https://debbugs.gnu.org/22629>.

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

* Re: Error system reconfigure with guix-latest
  2018-03-04 12:46 Error system reconfigure with guix-latest Jone
  2018-03-04 15:01 ` 宋文武
@ 2018-03-04 19:57 ` Alex Kost
  2018-03-04 20:52   ` Jone
  1 sibling, 1 reply; 11+ messages in thread
From: Alex Kost @ 2018-03-04 19:57 UTC (permalink / raw)
  To: Jone; +Cc: help-guix

Jone (2018-03-04 15:46 +0300) wrote:

> Hello!
> I'm newbie. After update system (guix pull) I see this error:
>
> root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
> /etc/CURRENT.scm:37:24: error: you need these modules in the initrd
> for /dev/sdb2: sata_nv pata_acpi

As 宋文武 pointed, you can use 'initrd-modules' now.  To make it clear,
you need to replace this:

>   (initrd (lambda (file-systems . rest)
>           (apply base-initrd file-systems
>         #:extra-modules '("sata_nv" "pata_acpi")
>         rest)))

with this:

  (initrd-modules (cons* "sata_nv" "pata_acpi" %base-initrd-modules))

-- 
Alex

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

* Re: Error system reconfigure with guix-latest
  2018-03-04 19:57 ` Alex Kost
@ 2018-03-04 20:52   ` Jone
  2018-03-05  8:38     ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Jone @ 2018-03-04 20:52 UTC (permalink / raw)
  To: Alex Kost; +Cc: help-guix

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

Thanks. I rewrite config, following your advice and run 'guix system
--verbosity=10 reconfigure new.scm':

acquiring global GC lock `/var/guix/gc.lock'
acquiring read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
...

and the same thing many more times.
This is a bug?

[-- Attachment #2: Type: text/html, Size: 2235 bytes --]

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

* Re: Error system reconfigure with guix-latest
  2018-03-04 20:52   ` Jone
@ 2018-03-05  8:38     ` Ludovic Courtès
  2018-03-05 16:08       ` Jone
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-03-05  8:38 UTC (permalink / raw)
  To: Jone; +Cc: Alex Kost, help-guix

Hi Jone,

Jone <yeger9@gmail.com> skribis:

> Thanks. I rewrite config, following your advice and run 'guix system
> --verbosity=10 reconfigure new.scm':

‘--verbosity=10’ is not very helpful as it throws loads of very
low-level messages.  (‘--verbosity’ in general is rarely what you want.)

Does ‘guix system reconfigure’ succeed once you specify the
‘initrd-modules’ field as others suggested?

Thanks,
Ludo’.

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

* Re: Error system reconfigure with guix-latest
  2018-03-05  8:38     ` Ludovic Courtès
@ 2018-03-05 16:08       ` Jone
  2018-03-05 17:05         ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Jone @ 2018-03-05 16:08 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Kost, help-guix

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

> Does ‘guix system reconfigure’ succeed once you specify the
> ‘initrd-modules’ field as others suggested?

This problem is resolved, thanks. But I still can't reconfigure system
(‘--verbosity=10’ needed to see some output, otherwise absolutely nothing
in console). Experimentally, I found out that the problem with the
following code blocks:

1. in file-systems:

                ;; (file-system
                ;;  (device "c36b9de3-2b00-4263-8844-9f2d72628d78")
                ;;  (mount-point "/mnt/oldhome")
                ;;  (type "ext4")
                ;;  (options "noatime,discard 0 0")
                ;;  (title 'uuid))

2. and in bootloader configuration:

 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sdd")
              ;; (menu-entries (menu-entry
              ;;                  (label "OldLinux")
              ;;                  (linux "/boot/vmlinuz-4.14.9-calculate")
              ;;                  (linux-arguments '("root=/dev/sda3"))
              ;;                  (initrd
"/boot/initramfs-4.14.9-calculate.img")))
              ))

If to comment out them (as above), then process starts, otherwise the
output is visible only with ‘--verbosity=10’ and nothing else happens,
there are no errors. But I need a possibility of the login in old system
and old partitions are necessary :)

[-- Attachment #2: Type: text/html, Size: 1873 bytes --]

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

* Re: Error system reconfigure with guix-latest
  2018-03-05 16:08       ` Jone
@ 2018-03-05 17:05         ` Ludovic Courtès
  2018-03-05 19:01           ` Jone
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-03-05 17:05 UTC (permalink / raw)
  To: Jone; +Cc: Alex Kost, help-guix

Jone <yeger9@gmail.com> skribis:

>> Does ‘guix system reconfigure’ succeed once you specify the
>> ‘initrd-modules’ field as others suggested?
>
> This problem is resolved, thanks. But I still can't reconfigure system
> (‘--verbosity=10’ needed to see some output, otherwise absolutely nothing
> in console). Experimentally, I found out that the problem with the
> following code blocks:
>
> 1. in file-systems:
>
>                 ;; (file-system
>                 ;;  (device "c36b9de3-2b00-4263-8844-9f2d72628d78")
>                 ;;  (mount-point "/mnt/oldhome")
>                 ;;  (type "ext4")
>                 ;;  (options "noatime,discard 0 0")
>                 ;;  (title 'uuid))
>
> 2. and in bootloader configuration:
>
>  (bootloader (bootloader-configuration
>               (bootloader grub-bootloader)
>               (target "/dev/sdd")
>               ;; (menu-entries (menu-entry
>               ;;                  (label "OldLinux")
>               ;;                  (linux "/boot/vmlinuz-4.14.9-calculate")
>               ;;                  (linux-arguments '("root=/dev/sda3"))
>               ;;                  (initrd
> "/boot/initramfs-4.14.9-calculate.img")))
>               ))
>
> If to comment out them (as above), then process starts, otherwise the
> output is visible only with ‘--verbosity=10’ and nothing else happens,
> there are no errors. But I need a possibility of the login in old system
> and old partitions are necessary :)

At first sight the code blocks above shouldn’t be a problem.

Can you post the whole config file so we can investigate?

Thanks,
Ludo’.

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

* Re: Error system reconfigure with guix-latest
  2018-03-05 17:05         ` Ludovic Courtès
@ 2018-03-05 19:01           ` Jone
  2018-03-06 15:47             ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Jone @ 2018-03-05 19:01 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Kost, help-guix

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

> Can you post the whole config file so we can investigate?

My current config:

;; Prepare environment
(use-modules
 (gnu)
 (gnu packages base)
 (gnu packages admin)
 (gnu packages linux)
 (gnu packages emacs)
 (gnu packages xfce)
 (gnu packages gnuzilla)
 (gnu packages tmux)
 (gnu packages curl)
 (gnu packages video)
 (gnu packages version-control)
 (gnu services networking)
 (gnu system nss)
)
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
    "perl" "guile"
    "strace"
    "linux-libre-headers" "mesa-headers"))

;;; ================ other pkg groups definitions, omitted ================

(operating-system
 (host-name "guix")
 (timezone "Europe/Moscow")
 (locale "en_US.utf8")
 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (target "/dev/sdd")
              (menu-entries (menu-entry
                               (label "Old")
                               (linux "/boot/vmlinuz-4.14.9-calculate")
                               (linux-arguments '("root=/dev/sda3"))
                               (initrd
"/boot/initramfs-4.14.9-calculate.img")))
              ))

 (initrd-modules (cons* "sata_nv"        ;; Nvidia nForce
                        "pata_acpi" %base-initrd-modules))

 (file-systems (cons*
                (file-system
                 (device "two")
                 (mount-point "/")
                 (type "ext4")
                 (options "noatime,discard 0 1")
                 (title 'label))
                (file-system
                 (device "one")
                 (mount-point "/home")
                 (type "ext4")
                 (options "noatime,discard 0 0")
                 (title 'label))
                (file-system
                 (device "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")
                 (mount-point "/mnt/WD-HDD")
                 (type "ext4")
                 (options "noatime")
                 (title 'uuid))
                %base-file-systems))
(swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

(users (cons (user-account
              (name "jone")
              (comment "Jone")
              (group "users")
              (supplementary-groups '("wheel" "netdev" "audio" "video"))
              (home-directory "/home/jone"))
             %base-user-accounts))

(packages (append (map specification->package
                       (append %pkg-group-base
                               %pkg-group-dev))
                  %base-packages))
(services (cons*
           ;; (dhcp-client-service)
           (xfce-desktop-service)
           %desktop-services)))

[-- Attachment #2: Type: text/html, Size: 4228 bytes --]

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

* Re: Error system reconfigure with guix-latest
  2018-03-05 19:01           ` Jone
@ 2018-03-06 15:47             ` Ludovic Courtès
  2018-03-06 17:09               ` Jone
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-03-06 15:47 UTC (permalink / raw)
  To: Jone; +Cc: Alex Kost, help-guix

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

Hello Jone,

This config gives me an error with a backtrace:

--8<---------------cut here---------------start------------->8---
In gnu/services/base.scm:
   301:21  1 (file-system->fstab-entry #<<file-system> device: "634a6369-c5a8-4f4c-b3e8-35fb92cf850e" title: uui…>)
In gnu/system/uuid.scm:
    276:2  0 (uuid->string . _)

gnu/system/uuid.scm:276:2: In procedure uuid->string:
Throw to key `match-error' with args `("match" "no matching pattern" ("634a6369-c5a8-4f4c-b3e8-35fb92cf850e"))'.
--8<---------------cut here---------------end--------------->8---

This is fixed by changing:

  "634a6369-c5a8-4f4c-b3e8-35fb92cf850e

to:

  (uuid "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")

Next I get:

--8<---------------cut here---------------start------------->8---
ERROR: In procedure scm-error:
In procedure map: Wrong type argument: (#<<menu-entry> label: "GNU with Linux-Libre 4.15.7 (beta)" device: "two" device-mount-point: "/" linux: #<<file-append> base: #<package linux-libre@4.15.7 gnu/packages/linux.scm:270 1f7f0c0> suffix: ("/" "bzImage")> linux-arguments: ("--root=two" #<gexp (string-append "--system=" #<gexp-input #<derivation /gnu/store/6smdgm944njdvi4vinm27jw428j0l4dn-system.drv => /gnu/store/gsq19cd625bqh4xjmq1srv8b1vjbksig-system 57ae730>:out>) 3a56e40> #<gexp (string-append "--load=" #<gexp-input #<derivation /gnu/store/6smdgm944njdvi4vinm27jw428j0l4dn-system.drv => /gnu/store/gsq19cd625bqh4xjmq1srv8b1vjbksig-system 57ae730>:out> "/boot") 3a56de0>) initrd: #<<file-append> base: #<derivation /gnu/store/25qa7574n3zbrjr78njmbcj085g7d96b-raw-initrd.drv => /gnu/store/nc66z7m1b55ymlcxv9anqpcvxz71dz50-raw-initrd 50ed230> suffix: ("/initrd")>> . #<<menu-entry> label: "Old" device: #f device-mount-point: #f linux: "/boot/vmlinuz-4.14.9-calculate" linux-arguments: ("root=/dev/sda3") initrd: "/boot/initramfs-4.14.9-calculate.img">)
--8<---------------cut here---------------end--------------->8---

This is because ‘menu-entries’ (plural) expects a list of ‘menu-entry’,
not just one ‘menu-entry’.

Once I’ve fixed that, I can build the config with ‘guix system vm’ or
similar.

I’m attaching the corrected version below (I also removed useless
‘use-modules’ lines at the top.)  Let me know if it works for you.

HTH,
Ludo’.


[-- Attachment #2: the config --]
[-- Type: text/plain, Size: 2541 bytes --]

;; Prepare environment
(use-modules (gnu))
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
    "perl" "guile"
    "strace"
    "linux-libre-headers" "mesa-headers"))

;;; ================ other pkg groups definitions, omitted ================

(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (target "/dev/sdd")
               (menu-entries
                (list (menu-entry
                       (label "Old")
                       (linux "/boot/vmlinuz-4.14.9-calculate")
                       (linux-arguments '("root=/dev/sda3"))
                       (initrd
                        "/boot/initramfs-4.14.9-calculate.img"))))))

  (initrd-modules (cons* "sata_nv" ;; Nvidia nForce
                         "pata_acpi" %base-initrd-modules))

  (file-systems (cons*
                 (file-system
                   (device "two")
                   (mount-point "/")
                   (type "ext4")
                   (options "noatime,discard 0 1")
                   (title 'label))
                 (file-system
                   (device "one")
                   (mount-point "/home")
                   (type "ext4")
                   (options "noatime,discard 0 0")
                   (title 'label))
                 (file-system
                   (device (uuid "634a6369-c5a8-4f4c-b3e8-35fb92cf850e"))
                   (mount-point "/mnt/WD-HDD")
                   (type "ext4")
                   (options "noatime")
                   (title 'uuid))
                 %base-file-systems))
  (swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

  (users (cons (user-account
                (name "jone")
                (comment "Jone")
                (group "users")
                (supplementary-groups '("wheel" "netdev" "audio" "video"))
                (home-directory "/home/jone"))
               %base-user-accounts))

  (packages (append (map specification->package
                         (append %pkg-group-base
                                 %pkg-group-dev))
                    %base-packages))
  (services (cons*
             ;; (dhcp-client-service)
             (xfce-desktop-service)
             %desktop-services)))

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

* Re: Error system reconfigure with guix-latest
  2018-03-06 15:47             ` Ludovic Courtès
@ 2018-03-06 17:09               ` Jone
  2018-03-07 21:06                 ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Jone @ 2018-03-06 17:09 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Kost, help-guix

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

Ok, with Your version of a config 'reconfigure' starts, normal output. Also
I added some more packages
to the selected.

But further in an output I see something, similar to compilation of
packages (for "ffmpeg" and
"icecat-52.6.0"), as in Gentoo. Well, that is exactly the output of GCC!
Possibly, this take time..

[-- Attachment #2: Type: text/html, Size: 382 bytes --]

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

* Re: Error system reconfigure with guix-latest
  2018-03-06 17:09               ` Jone
@ 2018-03-07 21:06                 ` Ludovic Courtès
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2018-03-07 21:06 UTC (permalink / raw)
  To: Jone; +Cc: Alex Kost, help-guix

Hi,

Jone <yeger9@gmail.com> skribis:

> But further in an output I see something, similar to compilation of
> packages (for "ffmpeg" and
> "icecat-52.6.0"), as in Gentoo. Well, that is exactly the output of GCC!
> Possibly, this take time..

If you’re unlucky, substitutes are not available yet from the substitute
servers and thus you end up building things locally:

  https://www.gnu.org/software/guix/manual/html_node/Substitutes.html

You can try adding https://berlin.guixsd.org to --substitute-urls.  This
is a separate build farm that may be faster than hydra.gnu.org.

Ludo’.

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

end of thread, other threads:[~2018-03-07 21:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-04 12:46 Error system reconfigure with guix-latest Jone
2018-03-04 15:01 ` 宋文武
2018-03-04 19:57 ` Alex Kost
2018-03-04 20:52   ` Jone
2018-03-05  8:38     ` Ludovic Courtès
2018-03-05 16:08       ` Jone
2018-03-05 17:05         ` Ludovic Courtès
2018-03-05 19:01           ` Jone
2018-03-06 15:47             ` Ludovic Courtès
2018-03-06 17:09               ` Jone
2018-03-07 21:06                 ` Ludovic Courtès

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