[/details]
Nextcloud version (eg, 18.0.2): 18.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.0.4 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx 1.14.0
PHP version (eg, 7.1): php 7.2.30
The issue you are facing:
Let’s encrypt renewal fails. Also see: Let’s Encrypt renewal fails
Is this the first time you’ve seen this error? (Y/N): yes
Steps to replicate it:
- run certbot renew
The output of your Nextcloud log in Admin > Logging:
No errors pertaining to certbot
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'instanceid' => 'random',
'passwordsalt' => 'pepper',
'secret' => 'reallysecret',
'trusted_domains' =>
array (
0 => 'home.mecallie.com',
),
'datadirectory' => '/var/nc_data/',
'overwrite.cli.url' => 'https://home.mecallie.com',
'dbtype' => 'mysql',
'version' => '18.0.4.2',
'dbname' => 'db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '*',
'dbpassword' => '*',
'installed' => true,
'enable_previews' => true,
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'preview_max_x' => 1024,
'preview_max_y' => 768,
'preview_max_scale_factor' => 1,
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'mecallie.com',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.host.nl',
'mail_smtpport' => '465',
'mail_smtpname' => 'mark@mecallie.com',
'mail_smtppassword' => '*',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'mail_sendmailmode' => 'smtp',
'app_install_overwrite' =>
array (
0 => 'calendar',
1 => 'tasks',
2 => 'radio',
3 => 'occweb',
4 => 'dicomviewer',
),
);
The output of the certbot command:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: home.mecallie.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for home.mecallie.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. home.mecallie.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: During secondary validation: Fetching http://home.mecallie.com/.well-known/acme-challenge/f8fytAqbouZpKrlHgVkFYj3BGNW0ZjKywPXlNIxKozI: Error getting validation data
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: home.mecallie.com
Type: connection
Detail: During secondary validation: Fetching
http://home.mecallie.com/.well-known/acme-challenge/f8fytAqbouZpKrlHgVkFYj3BGNW0ZjKywPXlNIxKozI:
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.
I did not change anything on my setup that I am aware of. I did however restore a backup of the entire server from a snapshot after I lost the disk it was running on. The server is up and running, but the renewal fails everytime. The weird thing is: the renewal with --dry-run passes…