nextcloud snap fails to enable https
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Medium
|
Unassigned |
Bug Description
his is what I get from the terminal:
panagiotis@
[sudo] password for panagiotis:
In order for Let's Encrypt to verify that you actually own the
domain(s) for which you're requesting a certificate, there are a
number of requirements of which you need to be aware:
In order to register with the Let's Encrypt ACME server, you must
agree to the currently-in-effect Subscriber Agreement located
here:
https:/
By continuing to use this tool you agree to these terms. Please
cancel now if otherwise.
You must have the domain name(s) for which you want certificates
pointing at the external IP address of this machine.
Both ports 80 and 443 on the external IP address of this machine
must point to this machine (e.g. port forwarding might need to be
setup on your router).
Have you met these requirements? (y/n) y
Please enter an email address (for urgent notices or key recovery): ******@****.com
Please enter your domain name(s) (space-separated): *********.ddns.net
Attempting to obtain certificates... error running certbot:
An unexpected error occurred:
IOError: [Errno 13] Permission denied: '/etc/os-release'
Please see the logfile '/tmp/tmpki87mT' for more details.
When I try: $ sudo snap run --shell nextcloud.
I get: cat: /etc/os-release: Permission denied
When I try:
ls -ld /etc/os-release
I get: rwxrwxrwx 1 root root 17 Μαΐ 15 02:38 /etc/os-release -> pop-os/os-release
When I try: cat /etc/pop-
I get: NAME="Pop!_OS" VERSION="20.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_
description: | updated |
Changed in snapd: | |
assignee: | nobody → Samuele Pedroni (pedronis) |
Changed in snapd: | |
assignee: | Samuele Pedroni (pedronis) → nobody |
It seems host os-release is implicitly expected to point to /usr/lib and then it presents what is contained in the base snap. This is obviously fragile, not sure how many systems violate this assumption.