all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Matt Wette <matt.wette@gmail.com>
Cc: 39194-done@debbugs.gnu.org
Subject: bug#39194: help for non-root users to start using
Date: Sun, 19 Jan 2020 23:12:43 +0100	[thread overview]
Message-ID: <87blqzqen8.fsf@gnu.org> (raw)
In-Reply-To: <b9e03834-90e9-3d4b-d149-719d5db62d6f@gmail.com> (Matt Wette's message of "Sun, 19 Jan 2020 09:48:02 -0800")

Hi Matt,

Matt Wette <matt.wette@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@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’.

  reply	other threads:[~2020-01-19 22:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 17:48 bug#39194: help for non-root users to start using Matt Wette
2020-01-19 22:12 ` Ludovic Courtès [this message]
2020-01-20 23:07   ` Bengt Richter
2020-01-21  9:06     ` Ludovic Courtès

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

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

  git send-email \
    --in-reply-to=87blqzqen8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=39194-done@debbugs.gnu.org \
    --cc=matt.wette@gmail.com \
    /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 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.