all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#54082: bugreport
@ 2022-02-20 21:49 daniel.herzig
  2022-02-21  7:51 ` daniel.herzig
  0 siblings, 1 reply; 2+ messages in thread
From: daniel.herzig @ 2022-02-20 21:49 UTC (permalink / raw)
  To: 54082


[-- Attachment #1.1: Type: text/plain, Size: 2056 bytes --]

Dear guix!

guix just told me to report a bug.

This happened on a 'guix pull' followed by 'guix system reconfigure'
inside a guix vm built on guix system with:

Generation 80 14. Februar 2022 01:43:41 (aktuell)
 guix 6bfb3fc
 Repository-URL: https://git.savannah.gnu.org/git/guix.git
 Branch: master
 Commit: 6bfb3fc1f450c7d618041303d0ff35691b5991c0

I built it with the command:

image=$(guix system image --image-type=qcow2 --image-size=10G --save-
provenance vm-configs/nextcloud-barebone.scm)
cp $image /tmp/my-image.qcow2
chmod +w /tmp/my-image.qcow2

And start up the machine like this:

qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 -net
nic -net user,hostfwd=tcp::5555-:2222,hostfwd=tcp::8888-:80

Attached you find the output and the definition of the image.

I wouldn't have felt the need to 'guix pull' inside the kvm, but a
'guix describe' inside of it showed me it was running on the (never-
updated) root-user's commit instead my user's one (although it starts
up with the kernel-version of the running system):

alice@komputilo ~$ guix describe
 guix a27e47f
 repository URL: https://git.savannah.gnu.org/git/guix.git
 branch: master
 commit: a27e47f9d1e22dc32bb250cfeef88cfacb930e23

I now 'guix pulled' for root and my user to commit
45995eab3ae62ceef89ee223a1bc805738356c1f (and as user also reconfigured
system and home), but the problem persists.

If I just 'su', root keeps seing
a27e47f9d1e22dc32bb250cfeef88cfacb930e23 (from /run/current-
system/profile/bin/guix).  If I 'su -', root turns out to be the one
I'd wish it permanently to be (using 45995 from
/root/.config/guix/current/bin/guix).

It's quite possible, that I messed something up with various 'sudo',
'sudo -i', 'su', and 'su -' variations in the meantime.

It started with a not-(never)-updated root guix, and now there's still
enough of a not-updated root guix left, to keep me away from proceeding
with my vm in a sane way.

Any suggestions on that are highly appreciated,

Best,
Daniel


[-- Attachment #1.2: bug.txt --]
[-- Type: text/plain, Size: 3771 bytes --]

alice@komputilo ~$ guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 45995ea (1,601 new commits)...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git	45995ea
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 config.scm  501B                                               3KiB/s 00:00 [##################] 100.0%
 git.scm  101B                                                219KiB/s 00:00 [##################] 100.0%
 hash.scm  130B                                               213KiB/s 00:00 [##################] 100.0%
 module-import  2KiB                                          1.7MiB/s 00:00 [##################] 100.0%
 module-import-compiled  1.2MiB                               2.9MiB/s 00:00 [##################] 100.0%
 compute-guix-derivation  1015B                               611KiB/s 00:00 [##################] 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 gnutls-3.7.2-doc  1.0MiB                                     1.1MiB/s 00:01 [##################] 100.0%
 expat-2.4.1  97KiB                                           151KiB/s 00:01 [##################] 100.0%
 gnutls-3.7.2-debug  4.4MiB                                   696KiB/s 00:06 [##################] 100.0%
 nghttp2-1.44.0-lib  86KiB                                     31KiB/s 00:03 [##################] 100.0%
 openssl-1.1.1l  1.6MiB                                       1.5MiB/s 00:01 [##################] 100.0%
 libgit2-1.3.0  590KiB                                        6.2MiB/s 00:00 [##################] 100.0%
 mit-krb5-1.19.2  1.0MiB                                      1.4MiB/s 00:01 [##################] 100.0%
 guile-git-0.5.2  416KiB                                      248KiB/s 00:02 [##################] 100.0%
 curl-7.79.1  377KiB                                          463KiB/s 00:01 [##################] 100.0%
 libssh-0.9.6  237KiB                                         381KiB/s 00:01 [##################] 100.0%
 git-minimal-2.34.0  4.1MiB                                  58.9MiB/s 00:00 [                  ]   1.5%guix pull: error: You found a bug: the program '/gnu/store/n1mqpdkdf1iczjdsz3i9cyrwchj9hhcd-compute-guix-derivation'
failed to compute the derivation for Guix (version: "45995eab3ae62ceef89ee223a1bc805738356c1f"; system: "x86_64-linux";
host version: "1.3.0-23.a27e47f"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.

[-- Attachment #1.3: nextcloud-barebone.scm --]
[-- Type: text/x-scheme, Size: 1934 bytes --]

;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.

(use-modules (gnu))
(use-service-modules networking ssh web)
(use-package-modules screen ssh web)

(operating-system
 (host-name "komputilo")
 (timezone "Europe/Berlin")
 (locale "en_US.utf8")

 ;; labelling with /dev/sda right away, as the vm will see it like this
 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (targets '("/dev/sda"))
              (terminal-outputs '(console))))
 (file-systems (cons (file-system
                      (mount-point "/")
                      (device "/dev/sda2")
                      (type "ext4"))
                     %base-file-systems))

 ;; This is where user accounts are specified.  The "root"
 ;; account is implicit, and is initially created with the
 ;; empty password.
 (users (cons (user-account
               (name "alice")
               (comment "Bob's sister")
               (group "users")

               ;; Adding the account to the "wheel" group
               ;; makes it a sudoer.  Adding it to "audio"
               ;; and "video" allows the user to play sound
               ;; and access the webcam.
               (supplementary-groups '("wheel"
                                       "audio" "video")))
              %base-user-accounts))

 ;; Globally-installed packages.
 (packages
  (append (map specification->package
	       '("screen"
		 "emacs"))
	  %base-packages))

 ;; Add services to the baseline: a DHCP client and
 ;; an SSH server.
 (services (append (list (service dhcp-client-service-type)
                         (service openssh-service-type
                                  (openssh-configuration
                                   (openssh openssh-sans-x)
                                   (port-number 2222)))
			 (service httpd-service-type))
                   %base-services)))

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 695 bytes --]

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

* bug#54082: bugreport
  2022-02-20 21:49 bug#54082: bugreport daniel.herzig
@ 2022-02-21  7:51 ` daniel.herzig
  0 siblings, 0 replies; 2+ messages in thread
From: daniel.herzig @ 2022-02-21  7:51 UTC (permalink / raw)
  To: 54082

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

Hi!

I just noticed an error in my initial message.

The mentioned 'reconfigure' in the VM did not happen after the 'pull',
but before (I did not expect being on an 'old' commit, right after
entering the 'fresh' machine for the first time, so I thought this
might help -- that's how I found the 'bug').

However, the situation persists also pulling to 6cae4e.

Might this have something to do with 'guix system image' deliberatly
starting with guix a27e4?  After running the initial command as user (I
see guix a27e4 being pulled there):

image=$(guix system image --image-type=qcow2 --image-size=10G --save-
provenance vm-configs/nextcloud-barebone.scm)

A second execution of this command from the (updated) root guix, there
does not seem to happen any computation, which I would expect if it
would pull another guix.

Sorry for the possibly misleading intro & best,
Daniel

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 695 bytes --]

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

end of thread, other threads:[~2022-02-21 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-20 21:49 bug#54082: bugreport daniel.herzig
2022-02-21  7:51 ` daniel.herzig

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.