After last night's deploy, orders-api is down and the load balancer is returning 502s. The deploy log shows systemctl start orders-api ran, but the service never came up. Two weeks ago, during an unrelated outage, someone on the team masked this unit to stop it flapping — and the runbook step to revert it was never done.
Figure out WHY the unit won't start and identify the correct fix — before anyone edits the unit file or reinstalls the package (neither will help).
orders-1, Debian 12 (systemd).orders-api.service, installed under /opt/orders-api.systemctl start appears to do nothing and the unit stays down.You've solved it when:
systemctl status orders-api and seen `Loaded: maskedActive: inactive (dead), not failed.)
journalctl -u orders-api shows -- No entries --systemctl start orders-api reports `Unit
orders-api.service is masked.` This is NOT a 203/EXEC, NOT an app crash,
and NOT a resource problem.
systemctl unmask orders-api, then systemctl start orders-api
(and systemctl enable orders-api to survive reboot).