Problem renewing the cert in dry-run


#1

I having problems in renewing the cert. The dry-run fails with the following message:
ran@hydrogen:~$ sudo letsencrypt renew --dry-run
2016-08-30 09:26:57,807:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/app4u.ml.conf produced an unexpected error: ‘server’. Skipping.
** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/app4u.ml/fullchain.pem (failure)
** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates above have not been saved.)

What can I do?


Unexpected error: 'server'. Skipping
#2

This looks to be related to Unexpected error: 'server'. Skipping

Maybe there is a bug with -dry-run. Can you use verbose mode (-vvv ) and paste the output, and the log


#3

ran@hydrogen:~$ sudo letsencrypt renew -vvv --dry-run
2016-08-30 12:56:01,090:DEBUG:letsencrypt.cli:Root logging level set at 0
2016-08-30 12:56:01,091:INFO:letsencrypt.cli:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-08-30 12:56:01,092:DEBUG:letsencrypt.cli:letsencrypt version: 0.4.1
2016-08-30 12:56:01,092:DEBUG:letsencrypt.cli:Arguments: [’-vvv’, ‘–dry-run’]
2016-08-30 12:56:01,095:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
Processing /etc/letsencrypt/renewal/app4u.ml.conf
2016-08-30 12:56:01,102:DEBUG:letsencrypt.cli:Requested authenticator and installer
2016-08-30 12:56:01,103:DEBUG:letsencrypt.cli:Default Detector is Namespace(account=’’, agree_dev_preview=None, apache=’’, apache_challenge_location=’/etc/apache2’, apache_ctl=None, apache_dismod=‘a2dismod’, apache_enmod=‘a2enmod’, apache_handle_modules=True, apache_handle_sites=True, apache_init_script=None, apache_le_vhost_ext=’-le-ssl.conf’, apache_server_root=’/etc/apache2’, apache_vhost_root=’/etc/apache2/sites-available’, authenticator=’’, break_my_certs=True, cert_path=’/home/ran’, chain_path=None, checkpoints=0, config_dir=’’, config_file=None, configurator=’’, csr=’’, debug=’’, domains=[], dry_run=True, duplicate=’’, email=’’, expand=’’, fullchain_path=None, func=<function renew at 0x7fead60cd140>, hsts=False, http01_port=0, ifaces=’’, init=’’, installer=’’, key_path=’/home/ran’, logs_dir=’’, manual=’’, manual_public_ip_logging_ok=False, manual_test_mode=False, nginx=’’, no_self_upgrade=’’, no_verify_ssl=False, noninteractive_mode=’’, os_packages_only=’’, prepare=’’, redirect=None, register_unsafely_without_email=’’, reinstall=’’, renew_by_default=’’, rsa_key_size=0, server=‘https://acme-staging.api.letsencrypt.org/directory’, staging=True, standalone=’’, standalone_supported_challenges=‘tls-sni-01,http-01’, store_false_vars={’–no-hsts’: True, ‘–no-uir’: True, <letsencrypt.cli.HelpfulArgumentParser object at 0x7fead8a16a50>: True, ‘–no-redirect’: True}, strict_permissions=’’, text_mode=’’, tls_sni_01_port=0, tos=’’, uir=None, user_agent=None, verb=‘renew’, verbose_count=3, version=’’, webroot=’’, webroot_map={}, webroot_path=[], work_dir=’’)
2016-08-30 12:56:01,108:DEBUG:parsedatetime:parse (top of loop): [30 days][]
2016-08-30 12:56:01,114:DEBUG:parsedatetime:CRE_UNITS matched
2016-08-30 12:56:01,115:DEBUG:parsedatetime:parse (bottom) [][30 days][][]
2016-08-30 12:56:01,115:DEBUG:parsedatetime:weekday False, dateStd False, dateStr False, time False, timeStr False, meridian False
2016-08-30 12:56:01,115:DEBUG:parsedatetime:dayStr False, modifier False, modifier2 False, units True, qunits False
2016-08-30 12:56:01,116:DEBUG:parsedatetime:_evalString(30 days, time.struct_time(tm_year=2016, tm_mon=8, tm_mday=30, tm_hour=9, tm_min=56, tm_sec=1, tm_wday=1, tm_yday=243, tm_isdst=0))
2016-08-30 12:56:01,116:DEBUG:parsedatetime:_buildTime: [30 ][][days]
2016-08-30 12:56:01,116:DEBUG:parsedatetime:units days --> realunit days
2016-08-30 12:56:01,116:DEBUG:parsedatetime:return
2016-08-30 12:56:01,116:INFO:letsencrypt.cli:Cert not due for renewal, but simulating renewal for dry run
2016-08-30 12:56:01,117:DEBUG:letsencrypt.cli:Requested authenticator apache and installer apache
2016-08-30 12:56:01,472:DEBUG:letsencrypt.display.ops:Single candidate plugin: * apache
Description: Apache Web Server - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = letsencrypt_apache.configurator:ApacheConfigurator
Initialized: <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7fead89c3e50>
Prep: True
2016-08-30 12:56:01,474:DEBUG:letsencrypt.display.ops:Single candidate plugin: * apache
Description: Apache Web Server - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = letsencrypt_apache.configurator:ApacheConfigurator
Initialized: <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7fead89c3e50>
Prep: True
2016-08-30 12:56:01,475:DEBUG:letsencrypt.cli:Selected authenticator <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7fead89c3e50> and installer <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7fead89c3e50>
2016-08-30 12:56:01,489:DEBUG:letsencrypt.cli:Picked account: <Account(ac6ccf08ab38551a336939ede2f029c2)>
2016-08-30 12:56:01,491:DEBUG:root:Sending GET request to https://acme-staging.api.letsencrypt.org/directory. args: (), kwargs: {}
2016-08-30 12:56:01,495:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-staging.api.letsencrypt.org
2016-08-30 12:56:01,568:DEBUG:requests.packages.urllib3.connectionpool:“GET /directory HTTP/1.1” 200 296
2016-08-30 12:56:01,572:DEBUG:root:Received <Response [200]>. Headers: {‘Content-Length’: ‘296’, ‘Expires’: ‘Tue, 30 Aug 2016 09:56:01 GMT’, ‘Boulder-Request-Id’: ‘-xVDgs_9v_ityt66OHiod_evU8xonbyq_K52qX7SvD8’, ‘Strict-Transport-Security’: ‘max-age=604800’, ‘Server’: ‘nginx’, ‘Connection’: ‘keep-alive’, ‘Pragma’: ‘no-cache’, ‘Cache-Control’: ‘max-age=0, no-cache, no-store’, ‘Date’: ‘Tue, 30 Aug 2016 09:56:01 GMT’, ‘X-Frame-Options’: ‘DENY’, ‘Content-Type’: ‘application/json’, ‘Replay-Nonce’: ‘ntSPpOhFbeYrOLVEDpDDGMahDJW8Oiat3LUUiuf2VuU’}. Content: '{\n “new-authz”: “https://acme-staging.api.letsencrypt.org/acme/new-authz”,\n “new-cert”: “https://acme-staging.api.letsencrypt.org/acme/new-cert”,\n “new-reg”: “https://acme-staging.api.letsencrypt.org/acme/new-reg”,\n “revoke-cert”: “https://acme-staging.api.letsencrypt.org/acme/revoke-cert”\n}'
2016-08-30 12:56:01,573:DEBUG:acme.client:Received response <Response [200]> (headers: {‘Content-Length’: ‘296’, ‘Expires’: ‘Tue, 30 Aug 2016 09:56:01 GMT’, ‘Boulder-Request-Id’: ‘-xVDgs_9v_ityt66OHiod_evU8xonbyq_K52qX7SvD8’, ‘Strict-Transport-Security’: ‘max-age=604800’, ‘Server’: ‘nginx’, ‘Connection’: ‘keep-alive’, ‘Pragma’: ‘no-cache’, ‘Cache-Control’: ‘max-age=0, no-cache, no-store’, ‘Date’: ‘Tue, 30 Aug 2016 09:56:01 GMT’, ‘X-Frame-Options’: ‘DENY’, ‘Content-Type’: ‘application/json’, ‘Replay-Nonce’: ‘ntSPpOhFbeYrOLVEDpDDGMahDJW8Oiat3LUUiuf2VuU’}): '{\n “new-authz”: “https://acme-staging.api.letsencrypt.org/acme/new-authz”,\n “new-cert”: “https://acme-staging.api.letsencrypt.org/acme/new-cert”,\n “new-reg”: “https://acme-staging.api.letsencrypt.org/acme/new-reg”,\n “revoke-cert”: “https://acme-staging.api.letsencrypt.org/acme/revoke-cert”\n}'
2016-08-30 12:56:01,573:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/app4u.ml.conf produced an unexpected error: ‘server’. Skipping.
2016-08-30 12:56:01,574:DEBUG:letsencrypt.cli:Traceback was:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 1017, in renew
obtain_cert(lineage_config, plugins, renewal_candidate)
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 706, in obtain_cert
_, action = _auth_from_domains(le_client, config, domains, lineage)
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 453, in _auth_from_domains
original_server = lineage.configuration[“renewalparams”][“server”]
File “/usr/lib/python2.7/dist-packages/configobj.py”, line 554, in getitem
val = dict.getitem(self, key)
KeyError: ‘server’

** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/app4u.ml/fullchain.pem (failure)
** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates above have not been saved.)
2016-08-30 12:56:01,576:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 9, in
load_entry_point(‘letsencrypt==0.4.1’, ‘console_scripts’, ‘letsencrypt’)()
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 1986, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 1034, in renew
len(renew_failures), len(parse_failures)))
Error: 1 renew failure(s), 0 parse failure(s)

1 renew failure(s), 0 parse failure(s)


#4

Should I upload anything else?


#5

From the other thread …


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.