unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro
@ 2021-01-01 17:02 david larsson
  2021-01-01 17:44 ` david larsson
  2021-03-04  9:14 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: david larsson @ 2021-01-01 17:02 UTC (permalink / raw)
  To: 45599

Hi!

using guix to install packages from inside a container that runs on 
foreign distro breaks guix and the foreign distro, see below:


Steps to reproduce:

The below system was instantiated witg guix system container 
this_file.scm --network

upon starting it with sudo /gnu/store/asdfasdfasdf-run-container


and connecting to it with

sudo guix container exec 8625 /run/current-system/profile/bin/bash 
--login
[sudo] password for david:
root@MinimalSSH /#
root@MinimalSSH /#
root@MinimalSSH /# guix package -i hello
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following package will be installed:
    hello 2.10

substitute: updating substitutes from 'https://ci.guix.gnu.org'... 
100.0%
13.0 MB will be downloaded
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 
100.0%
downloading from 
https://ci.guix.gnu.org/nar/lzip/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 
...
  glibc-utf8-locales-2.31  376KiB      1.0MiB/s 00:00 
[##################] 100.0%

downloading from 
https://ci.guix.gnu.org/nar/lzip/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16 
...
  bash-static-5.0.16  625KiB           1.5MiB/s 00:00 
[##################] 100.0%

downloading from 
https://ci.guix.gnu.org/nar/lzip/q0s3bi0by383cqzl9zz1wf74p6pdl3fc-libx11-1.6.A-doc 
...
  libx11-1.6.A-doc  1.2MiB             1.6MiB/s 00:01 
[##################] 100.0%

error: executing 
`/gnu/store/qyjhy4bkz51jyspi63llfznsnz7vibzy-guix-1.1.0-30.875c01f/bin/guix 
substitute': No such file or directory
guix package: error: unexpected EOF reading a line
root@MinimalSSH /#
root@MinimalSSH /# exit
logout
guix container: error: exec failed with status 1
david@l560:~/VirtualHome/src$ guix package -i hello
bash: /usr/local/bin/guix: 
/gnu/store/b7rixb64yp00znz0d5rwd5zzklwzlzmv-guile-wrapper/bin/guile: bad 
interpreter: No such file or directory
david@l560:~/VirtualHome/src$
-----------------------

As you can see, guix is now broken on both the host and guest system.

-----------------------

;; guix system container /path/to/this/file.scm --network
;; don't forget --network
(use-modules (gnu) (gnu system nss) (gnu packages))
(use-service-modules networking ssh desktop spice cuirass 
virtualization)
(use-package-modules screen ssh gnome certs bash)

(define %cuirass-specs
   #~(
      ;; spec two
      list
      '((#:name . "my-pkgs")
        (#:load-path-inputs . ("guix"))
        (#:package-path-inputs . ("my-guix-packages"))
        (#:proc-input . "guix")
        (#:proc-file . "build-aux/cuirass/gnu-system.scm")
        (#:proc . cuirass-jobs)
        (#:proc-args .
         ((subset . "manifests")
          (systems . ("x86_64-linux"))
          (manifests . (("config" . "manifests/user1.scm")))
          ))
        (#:inputs . (
                     ((#:name . "guix")
                      (#:url . "git://git.savannah.gnu.org/guix.git")
                      (#:load-path . ".")
                      (#:branch . "master")
                      (#:no-compile? . #t))
                     ((#:name . "my-guix-packages")
                      ;;(#:url . "file:///home/cuirass/my-guix-packages")
                      (#:url . 
"https://github.com/methuselah-0/my-guix-packages.git")
                      (#:load-path . "packages")
                      (#:branch . "master")
                      (#:no-compile? . #t))
                     ((#:name . "config")
                      ;;(#:url . 
"file:///home/cuirass/my-guixsd-config.sh")
                      (#:url . 
"https://github.com/methuselah-0/my-guixsd-config.sh.git")
                      (#:load-path . ".")
                      (#:branch . "master")
                      (#:no-compile? . #t))
                     ))
        (#:build-outputs . ()))))

(operating-system
  (host-name "MinimalCuirass")
  (timezone "Europe/Stockholm")
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)))
  (file-systems
   (cons (file-system
          (device (file-system-label "fsroot"))
          (mount-point "/")
          (type "btrfs"))
         %base-file-systems))
  (services (append (list
                     (service openssh-service-type
                              (openssh-configuration
                               (port-number 2222)
                               (permit-root-login 'without-password)
                               (authorized-keys
                                `(("root" ,(local-file 
"/home/david/.ssh/id_rsa.pub"))))))
                     ;; 
https://lists.gnu.org/archive/html/help-guix/2019-06/msg00116.html
                     (service cuirass-service-type
                              (cuirass-configuration
                               (interval 60) ;; 10 hours
                               (fallback? #f) ;; default is #f
                               (host "0.0.0.0")
                               (port 8082)
                               (use-substitutes? #t)
                               (specifications %cuirass-specs))))
                    %base-services)))

-------------------


Best regards,
David Larsson





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

* bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro
  2021-01-01 17:02 bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro david larsson
@ 2021-01-01 17:44 ` david larsson
  2021-03-04  9:14 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: david larsson @ 2021-01-01 17:44 UTC (permalink / raw)
  To: 45599; +Cc: bug-Guix


> -----------------------
> 
> As you can see, guix is now broken on both the host and guest system.
> 

By the way, WARNING: when i say breaking the foreign distro, I mean 
breaking not only guix - everytime I tried this I have been unable to 
login to the system again after a logout. I have tried this on Debian 
GNU/Linux 9 inside a VM which is snapshotted so I can restore it.

Best regards,
David




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

* bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro
  2021-01-01 17:02 bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro david larsson
  2021-01-01 17:44 ` david larsson
@ 2021-03-04  9:14 ` Ludovic Courtès
  2021-03-05 13:43   ` david larsson
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2021-03-04  9:14 UTC (permalink / raw)
  To: david larsson; +Cc: 45599

Hi David,

Looks like this bug report fell through the cracks of the turn of year…

david larsson <david.larsson@selfhosted.xyz> skribis:

> upon starting it with sudo /gnu/store/asdfasdfasdf-run-container
>
>
> and connecting to it with
>
> sudo guix container exec 8625 /run/current-system/profile/bin/bash
> --login
> [sudo] password for david:
> root@MinimalSSH /#
> root@MinimalSSH /#
> root@MinimalSSH /# guix package -i hello

[...]

> error: executing
> `/gnu/store/qyjhy4bkz51jyspi63llfznsnz7vibzy-guix-1.1.0-30.875c01f/bin/guix 
> substitute': No such file or directory
> guix package: error: unexpected EOF reading a line
> root@MinimalSSH /#
> root@MinimalSSH /# exit
> logout
> guix container: error: exec failed with status 1
> david@l560:~/VirtualHome/src$ guix package -i hello
> bash: /usr/local/bin/guix:
> /gnu/store/b7rixb64yp00znz0d5rwd5zzklwzlzmv-guile-wrapper/bin/guile:
> bad interpreter: No such file or directory

It looks as though the store item for Guix or Guile used on the host had
been suddenly wiped, even though we don’t see any GC activity or
similar.

> As you can see, guix is now broken on both the host and guest system.

Were you able to better see what was broken?  Is it that store items
were removed?  Are there issues with non-Guix files?  It would be great
if you could gather more details as to what’s wrong.  I’ll also see if I
can try that in a VM.

Thanks,
Ludo’.




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

* bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro
  2021-03-04  9:14 ` Ludovic Courtès
@ 2021-03-05 13:43   ` david larsson
  0 siblings, 0 replies; 4+ messages in thread
From: david larsson @ 2021-03-05 13:43 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: bug-Guix, 45599

On 2021-03-04 10:14, Ludovic Courtès wrote:
> Hi David,
> 
> Looks like this bug report fell through the cracks of the turn of year…
> 
> david larsson <david.larsson@selfhosted.xyz> skribis:
> 
>> upon starting it with sudo /gnu/store/asdfasdfasdf-run-container
>> 
>> 
>> and connecting to it with
>> 
>> sudo guix container exec 8625 /run/current-system/profile/bin/bash
>> --login
>> [sudo] password for david:
>> root@MinimalSSH /#
>> root@MinimalSSH /#
>> root@MinimalSSH /# guix package -i hello
> 
> [...]
> 
>> error: executing
>> `/gnu/store/qyjhy4bkz51jyspi63llfznsnz7vibzy-guix-1.1.0-30.875c01f/bin/guix
>> substitute': No such file or directory
>> guix package: error: unexpected EOF reading a line
>> root@MinimalSSH /#
>> root@MinimalSSH /# exit
>> logout
>> guix container: error: exec failed with status 1
>> david@l560:~/VirtualHome/src$ guix package -i hello
>> bash: /usr/local/bin/guix:
>> /gnu/store/b7rixb64yp00znz0d5rwd5zzklwzlzmv-guile-wrapper/bin/guile:
>> bad interpreter: No such file or directory
> 
> It looks as though the store item for Guix or Guile used on the host 
> had
> been suddenly wiped, even though we don’t see any GC activity or
> similar.
> 
>> As you can see, guix is now broken on both the host and guest system.
> 
> Were you able to better see what was broken?  Is it that store items
> were removed?  Are there issues with non-Guix files?  It would be great
> if you could gather more details as to what’s wrong.  I’ll also see if 
> I
> can try that in a VM.

No, unfortunately I couldn't find any reason. I repeated it a few times 
with the same results but I no longer have access to the VM I tested 
this on so I can't help with more details, sorry :/

If it does not happen when you try it (if you do), I would be glad to 
hear about so I can call this a fluke and attribute the bug to special 
unknown circumstances with the particular host system I used.


Best regards,
David




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

end of thread, other threads:[~2021-03-05 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-01 17:02 bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro david larsson
2021-01-01 17:44 ` david larsson
2021-03-04  9:14 ` Ludovic Courtès
2021-03-05 13:43   ` david larsson

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