GNU bug report logs -
#46861
`guix deploy` permission denied error
Previous Next
Reported by: pkill9 <pkill9 <at> runbox.com>
Date: Mon, 1 Mar 2021 21:44:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46861 in the body.
You can then email your comments to 46861 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Mon, 01 Mar 2021 21:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
pkill9 <pkill9 <at> runbox.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 01 Mar 2021 21:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Tue, 02 Mar 2021 12:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 46861 <at> debbugs.gnu.org (full text, mbox):
Hi,
pkill9 <pkill9 <at> 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’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Tue, 02 Mar 2021 15:56:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Tue, 02 Mar 2021 15:56:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Wed, 03 Mar 2021 01:05:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 46861 <at> debbugs.gnu.org (full text, mbox):
It does this with guix pull too, and it's on the machine that is doing
the deploying that gui pull causes the error, but guix pull worked fine
on the machine being deployed to.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Wed, 03 Mar 2021 01:06:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46861
; Package
guix
.
(Wed, 03 Mar 2021 17:12:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 46861 <at> debbugs.gnu.org (full text, mbox):
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...
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 08 Mar 2021 14:10:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
pkill9 <pkill9 <at> runbox.com>
:
bug acknowledged by developer.
(Mon, 08 Mar 2021 14:10:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 46861-done <at> debbugs.gnu.org (full text, mbox):
Hi,
pkill9 <pkill9 <at> 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’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 06 Apr 2021 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.