I have installed your certificate for Icecast2 Media server and I run Ubuntu 20.10.
I can not get a renewal from following script with Certbot renewal dry run I have attached the log for letsencrypt alone with terminal mode error
All help in setup auto renewal for my certificate please help
root@louie:~# certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/kpurrr.com.conf
Renewal configuration file /etc/letsencrypt/renewal/kpurrr.com.conf is broken.
The error was: renewal config file {'post_hook': 'cat /etc/letsencrypt/live/kpurrr.com/fullchain.pem /etc/letsencrypt/live/kpurrr.com/privkey.pem > /etc/icecast2/bundle.pem > /etc/icecast2/bundle.pem && service icecast2 restart'} is missing a required file reference
Skipping.
No simulated renewals were attempted.
Additionally, the following renewal configurations were invalid:
/etc/letsencrypt/renewal/kpurrr.com.conf (parsefail)
0 renew failure(s), 1 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
root@louie:~#
/etc/letsencrypt/renewal/kpurrr.com.conf
post_hook = cat /etc/letsencrypt/live/kpurrr.com/fullchain.pem /etc/letsencrypt/live/kpurrr.com/privkey.pem > /etc/icecast2/bundle.pem > /etc/icecast2/bundle.pem && service icecast2 restart
I port 80 open and tried start and stop with icecast2 and ubuntu reboot
here is current log for letsencrypt.log
2023-03-25 11:19:37,495:DEBUG:certbot._internal.main:certbot version: 1.29.0
2023-03-25 11:19:37,495:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-03-25 11:19:37,495:DEBUG:certbot._internal.main:Arguments: ['--dry-run']
2023-03-25 11:19:37,495:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-03-25 11:19:37,503:DEBUG:certbot._internal.log:Root logging level set at 30
2023-03-25 11:19:37,504:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/kpurrr.com.conf
2023-03-25 11:19:37,505:ERROR:certbot._internal.renewal:Renewal configuration file /etc/letsencrypt/renewal/kpurrr.com.conf is broken.
2023-03-25 11:19:37,505:ERROR:certbot._internal.renewal:The error was: renewal config file {'post_hook': 'cat /etc/letsencrypt/live/kpurrr.com/fullchain.pem /etc/letsencrypt/live/kpurrr.com/privkey.pem > /etc/icecast2/bundle.pem > /etc/icecast2/bundle.pem && service icecast2 restart'} is missing a required file reference
Skipping.
2023-03-25 11:19:37,506:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/_internal/renewal.py", line 77, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python3/dist-packages/certbot/_internal/storage.py", line 483, in init
raise errors.CertStorageError(
certbot.errors.CertStorageError: renewal config file {'post_hook': 'cat /etc/letsencrypt/live/kpurrr.com/fullchain.pem /etc/letsencrypt/live/kpurrr.com/privkey.pem > /etc/icecast2/bundle.pem > /etc/icecast2/bundle.pem && service icecast2 restart'} is missing a required file reference
2023-03-25 11:19:37,506:DEBUG:certbot._internal.display.obj:Notifying user:
2023-03-25 11:19:37,506:DEBUG:certbot._internal.display.obj:Notifying user: No simulated renewals were attempted.
2023-03-25 11:19:37,506:DEBUG:certbot._internal.display.obj:Notifying user:
Additionally, the following renewal configurations were invalid:
2023-03-25 11:19:37,506:DEBUG:certbot._internal.display.obj:Notifying user: /etc/letsencrypt/renewal/kpurrr.com.conf (parsefail)
2023-03-25 11:19:37,506:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2023-03-25 11:19:37,506:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in
sys.exit(load_entry_point('certbot==1.29.0', 'console_scripts', 'certbot')())
File "/usr/lib/python3/dist-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1744, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1630, in renew
renewal.handle_renewal_request(config)
File "/usr/lib/python3/dist-packages/certbot/_internal/renewal.py", line 510, in handle_renewal_request
raise errors.Error(
certbot.errors.Error: 0 renew failure(s), 1 parse failure(s)
2023-03-25 11:19:37,507:ERROR:certbot._internal.log:0 renew failure(s), 1 parse failure(s)