Nextcloud version (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): using snap so don't have this
PHP version (eg, 7.4): whatever snap has
The issue you are facing:
Decided to install on the new machine via snap since it seemed the most no fuss. I previously installed using an ansible playbook.
Basically I followed the instructions on this page: https://www.vultr.com/docs/how-to-install-nextcloud-on-ubuntu-22-04-with-snap/
I got to the lets-encrypt step but it isn’t running correctly.
Is this the first time you’ve seen this error? (Y/N): Yes
┌─ ~
└─➤ sudo nextcloud.enable-https lets-encrypt
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:
1. In order to register with the Let's Encrypt ACME server, you must
agree to the currently-in-effect Subscriber Agreement located
here:
https://letsencrypt.org/repository/
By continuing to use this tool you agree to these terms. Please
cancel now if otherwise.
2. You must have the domain name(s) for which you want certificates
pointing at the external IP address of this machine.
3. 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): thedonquixotic@gmail.com
Please enter your domain name(s) (space-separated): cloud.aslanfrench.work aslanfrench.work
Attempting to obtain certificates... error running certbot:
Saving debug log to /var/snap/nextcloud/current/certs/certbot/logs/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for aslanfrench.work
http-01 challenge for cloud.aslanfrench.work
Using the webroot path /var/snap/nextcloud/current/certs/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain aslanfrench.work
Challenge failed for domain cloud.aslanfrench.work
http-01 challenge for aslanfrench.work
http-01 challenge for cloud.aslanfrench.work
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: aslanfrench.work
Type: unauthorized
Detail: 76.76.21.21: Invalid response from
http://aslanfrench.work/.well-known/acme-challenge/vBe8v2veEwELdyUXqHYYD5-yimreARd_eRn6GtV8llU:
404
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
- The following errors were reported by the server:
Domain: cloud.aslanfrench.work
Type: connection
Detail: 136.49.246.64: Fetching
http://cloud.aslanfrench.work/.well-known/acme-challenge/n4cCIqtW2_jf_XdtHzVH1XtXng9fMxKdsQ7w7c9ZfGQ:
Error getting validation data
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
- Your account credentials have been saved in your Certbot
configuration directory at
/var/snap/nextcloud/current/certs/certbot/config. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
I figured the issue must be with my DNS so I went to my DNS but I already have cloud.aslanfrench.work pointed towards my IP.
I see Nextcloud when I visit locahost but not when I visit my IP. So I’m not sure what the issue is. Pretty sure my IP is 136.49.246.64 at least that’s what I get from going to those “What’s my IP”. I know most people use ifconfig but whenever I run that I can never make heads or tails of it because there’s so much text and most of it is irrelevant. Is this an IP issue or is there something else I should be checking?