Operating system Ubuntu Linux 20.04.4
Webmin version 1.994 Usermin version 1.840
Virtualmin version 7.1-1
I am moving about 15 virtual servers from an instance of Virtualmin on Ubuntu 16.x to a newer server running 20.04 After restoring the archives from backups (as created by virtualmin), I still have to manually change the IPs in the relevant nginx.conf for that particular server. The website either has a bad gateway warning, or the cert doesn’t work, and if I try to get a new cert I get:
Requesting a certificate for piratesatoll.com, www.piratesatoll.com from Let's Encrypt ..
.. request failed : Web-based validation failed :
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for piratesatoll.com
http-01 challenge for www.piratesatoll.com
Using the webroot path /home/piratesatoll/public_html for all unmatched domains.
Waiting for verification...
Challenge failed for domain piratesatoll.com
http-01 challenge for piratesatoll.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: piratesatoll.com
Type: unauthorized
Detail: 2604:180:3:5a::83c5: Invalid response from
http://piratesatoll.com/.well-known/acme-challenge/MYrB2hxpcMlIwmHqOA_dV3d9aPKT-wibIx16uKvSJw4:
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 /var/log/letsencrypt
log does not have additional useful info. The DNS appears to be correct.
If I just create a new virtual server on the new server, and restore only the website from a duplicator pro archive, then everything works. The IPs in the relevant nginx.conf are correct, but I have to add the location code that makes wordpress work (I wish it were included in the skel). Then I can generate new certs and everything works.
I was hoping that moving a virtual server via backup/restore would “just work”, but it doesn’t seem to be the case.
Here is the info on the virtualmin instance that I am moving from:
Operating system Ubuntu Linux 16.04.7
Webmin version 1.994 Usermin version 1.840
Virtualmin version 7.1-1