Certbot throws a segmentation fault with "certbot --apache" or "certbot --apache -d 'domain'" but not with "certbot renew". It ran flawlessly a few weeks ago, because I setup the server from scratch. No problem adding domains, nothing. Of curse system updates were done and the system has the latest updates installed. Then suddenly the problem occured.
OS: Ubuntu 22.04.2 LTS
Tried with
Certbot installed via apt: 1.21.0
Certbot installed via snap: 2.3.0
Below output of commands for each version (1.21.0 and 2.3.0 farther below):
certbot 1.21.0:
certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Segmentation fault (core dumped)
/var/log/letsencrypt/letsencrypt.log:
2023-02-28 19:42:40,802:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-02-28 19:42:40,803:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-02-28 19:42:40,803:DEBUG:certbot._internal.main:Arguments:
2023-02-28 19:42:40,803:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,Plug inEntryPoint#webroot)
2023-02-28 19:42:40,817:DEBUG:certbot._internal.log:Root logging level set at 30
2023-02-28 19:42:40,818:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2023-02-28 19:42:41,141:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2023-02-28 19:42:48,479:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-02-28 19:42:48,480:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-02-28 19:42:48,480:DEBUG:certbot._internal.main:Arguments: ['--apache']
2023-02-28 19:42:48,480:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,Plug inEntryPoint#webroot)
2023-02-28 19:42:48,487:DEBUG:certbot._internal.log:Root logging level set at 30
2023-02-28 19:42:48,487:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-02-28 19:42:48,904:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2023-02-28 19:50:14,984:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-02-28 19:50:14,984:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-02-28 19:50:14,984:DEBUG:certbot._internal.main:Arguments: ['--apache']
2023-02-28 19:50:14,984:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,Plug inEntryPoint#webroot)
2023-02-28 19:50:14,991:DEBUG:certbot._internal.log:Root logging level set at 30
2023-02-28 19:50:14,992:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-02-28 19:50:15,237:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2023-02-28 19:55:03,249:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-02-28 19:55:03,249:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-02-28 19:55:03,249:DEBUG:certbot._internal.main:Arguments: ['--apache']
2023-02-28 19:55:03,250:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,Plug inEntryPoint#webroot)
2023-02-28 19:55:03,258:DEBUG:certbot._internal.log:Root logging level set at 30
2023-02-28 19:55:03,259:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-02-28 19:55:03,549:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
certbot 2.3.0
certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Segmentation fault (core dumped)
/var/log/letsencrypt/letsencrypt.log:
2023-02-28 19:57:07,080:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2023-02-28 19:57:07,348:DEBUG:certbot._internal.main:certbot version: 2.3.0
2023-02-28 19:57:07,348:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2772/bin/certbot
2023-02-28 19:57:07,348:DEBUG:certbot._internal.main:Arguments: ['-v', '--preconfigured-renewal']
2023-02-28 19:57:07,349:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-02-28 19:57:07,356:DEBUG:certbot._internal.log:Root logging level set at 20
2023-02-28 19:57:07,356:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2023-02-28 19:57:07,587:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2023-02-28 19:57:25,362:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2023-02-28 19:57:25,619:DEBUG:certbot._internal.main:certbot version: 2.3.0
2023-02-28 19:57:25,619:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2772/bin/certbot
2023-02-28 19:57:25,619:DEBUG:certbot._internal.main:Arguments: ['--apache', '--preconfigured-renewal']
2023-02-28 19:57:25,619:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-02-28 19:57:25,627:DEBUG:certbot._internal.log:Root logging level set at 30
2023-02-28 19:57:25,627:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2023-02-28 19:57:25,882:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
syslog:
Feb 28 20:07:19 reverseproxy01 systemd[1]: Started snap.certbot.certbot.989dd26b-ddbc-4d45-9e8f-ddef15cf4a0f.scope.
Feb 28 20:07:21 reverseproxy01 kernel: [10042.873834] python3[11754]: segfault at 7ffe9991dff8 ip 00007efc382c5929 sp 00007ffe9991e000 error 6 in libaugeas.so.0.24.2[7efc38299000+44000]
Feb 28 20:07:21 reverseproxy01 kernel: [10042.873849] Code: 00 31 c9 ba f9 00 00 00 48 8d 35 df ec 01 00 31 c0 e8 ab f2 ff ff eb bc 66 0f 1f 84 00 00 00 00 00 41 57 45 89 c7 41 56 41 55 <41> 54 49 89 f4 55 4c 89 cd 53 48 89 fb 48 83 ec 28 89 54 24 04 64
Feb 28 20:07:21 reverseproxy01 systemd[1]: snap.certbot.certbot.989dd26b-ddbc-4d45-9e8f-ddef15cf4a0f.scope: Deactivated successfully.
Feb 28 20:07:21 reverseproxy01 systemd[1]: snap.certbot.certbot.989dd26b-ddbc-4d45-9e8f-ddef15cf4a0f.scope: Consumed 1.811s CPU time.