unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Matthias Wachs <wachs@net.in.tum.de>
Cc: guix-devel@gnu.org
Subject: Re: Compiling guix 0.3 on a fedora 8 planetlab node
Date: Fri, 30 Aug 2013 14:05:40 +0200	[thread overview]
Message-ID: <877gf31izv.fsf@gnu.org> (raw)
In-Reply-To: <1377861537.3250.105.camel@fulcrum.net.in.tum.de> (Matthias Wachs's message of "Fri, 30 Aug 2013 13:18:57 +0200")

Matthias Wachs <wachs@net.in.tum.de> skribis:

>> How did it complain exactly?  Is it running as ‘root’, as per
>> <http://www.gnu.org/software/guix/manual/guix.html#Setting-Up-the-Daemon>?
>> 
>> The ability to run build processes in a chroot and under separate UIDs
>> is essential to achieve reproducibility.
>
> The basic issue is: 
> I cannot add a builder group since on these machines I don't have the
> "groupadd" command ... limitations of the image/testbed

You may have ‘addgroup’ instead, no?

> So when starting the daemon with:
>
> [tumple_gnunet_deployment@planetlab-02 ~]$ sudo guix-daemon
> warning: daemon is running as root, so using `--build-users-group' is
> highly recommended
> accepted connection from pid 13641, uid 1376
> 245 operations
>
> The client prints:
>
> guix package -i make
> <removed>
> substituter-succeeded /nix/store/qhkvy39118lccxxsnrwjb9xp7s4627py-make-3.82-debug
> guix package: error: build failed: unable to fork: Operation not
> permitted

Can you try to set those CLONE_* constants that you added to 0 instead
of some other value?

According to the clone(2) man page, EPERM means:

  CLONE_NEWIPC,  CLONE_NEWNET,  CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS was specified by
  an unprivileged process (process without CAP_SYS_ADMIN).

But you said guix-daemon is running as ‘root’.  So it might be that the
kernel doesn’t recognize these flags, and returns EPERM for lack of a
better idea.

Thanks,
Ludo’.

  reply	other threads:[~2013-08-30 12:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-28 15:45 Compiling guix 0.3 on a fedora 8 planetlab node Matthias Wachs
2013-08-29 15:46 ` Cyril Roelandt
2013-08-29 20:02   ` Ludovic Courtès
2013-08-29 20:13     ` Andreas Enge
2013-08-29 20:15       ` Andreas Enge
2013-08-29 21:31         ` Ludovic Courtès
2013-08-30 10:01           ` Matthias Wachs
2013-08-30 11:09             ` Ludovic Courtès
2013-08-30 11:18               ` Matthias Wachs
2013-08-30 12:05                 ` Ludovic Courtès [this message]
2013-08-31  9:37                   ` Mark H Weaver
2013-09-10  7:14           ` Matthias Wachs
2013-09-10 17:37             ` 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

  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=877gf31izv.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=wachs@net.in.tum.de \
    /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).