unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied
@ 2020-08-20 16:26 Lory EVANO
  2020-08-22 17:17 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Lory EVANO @ 2020-08-20 16:26 UTC (permalink / raw)
  To: help-guix

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://guix.gnu.org/manual/en/html_node/Binary-Installation.html). 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 ?

Many thanks !

Regards,

Lory

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2020-08-22 17:17 UTC (permalink / raw)
  To: Lory EVANO; +Cc: help-guix

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://guix.gnu.org/manual/en/html_node/Binary-Installation.html). 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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: error message : user with UID 120300 not found / guix install: error: while creating directory `/var/guix/profiles/per-user/evanol': Permission denied
  2020-08-22 17:17 ` Leo Famulari
@ 2020-09-03 16:28   ` Lory EVANO
  0 siblings, 0 replies; 3+ messages in thread
From: Lory EVANO @ 2020-09-03 16:28 UTC (permalink / raw)
  To: help-guix

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-03 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git