unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Lory EVANO <evano-lory@live.fr>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: RE: error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied
Date: Thu, 3 Sep 2020 16:28:42 +0000	[thread overview]
Message-ID: <PR3PR06MB6730DE2D34D2D18AD775DB81802C0@PR3PR06MB6730.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <20200822171749.GD10275@jasmine.lan>

Hi,

Thanks for your reply. Yes, I followed the hint by creating the directory by hands. However the daemon should create the profiles directories by himself.

The permissions of /var/guix/ are the following:
drwxr-xr-x 8 root root 118 Sep  3 14:33 /var/guix

And for the directories inside /var/guix/ :
drwxr-xr-x 2 root root 20 Sep  3 14:28 daemon-socket
drwxr-xr-x 2 root root 69 Sep  3 15:21 db
-rw------- 1 root root  0 Sep  3 14:30 gc.lock
drwxr-xr-x 2 root root 22 Jan  1  1970 gcroots
drwxr-xr-x 3 root root 22 Jan  1  1970 profiles
drwxr-xr-x 3 root root 19 Sep  3 14:33 substitute
drwxr-xr-x 2 root root  6 Sep  3 15:21 temproots

The permissions of the profile I created in /var/guix/profiles/per-user :
drwxr-xr-x 2 evanol root 51 Sep  3 14:33 evanol

Even after creating my own profile directory in /var/guix/profiles/per-user, I still have an error message when I do "guix install zlib":
---------------------
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
user with UID 120300 not found
guix install: 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:
   zlib 1.2.11

substitute: /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
substitute: guix substitute: warning: ci.guix.gnu.org: connection failed: Connection timed out
-----------------------

For the warning message concerning the variable LC_ALL, I am aware I should do :

$ guix install glibc-locales
$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale

But for the moment no package can be installed, so I cannot sort that out with these commands.

In addition the message "user with uid 120300 not found" is still here and for the moment I have no clue where it comes from. Do you have an idea why I have this message ? It seems like the daemon is not using the users created for the group guixbuilder..

Lastly, I cannot connect to the server ci.guix.gnu.org. I am behind a fire-wall but the server ci.guix.gnu.org as well as https://git.savannah.gnu.org/git/guix.git are opened. And my proxy settings are well define so that I can download on the internet. To be sure it does not come from my proxy settings and my site's firewall, I tested to download the guix.git file by doing a "wget https://git.savannah.gnu.org/git/guix.git". This works fine, I have no problem to get guix.git.
However, when I do a "guix pull" the guix daemon is unable to pull the file.
I have the following error message :
evanol@tu-hpcrepo-p01 /var/guix/profiles/per-user> guix pull
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
user with UID 120300 not found
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guix pull: error: Git error: failed to connect to git.savannah.gnu.org: Address family not supported by protocol

I am working on a VM where I have installed guix as a root by using the install script : https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
Before that I have tried to install Guix by following step by step the guix installation manual, I had same errors and issues as the ones described above. That is why I decided to uninstall Guix and re-install it with the install script.

I hope I've been clear in the description of my errors and my context.

Lory


________________________________
De : Leo Famulari <leo@famulari.name>
Envoyé : samedi 22 août 2020 19:17
À : Lory EVANO <evano-lory@live.fr>
Cc : help-guix@gnu.org <help-guix@gnu.org>
Objet : Re: error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied

On Thu, Aug 20, 2020 at 04:26:10PM +0000, Lory EVANO wrote:
> Hi all,
>
> I am new with Guix and I am currently trying to install it as a root on a VM. I followed the steps described in the Guix manual (https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fguix.gnu.org%2Fmanual%2Fen%2Fhtml_node%2FBinary-Installation.html&amp;data=02%7C01%7C%7Cd92df1cd3e7347bfea2a08d846bf4e96%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637337134748354298&amp;sdata=mRC0uv1PDDi1WCpdF8ch%2FsECd5yT6EjC1I2pgeRPrdQ%3D&amp;reserved=0). After the installation, I tried guix as a user (not root). I tried to install a simple package such as zlib but I had the following error message :
> user with UID 120300 not found
> guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied
> hint: Please create the `/var/guix/profiles/per-user/evanol' directory, with you as the owner.
>
> Do you have an idea how I could solve this problem ?

It should have "Just worked" based on the instructions you followed.
Does the /var/guix directory exist? What are its permissions?

Also, did you try the hint?

      reply	other threads:[~2020-09-03 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20 16:26 error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied Lory EVANO
2020-08-22 17:17 ` Leo Famulari
2020-09-03 16:28   ` Lory EVANO [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=PR3PR06MB6730DE2D34D2D18AD775DB81802C0@PR3PR06MB6730.eurprd06.prod.outlook.com \
    --to=evano-lory@live.fr \
    --cc=help-guix@gnu.org \
    /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).