My certificate would not renew either automatically or manually. I did not find an answer when searching the forum or internet in general so I'm posting here so others may be able to find it in the future.
I'm running Ubuntu with Apache and AppArmor. Apparmor. When running certbot -v renew manually, it gave the error
Did you add Apache to the AppArmor profile with enforce mode?
Because Apache isn't there by default on Ubuntu (or hasn't been anyway).
If so it is reasonable to need to add that path when using the --apache plugin with Certbot. That is the path it uses for the challenge token files so Apache would need access to that path.
In general, it is a good idea to test Certbot's renewal procedure after a system change.
sudo certbot renew --dry-run
This will not affect any production certs or your Apache config. It is a test only
In addition to the syslog the Apache error and access logs would have had info about the reason it issued a 403 Forbidden.
Yes, I did enable AppArmor. When the certificate did not renew as expected, I was not able to find any info specific to renewal and AppArmor and figured the one-liner fix might be useful. Also, the failure proved AppArmor did it's job so confidence boosted.