Score:0

Does certbot mask apache2?

cn flag
Bix

I recently ran a certbot command using --webroot on a server. Everything worked fine for 8+ hours.

This morning my frontend went down. Upon investigation I discovered that the apache2 service was down. It was masked for some reason so I unmasked it. It restarted but did not work. I tried to run a configtest but apache2ctl was not found. I ran sudo apt install apache2. Now everything is working again.

However I need to figure out the root cause of this issue and I cannot find anything in the logs or from searching. My guess is this was caused by certbot but I need to confirm that. Does anyone have any insight here?

Ubuntu 18, apache2, certbot via snap

Thank you

Nikita Kipriyanov avatar
za flag
Read your package manager logs (I think, `/var/log/dpkg.log*`, `/var/log/apt/*` or something like that). It is more likey someone (including you) were installing something that was required removal of apache. And no, certbot itself has no such requirement.
Bix avatar
cn flag
Bix
Thanks for that tip. It looks like `startup packages remove` is the culprit here. I'm not entirely sure how this process works but I will do some investigating.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.