Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

"cp: cannot stat" #3

Open
aaronshaf opened this issue Dec 4, 2015 · 2 comments
Open

"cp: cannot stat" #3

aaronshaf opened this issue Dec 4, 2015 · 2 comments

Comments

@aaronshaf
Copy link

cp: cannot stat ‘/etc/letsencrypt/live/hello-world.[my-domain].com/privkey.pem’: Permission denied

Any ideas? I ran it with and without sudo.

@almereyda
Copy link

The same here. It also seems the respective nginx.conf of the associated application does not get updated to use port 443.

Interestingly it seems https://github.com/sgulseth/dokku-letsencrypt/blob/master/install#L7 had only been applied to /etc/letsencrypt but not its subfolders. Simply running it again and reissuing the certificate made the error disappear.

Who is changing the permissions here after we thought we were done?

@sgulseth
Copy link
Owner

sgulseth commented Dec 6, 2015

If you ran the "sign" command with sudo, root will own the files in the "/etc/letsencrypt/live/domain"-folder. A fix for this could be to fix folder permissions when signing, so root doesn't own the files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants