After last night's deploy, orders-api is down. systemctl start orders-api returns to the prompt with no error, but the service never comes up and the load balancer is returning 502s. The on-call before you already tried restarting it a few times and was about to redeploy the whole build.
Figure out WHY the unit won't start and identify the correct fix — before anyone reinstalls anything they don't need to.
orders-1, Debian 12 (systemd).orders-api.service (enabled), installed under /opt/orders-api.systemctl start appears to succeed but the unit ends up failed.You've solved it when:
systemctl status orders-api and seen it is failed withstatus=203/EXEC — an execve() failure, not a crash of the app itself.
journalctl -xeu orders-api) and found the rootls -l /opt/orders-api) that the/opt/orders-api/server, not under bin/ —
so this is a wrong-path bug, NOT a missing build and NOT a permissions
issue (ENOENT, not EACCES).
ExecStart= path in the unit