unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* Symlink: permission denied
@ 2013-05-16  4:44 Chris Dale
  2013-05-16  9:16 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Dale @ 2013-05-16  4:44 UTC (permalink / raw)
  To: bug-guix

[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]

guix package -i hello
;;; note: source file /usr/local/share/guile/site/2.0/guix/config.scm
;;;       newer than compiled /usr/local/share/guile/site/2.0/guix/config.go
;;; found fresh local cache at
/home/captain/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.0/guix/config.scm.go
accepted connection from pid 21254, uid 1000
The following package will be installed:
   hello-2.8 out /nix/store/7g06kqdm6qjbzdppnryyvjl2bz82r8dh-hello-2.8

Backtrace:
In ice-9/boot-9.scm:
 157: 12 [catch #t #<catch-closure 2046580> ...]
In unknown file:
   ?: 11 [apply-smob/1 #<catch-closure 2046580>]
In ice-9/boot-9.scm:
  63: 10 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 9 [eval # #]
In ice-9/boot-9.scm:
2320: 8 [save-module-excursion #<procedure 2074cc0 at
ice-9/boot-9.scm:3961:3 ()>]
3966: 7 [#<procedure 2074cc0 at ice-9/boot-9.scm:3961:3 ()>]
In unknown file:
   ?: 6 [load-compiled/vm
"/home/captain/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/guix.go"]
In guix/ui.scm:
 445: 5 [run-guix-command package "-i" "hello"]
In ice-9/boot-9.scm:
 157: 4 [catch srfi-34 #<procedure 292da60 at guix/ui.scm:139:2 ()> ...]
In guix/scripts/package.scm:
 894: 3 [#<procedure 2930e70 at guix/scripts/package.scm:883:8 ()>]
 818: 2 [process-actions (# # #)]
In guix/ui.scm:
 259: 1 [switch-symlinks
"/usr/local/var/nix/profiles/per-user/captain/guix-profile-1-link" ...]
In unknown file:
   ?: 0 [symlink
"/nix/store/4www5cda3gkswbirp05bs9jjgnagi1g5-user-environment" ...]

ERROR: In procedure symlink:
ERROR: In procedure symlink: Permission denied
256 operations


Sorry to be "that guy", but this happened. I pulled the code that Lud
pushed that fixed the substituter bug, and it went swimmingly --- many
binaries were substituted until this one happened. As is expected, when I
reran the install, it errored right away on this one. I thus reproduced the
more concise output.

x86_64 arch, guile 2.0.9, localstatedir /usr/local/var

Thanks!
[Chris] Dale

[-- Attachment #2: Type: text/html, Size: 2728 bytes --]

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

* Re: Symlink: permission denied
  2013-05-16  4:44 Symlink: permission denied Chris Dale
@ 2013-05-16  9:16 ` Ludovic Courtès
  2013-05-16 12:22   ` Chris Dale
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2013-05-16  9:16 UTC (permalink / raw)
  To: Chris Dale; +Cc: bug-guix

Chris Dale <adventureonthehighseas@gmail.com> skribis:

> guix package -i hello
> ;;; note: source file /usr/local/share/guile/site/2.0/guix/config.scm
> ;;;       newer than compiled /usr/local/share/guile/site/2.0/guix/config.go
> ;;; found fresh local cache at
> /home/captain/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.0/guix/config.scm.go
> accepted connection from pid 21254, uid 1000
> The following package will be installed:
>    hello-2.8 out /nix/store/7g06kqdm6qjbzdppnryyvjl2bz82r8dh-hello-2.8

[...]

>  259: 1 [switch-symlinks
> "/usr/local/var/nix/profiles/per-user/captain/guix-profile-1-link" ...]
> In unknown file:
>    ?: 0 [symlink
> "/nix/store/4www5cda3gkswbirp05bs9jjgnagi1g5-user-environment" ...]
>
> ERROR: In procedure symlink:
> ERROR: In procedure symlink: Permission denied

/usr/local/var/nix/profiles/per-user/captain should be owned, readable,
and writable by ‘captain’.  Could you check whether this is the case?

> Sorry to be "that guy", but this happened.

Heh, no problem!  Clearly, this shows that Guix is not production ready,
and gives us a chance to identify bugs and problems that newcomers
encounter.

In this case, once we’ve identify the cause of the problem, we’ll have
to fix the manual and/or ‘guix package’ so it provides a helpful error
message instead of that backtrace.

> I pulled the code that Lud pushed that fixed the substituter bug, and
> it went swimmingly --- many binaries were substituted until this one
> happened.

This is good news.  :-)

Thanks,
Ludo’.

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

* Re: Symlink: permission denied
  2013-05-16  9:16 ` Ludovic Courtès
@ 2013-05-16 12:22   ` Chris Dale
  2013-05-16 18:07     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Dale @ 2013-05-16 12:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: bug-guix

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

>
>
> /usr/local/var/nix/profiles/per-user/captain should be owned, readable,
> and writable by ‘captain’.  Could you check whether this is the case?


I can check, and, wouldn't you know it, that folder is owned by root!

[-- Attachment #2: Type: text/html, Size: 479 bytes --]

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

* Re: Symlink: permission denied
  2013-05-16 12:22   ` Chris Dale
@ 2013-05-16 18:07     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2013-05-16 18:07 UTC (permalink / raw)
  To: Chris Dale; +Cc: bug-guix

Chris Dale <adventureonthehighseas@gmail.com> skribis:

>>
>>
>> /usr/local/var/nix/profiles/per-user/captain should be owned, readable,
>> and writable by ‘captain’.  Could you check whether this is the case?
>
>
> I can check, and, wouldn't you know it, that folder is owned by root!

Heh, good.  :-)

Commit 70c4329 changes ‘guix package’ and the manual in a way that
should help future users who hit this problem.

Thanks!

Ludo’.

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

end of thread, other threads:[~2013-05-16 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16  4:44 Symlink: permission denied Chris Dale
2013-05-16  9:16 ` Ludovic Courtès
2013-05-16 12:22   ` Chris Dale
2013-05-16 18:07     ` Ludovic Courtès

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).