unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Ludovic Courtès" <ludovic.courtes@inria.fr>
To: Reza Housseini <reza.housseini@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Installing guix on a cluster
Date: Fri, 02 Dec 2022 09:50:13 +0100	[thread overview]
Message-ID: <87edtiw5oa.fsf@gnu.org> (raw)
In-Reply-To: <5812d5dc-5f53-6b92-6845-9a2b627594f1@gmail.com> (Reza Housseini's message of "Tue, 29 Nov 2022 14:53:04 +0100")

Hi Reza,

Reza Housseini <reza.housseini@gmail.com> skribis:

> I installing guix on our institutes cluster and followed the
> instructions in this blog post [1]. But there are a couple of problems
> I stumbled upon:
>
> - There is no mention how to mount the nfs shares on the nodes. I
>   added them to the /etc/fstab file but I'm unsure about the mount
>  options

Just mount /gnu/store and /var/guix as NFS.  The store should be mounted
read-only; /var/guix must be writable.  But that’s about it, no special
options are needed.

> - Thers is no guix binary on the nodes. I added a symlink to
>   /var/guix/profiles/per-user/root/current-guix/bin/guix in
>   /usr/local/bin

Yes, that’s what needs to be done.

> but when I try to install a package from a node I get an open-file
> permission denied for
> /var/guix/profiles/per-user/root/guix-profile.lock

It looks like you’re running ‘guix’ on the node as root.  Try running it
as non-root instead.

(If you really want to be able to run ‘guix’ as root on the nodes, then
you need to pass the ‘norootsquash’ (not sure about the spelling) option
for the /var/guix NFS mount.  That’s not a great idea though.)

> - In this email [2] it was mentioned I don't have to pass listen to
>   the guix-daemon, as the socket gets shared over nfs, but when I
>   remove the listen argument and try to install a package from a node
>   I get a failed to connect to /var/guix/daemon-socket/socket:
>  connection refused

Unix-domain sockets cannot be shared over NFS.  You have to use the
‘--listen’ option and set ‘GUIX_DAEMON_SOCKET’ as explained in
<https://hpc.guix.info/blog/2017/11/installing-guix-on-a-cluster/>.

HTH!

Ludo’.


      reply	other threads:[~2022-12-02  8:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 13:53 Installing guix on a cluster Reza Housseini
2022-12-02  8:50 ` Ludovic Courtès [this message]

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=87edtiw5oa.fsf@gnu.org \
    --to=ludovic.courtes@inria.fr \
    --cc=help-guix@gnu.org \
    --cc=reza.housseini@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.
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).