* bug#46861: `guix deploy` permission denied error
@ 2021-03-01 21:43 pkill9
2021-03-02 12:44 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: pkill9 @ 2021-03-01 21:43 UTC (permalink / raw)
To: 46861
When I run Guix deploy, I get this error:
```
guix deploy: error: open-file: Permission denied:
"/home/itsme/.cache/guix/checkouts/last-expiry-cleanup"
```
I've tried deleting ~/.cache/guix, and creating a chmod 777'd
~/.cache/guix directory, but I still get that error.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#46861: `guix deploy` permission denied error
2021-03-01 21:43 bug#46861: `guix deploy` permission denied error pkill9
@ 2021-03-02 12:44 ` Ludovic Courtès
2021-03-02 15:56 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-03 17:11 ` pkill9
0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2021-03-02 12:44 UTC (permalink / raw)
To: pkill9; +Cc: 46861
Hi,
pkill9 <pkill9@runbox.com> skribis:
> When I run Guix deploy, I get this error:
> ```
> guix deploy: error: open-file: Permission denied:
> "/home/itsme/.cache/guix/checkouts/last-expiry-cleanup"
> ```
>
> I've tried deleting ~/.cache/guix, and creating a chmod 777'd
> ~/.cache/guix directory, but I still get that error.
Can you show the ownership of ~itsme/.cache/guix/checkouts and
~itsme/.cache/guix/checkouts/last-expiry-cleanup?
It’s likely been caused by “sudo guix pull”, which changed the ownership
to root. There’s no reason to run ‘guix deploy’ as root.
TIA,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#46861: `guix deploy` permission denied error
2021-03-02 12:44 ` Ludovic Courtès
@ 2021-03-02 15:56 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-03 1:04 ` pkill9
2021-03-03 17:11 ` pkill9
1 sibling, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-03-02 15:56 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 46861, pkill9
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
Ludovic Courtès 写道:
> It’s likely been caused by “sudo guix pull”, which changed the
> ownership
> to root. There’s no reason to run ‘guix deploy’ as root.
Ownership of _what_, though?
I thought the same as you at first, hence (on IRC):
> I've tried deleting ~/.cache/guix, and creating a chmod 777'd
> ~/.cache/guix directory, but I still get that error.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#46861: `guix deploy` permission denied error
2021-03-02 12:44 ` Ludovic Courtès
2021-03-02 15:56 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-03-03 17:11 ` pkill9
2021-03-08 14:09 ` Ludovic Courtès
1 sibling, 1 reply; 6+ messages in thread
From: pkill9 @ 2021-03-03 17:11 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 46861
Ok, I just did `guix pull` on the machine deploying to the remote host,
which had the same problem before, and it created last-expiry-cleanup
and the file is owned by root, and changing it to my user fixed it. Not
sure what happened the first time around, I'm so confused...
My only guess is that I did a guix pull as root, which put that there
like suggested, but that guix deploy also relies on it, so when I
deleted that file, `guix deploy` didn't recreate it because it doesn't
handle it. The thing is, it didn't say no such file or directory, it
said permission denied. I dunno.. I worked myself up into confusion...
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#46861: `guix deploy` permission denied error
2021-03-03 17:11 ` pkill9
@ 2021-03-08 14:09 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2021-03-08 14:09 UTC (permalink / raw)
To: pkill9; +Cc: 46861-done
Hi,
pkill9 <pkill9@runbox.com> skribis:
> Ok, I just did `guix pull` on the machine deploying to the remote host,
> which had the same problem before, and it created last-expiry-cleanup
> and the file is owned by root, and changing it to my user fixed it. Not
> sure what happened the first time around, I'm so confused...
OK, closing!
‘sudo guix’ is an endless source of confusion. :-/
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-08 14:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-01 21:43 bug#46861: `guix deploy` permission denied error pkill9
2021-03-02 12:44 ` Ludovic Courtès
2021-03-02 15:56 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-03 1:04 ` pkill9
2021-03-03 17:11 ` pkill9
2021-03-08 14:09 ` 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).