GNU bug report logs - #39194
help for non-root users to start using

Previous Next

Package: guix;

Reported by: Matt Wette <matt.wette <at> gmail.com>

Date: Sun, 19 Jan 2020 17:49:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Matt Wette <matt.wette <at> gmail.com>
Subject: bug#39194: closed (Re: bug#39194: help for non-root users to
 start using)
Date: Sun, 19 Jan 2020 22:13:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#39194: help for non-root users to start using

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 39194 <at> debbugs.gnu.org.

-- 
39194: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39194
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Matt Wette <matt.wette <at> gmail.com>
Cc: 39194-done <at> debbugs.gnu.org
Subject: Re: bug#39194: help for non-root users to start using
Date: Sun, 19 Jan 2020 23:12:43 +0100
Hi Matt,

Matt Wette <matt.wette <at> gmail.com> skribis:

> This guix-1.0.1 on x86_64 Fedora 30.
>
> After installing as root, it's not clear from the manual how users
> should start.
> I found out "guix pull" is the right thing.
> Maybe add that to the manual? (Or add a "guix init" command.)

“guix pull” brings you an up-to-date Guix, which is a good thing, but
you don’t _have_ to run it to get started.

> Here is the error that I get w/o "guix pull":
>
> [mwette <at> localhost ~]$ guix install hello
> Backtrace:
>            8 (primitive-load "/usr/local/bin/guix")
> In guix/ui.scm:
>   1813:12  7 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9  6 (catch _ _ #<procedure 7effb6272430 at guix/ui.scm:657?> ?)
>     829:9  5 (catch _ _ #<procedure 7effb6272448 at guix/ui.scm:780?> ?)
> In guix/scripts/package.scm:
>    948:10  4 (_)
> In guix/status.scm:
>     768:4  3 (call-with-status-report _ _)
> In guix/scripts/package.scm:
>    956:14  2 (_)
> In guix/build/syscalls.scm:
>   1127:14  1 (call-with-file-lock/no-wait _ #<procedure 7effb42f5cd?> ?)
> In ice-9/boot-9.scm:
>     777:6  0 (throw "open-file" "~A: ~S" ("No such file or direc?" ?) ?)
>
> ice-9/boot-9.scm:777:6: In procedure throw:
> In procedure throw: Wrong type argument in position 1: open-file

I believe this is fixed by commit 7842ddcbc118cbc2799e22651732b7cdc06b93ee.

Here’s my understanding of what happened:

  1. You’re running guix-daemon 1.0.1, which lacks the fix for
     <https://bugs.gnu.org/37744> (aka. CVE-2019-18192).

  2. As “mwette”, you ran ‘guix pull’ and obtained a new ‘guix’, which
     you then used in ‘guix install hello’ above.

  3. That new Guix contains the new profile locking mechanism that threw
     the exception we see above.  That exception is because it failed to
     create the lock file (“No such file or directory”), and that in
     turn is because /var/guix/profiles/per-user/mwette didn’t exist
     yet.

     /…/per-user/mwette didn’t exist because it was the first time you
     ran ‘guix install’ as “mwette”, and because guix-daemon lacks the
     fix mentioned above that would create upon first connection.

QED ■  :-)

Thanks for your report!

Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Matt Wette <matt.wette <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: help for non-root users to start using
Date: Sun, 19 Jan 2020 09:48:02 -0800
This guix-1.0.1 on x86_64 Fedora 30.

After installing as root, it's not clear from the manual how users 
should start.
I found out "guix pull" is the right thing.
Maybe add that to the manual? (Or add a "guix init" command.)

Here is the error that I get w/o "guix pull":

[mwette <at> localhost ~]$ guix install hello
Backtrace:
           8 (primitive-load "/usr/local/bin/guix")
In guix/ui.scm:
  1813:12  7 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  6 (catch _ _ #<procedure 7effb6272430 at guix/ui.scm:657?> ?)
    829:9  5 (catch _ _ #<procedure 7effb6272448 at guix/ui.scm:780?> ?)
In guix/scripts/package.scm:
   948:10  4 (_)
In guix/status.scm:
    768:4  3 (call-with-status-report _ _)
In guix/scripts/package.scm:
   956:14  2 (_)
In guix/build/syscalls.scm:
  1127:14  1 (call-with-file-lock/no-wait _ #<procedure 7effb42f5cd?> ?)
In ice-9/boot-9.scm:
    777:6  0 (throw "open-file" "~A: ~S" ("No such file or direc?" ?) ?)

ice-9/boot-9.scm:777:6: In procedure throw:
In procedure throw: Wrong type argument in position 1: open-file




This bug report was last modified 5 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.