Hi there,
My domain is: campusguides.ca
My web server is (include version): Apache 2.4.29
My Certbot version: certbot 1.14.0
I ran this command:
sudo certbot --apache certonly -d campusguides.ca
It produced this output:
2021-04-07 17:02:28,478:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2021-04-07 17:02:28,859:DEBUG:certbot._internal.main:certbot version: 1.14.0
2021-04-07 17:02:28,859:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/1093/bin/certbot
2021-04-07 17:02:28,859:DEBUG:certbot._internal.main:Arguments: ['--apache', '-d', 'campusguides.ca', '--preconfigured-renewal']
2021-04-07 17:02:28,859:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2021-04-07 17:02:28,869:DEBUG:certbot._internal.log:Root logging level set at 20
2021-04-07 17:02:28,869:INFO:certbot._internal.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2021-04-07 17:02:28,869:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2021-04-07 17:02:33,082:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.29
2021-04-07 17:02:47,428:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_debian.DebianConfigurator object at 0x7f7276f42700>
Prep: True
2021-04-07 17:02:47,428:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_debian.DebianConfigurator object at 0x7f7276f42700>
Prep: True
2021-04-07 17:02:47,429:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot_apache._internal.override_debian.DebianConfigurator object at 0x7f7276f42700> and installer <certbot_apache._internal.override_debian.DebianConfigurator object at 0x7f7276f42700>
2021-04-07 17:02:47,429:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2021-04-07 17:02:47,429:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/1093/lib/python3.8/site-packages/josepy/interfaces.py", line 175, in json_loads
loads = json.loads(json_string)
File "/snap/certbot/1093/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/snap/certbot/1093/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/snap/certbot/1093/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/certbot/1093/bin/certbot", line 8, in
sys.exit(main())
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/main.py", line 1435, in main
return config.func(config, plugins)
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/main.py", line 1287, in certonly
le_client = _init_le_client(config, auth, installer)
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/main.py", line 654, in _init_le_client
acc, acme = _determine_account(config)
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/main.py", line 562, in _determine_account
accounts = account_storage.find_all()
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/account.py", line 184, in find_all
return self._find_all_for_server_path(self.config.server_path)
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/account.py", line 166, in _find_all_for_server_path
accounts.append(self._load_for_server_path(account_id, server_path))
File "/snap/certbot/1093/lib/python3.8/site-packages/certbot/_internal/account.py", line 219, in _load_for_server_path
regr = messages.RegistrationResource.json_loads(regr_file.read())
File "/snap/certbot/1093/lib/python3.8/site-packages/josepy/interfaces.py", line 177, in json_loads
raise errors.DeserializationError(error)
josepy.errors.DeserializationError: Deserialization error: Expecting value: line 1 column 1 (char 0)
2021-04-07 17:02:47,430:ERROR:certbot._internal.log:An unexpected error occurred:
2021-04-07 17:02:47,430:ERROR:certbot._internal.log:josepy.errors.DeserializationError: Deserialization error: Expecting value: line 1 column 1 (char 0)
The operating system my web server runs on is (include version):
Ubuntu 18.04 LTS
Background info:
This server has been up and running for some years. I tried removing the old certbot (sudo apt-get) and reinstalling a new one using snapd. This appeared to make no difference.
I next wondered if maybe this was related to the AcmeV1 to AcmeV2 API migration, however, upon inspecting the conf file in /etc/letsencrypt/renewal, it appears to have server = https://acme-v02.api.letsencrypt.org/directory, which negates that theory.
I did notice that the same conf file starts with this:
renew_before_expiry = 30 days
version = 0.31.0
....and that version looks suspiciously similar to the previous certbot on this machine. Could that be the issue?
The same conf file has the following parameters (besides the account and directories to pem files)
authenticator = apache
installer = apache
The "ERROR:certbot._internal.log:josepy.errors.DeserializationError: Deserialization error: Expecting value: line 1 column 1 (char 0)" would suggest that it's expecting some JSON to come from somewhere that is then null or missing a specific key, but it doesn't say anything in the log file to back that up.
Any help would be much appreciated.
Thanks,
Jason