My web server is (include version):
nginx/1.16.1 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 19.10
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no, using ssh
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot-auto --version: certbot 1.0.0
@JuergenAuer I also noticed that sudo ls /etc/letsencrypt/live only gives me a README file so it seems I must have deleted these while testing everything i found on google…
nginx: [warn] conflicting server name "www.sweanon.se" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "sweanon.se" on 0.0.0.0:80, ignored
You must have a second vHost, so the wrong vHost is used.
@JuergenAuer Removed the second server block in my sweanon.conf but still getting same error when running ./certbot-auto certonly --nginx
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for sweanon.se
http-01 challenge for www.sweanon.se
Waiting for verification…
Challenge failed for domain sweanon.se
Challenge failed for domain www.sweanon.se
http-01 challenge for sweanon.se
http-01 challenge for www.sweanon.se
Cleaning up challenges
Some challenges have failed.