unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Diego Nicola Barbato <dnbarbato@posteo.de>
To: swedebugia@riseup.net
Cc: 33623@debbugs.gnu.org
Subject: bug#33623: Backtrace when running `guix system roll-back'
Date: Thu, 06 Dec 2018 16:05:12 +0100	[thread overview]
Message-ID: <871s6uu253.fsf@GlaDOS.home> (raw)
In-Reply-To: <f47dff19bb43327fe1f0f61ed42a21de@riseup.net> (swedebugia's message of "Wed, 05 Dec 2018 15:56:35 -0800")

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

Hello Swedebugia,

swedebugia@riseup.net writes:

> On 2018-12-05 12:36, Diego Nicola Barbato wrote:
>> Hello Guix,
>> 
>> When I run ‘guix system roll-back’ I get the following backtrace:
>> 
>> --8<---------------cut here---------------start------------->8---
>> root@tapuakh ~# guix system roll-back
>> Backtrace:
>>           10 (primitive-load "/root/.config/guix/current/bin/guix")
>> In guix/ui.scm:
>>   1603:12  9 (run-guix-command _ . _)
>> In ice-9/boot-9.scm:
>>     829:9  8 (catch srfi-34 #<procedure 341ea60 at guix/ui.scm:615:…> …)
>>     829:9  7 (catch system-error #<procedure 341eb00 at guix/script…> …)
>> In guix/scripts/system.scm:
>>    1268:8  6 (_)
>> In guix/status.scm:
>>     615:4  5 (call-with-status-report _ _)
>> In guix/scripts/system.scm:
>>    1208:9  4 (process-command _ _ _)
>>    469:10  3 (switch-to-system-generation #<build-daemon 256.99 1ec…> …)
>> In guix/store.scm:
>>   1659:24  2 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
>> In guix/scripts/system.scm:
>>     499:6  1 (_ _)
>> In unknown file:
>>            0 (_ #<build-daemon 256.99 1ec03c0>)
>> 
>> ERROR: Wrong type to apply: #<<computed-file> name: "grub.cfg" gexp:
>> #<gexp  3971ab0> guile: #f options: (#:local-build? #t)>
>> --8<---------------cut here---------------end--------------->8---
>> 
>> I run GuixSD (commit: 1f51f0d975d95a2ba645193cf43d0a294d952e83) on an
>> x86_64 machine.
>
> Interesting. Could you provide a config.scm to help us reproduce the
> issue?

I've got something better.

Steps to reproduce:

Install GuixSD in a VM using the iso image and the attached config.  The
image should be at least 16G (8G is to small for a reconfigure).

Reboot the VM.

Run ‘guix pull --commit=1f51f0’ as root.

Make sure to log out and back in again to avoid bug#33647.

Run ‘guix system reconfigure /etc/config.scm’.

Reboot the VM.

Run ‘guix system roll-back’ as root.

Backtrace ensues.


Greetings

Diego


[-- Attachment #2: config.scm --]
[-- Type: application/octet-stream, Size: 1702 bytes --]

;; This is an operating system configuration template;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules certs emacs gnome xorg)

(operating-system
  (host-name "antelope")
  (timezone "Europe/Paris")
  (locale "en_US.utf8")

  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))

  (file-systems (cons (file-system
                        (device (file-system-label "my-root"))
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

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

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts
                   emacs emacs-exwm
                   setxkbmap
                   %base-packages))

  ;; Add GNOME and/or Xfce---we can choose at the log-in
  ;; screen with F1.  Use the "desktop" services, which
  ;; include the X11 log-in service, networking with
  ;; NetworkManager, and more.
  (services (cons* (console-keymap-service "de_CH-latin1")
                   %desktop-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

  reply	other threads:[~2018-12-06 15:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05 11:36 bug#33623: Backtrace when running `guix system roll-back' Diego Nicola Barbato
2018-12-05 23:56 ` swedebugia
2018-12-06 15:05   ` Diego Nicola Barbato [this message]
2018-12-07  9:44     ` Diego Nicola Barbato
2018-12-07 14:15 ` Ludovic Courtès
2018-12-07 17:55   ` znavko
2018-12-07 22:23     ` Ludovic Courtès
2018-12-08  9:45   ` swedebugia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871s6uu253.fsf@GlaDOS.home \
    --to=dnbarbato@posteo.de \
    --cc=33623@debbugs.gnu.org \
    --cc=swedebugia@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).