All sites down after deleting a site

Bug Report Template

Description

I deleted a site through the Apis dashboard. The server stopped responding so after a few minutes we rebooted it. Neither apis nor the sites came up after the reboot. I restarted apis and the dashboard now comes up but with inaccurate information (it lists the last reboot as 8 days ago instead of a few minutes ago and nexus doesn’t list any sites). I did htrebuild and restarted apache. Sites now respond with a browser warning because they are using the hostname SSL cert. After clicking through the browser warning a generic 404 page appears. This is true for every site on the server.

Expected Behavior

I expected the site to be deleted without taking down the other sites.

Environment

ApisCP version: cpcmd misc:cp-version
Operating System: uname -r

cpcmd misc:cp-version
revision: dd6024bcb1aa8eafed84173f3f25c00cce226c86
timestamp: 1722360217
ver_maj: 3
ver_min: 2
ver_patch: 44
ver_pre: ‘’
dirty: false
debug: false

uname -r
4.18.0-553.8.1.el8_10.x86_64

Thank you.

Matt fixed this. Noting it here if anyone has a similar problem:

Next time this happens, check if systemd-resolved service is active: systemctl status systemd-resolved

systemd-resolved should be monitored. A trailing space in the condition resulted in being treated as a string rather than boolean condition, fixed going forward.