The Basics
-
Nextcloud Server version (e.g., 29.x.x):
- 32.0.8snap2
-
Operating system and version (e.g., Ubuntu 24.04):
- Raspbian GNU/Linux 9
-
Web server and version (e.g, Apache 2.4.25):
Apache inside Nextcloud snap
-
Reverse proxy and version _(e.g. nginx 1.27.2)
- Just the Apache inside the snap
-
PHP version (e.g, 8.3):
inside snap
-
Is this the first time you’ve seen this error? (Yes / No):
yes
-
When did this problem seem to first start?
today
-
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
snap
-
Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
I am trying to install Nexcloud Snap as per Managing HTTP encryption (HTTPS) · nextcloud-snap/nextcloud-snap Wiki · GitHub
To get a Letsencrypt certificate, the command is:
sudo nextcloud.enable-https lets-encrypt
This did not work, but I found out that this does work:
sudo snap run nextcloud.enable-https lets-encrypt
The Certbot dialog starts, prompting for email and domain name. Then it runs into an error:
Attempting to obtain certificates... error running certbot:
An unexpected error occurred:
pkg_resources.DistributionNotFound: The 'zope.interface' distribution
was not found and is required by the application
Please see the logfile '/tmp/tmptyzjk9yi/log' for more details.
The log file does not exist.
My question is how to fix the error about the zope.interface distribution.
Might there be a conflict with the two certbots, one installed from snap a long time ago and used for Nginx, certbot 5.6.0 “classic”, and the other one packaged inside the Nextcloud snap that I installed this week? How to fix this?
