GNU bug report logs - #46861
`guix deploy` permission denied error

Previous Next

Package: guix;

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.

View this report as an mbox folder, status mbox, maintainer mbox


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

From: pkill9 <pkill9 <at> runbox.com>
To: bug-guix <at> gnu.org
Subject: `guix deploy` permission denied error
Date: Mon, 1 Mar 2021 21:43:19 +0000
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):

From: Ludovic Courtès <ludo <at> gnu.org>
To: pkill9 <pkill9 <at> runbox.com>
Cc: 46861 <at> debbugs.gnu.org
Subject: Re: bug#46861: `guix deploy` permission denied error
Date: Tue, 02 Mar 2021 13:44:46 +0100
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):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 46861 <at> debbugs.gnu.org, bug-guix <at> gnu.org, pkill9 <pkill9 <at> runbox.com>
Subject: Re: bug#46861: `guix deploy` permission denied error
Date: Tue, 02 Mar 2021 16:56:04 +0100
[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):

From: pkill9 <pkill9 <at> runbox.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: Ludovic Courtès <ludo <at> gnu.org>, bug-guix <at> gnu.org,
 46861 <at> debbugs.gnu.org
Subject: Re: bug#46861: `guix deploy` permission denied error
Date: Wed, 3 Mar 2021 01:04:43 +0000
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):

From: pkill9 <pkill9 <at> runbox.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 46861 <at> debbugs.gnu.org
Subject: Re: bug#46861: `guix deploy` permission denied error
Date: Wed, 3 Mar 2021 17:11:22 +0000
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):

From: Ludovic Courtès <ludo <at> gnu.org>
To: pkill9 <pkill9 <at> runbox.com>
Cc: 46861-done <at> debbugs.gnu.org
Subject: Re: bug#46861: `guix deploy` permission denied error
Date: Mon, 08 Mar 2021 15:09:08 +0100
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.