A unit that fails the instant you start it, with status=203/EXEC or status=217/USER, never executed your program at all. systemd got as far as trying to become the process you asked for, failed at the setup step, and gave up before your binary ran a single line.
This is the most useful thing to internalise about these codes: they are not your application crashing. Your logs will be empty because your code never started. So stop tailing the application log, and read what systemd is telling you instead. The number after the slash is a precise diagnosis of which pre-execution step failed. On Ubuntu 24.04 with systemd 255 the mapping is stable and worth committing to memory.
The codes that mean \”I never ran your binary\”
systemd reserves a block of exit codes in the 200s for failures that happen while it is setting up the execution environment for a service process. The full list is in systemd.exec(5) under \”Process exit codes\”. The four you will actually hit are:
Free · 4 minutes
Is your engineering team shipping safely, or quietly accumulating risk?
Fourteen questions on how work gets from idea to production — cadence, testing, rollback, and the key-person risk in your delivery. Banded finding on screen, full sheet by email.
- 203/EXEC — systemd could not execute the binary named in
ExecStart=. The path is wrong, the file does not exist, it is not marked executable, or its interpreter line points at nothing. - 217/USER — the account in
User=could not be resolved. The user does not exist, or the name is misspelt. - 200/CHDIR —
WorkingDirectory=could not be entered. The directory is missing, or the service user cannot reach it. - 209/STDOUT, 208/STDIN and neighbours — a redirect or standard-stream setup failed. Rarer, same family of cause.
Every one of these is a fault in the unit file or the filesystem, not in your code. That is good news: they are deterministic and quick to fix once you read them correctly.
A unit that fails on purpose
Here is a unit with two planted faults. It is a realistic shape — a Python worker run as a dedicated account — and it will fail before it ever starts.
# /etc/systemd/system/reconciler.service
[Unit]
Description=Nightly reconciliation worker
After=network-online.target
[Service]
Type=simple
User=reconciler
WorkingDirectory=/opt/reconciler
ExecStart=/opt/reconciler/venv/bin/reconcile --once
Restart=on-failure
[Install]
WantedBy=multi-user.target
Suppose the reconciler user was never created, and the real binary lives at /opt/reconciler/.venv/bin/reconcile (note the leading dot). This unit will fail with 217/USER first, because credential setup happens before the binary is located. Fix the user and it will then fail with 203/EXEC on the wrong path. systemd fails at the first broken step and stops, so you may fix these one at a time rather than all at once.
Read the journal, not the guesswork
Two commands tell you everything. systemctl status gives the headline code; journalctl -xeu gives the explanatory line systemd logged at the moment of failure.
systemctl status reconciler.service --no-pager
journalctl -xeu reconciler.service --no-pager
The -x flag adds systemd’s own explanatory text, -e jumps to the end of the journal, and -u scopes to the unit. For the faults above you will see lines close to these:
reconciler.service: Failed to determine user credentials: No such process
reconciler.service: Failed at step USER spawning /opt/reconciler/venv/bin/reconcile: No such process
...
reconciler.service: Failed to locate executable /opt/reconciler/venv/bin/reconcile: No such file or directory
reconciler.service: Failed at step EXEC spawning /opt/reconciler/venv/bin/reconcile: No such file or directory
\”Failed at step USER\” and \”Failed at step EXEC\” are the words that matter. They name the exact stage systemd reached. You do not need to interpret the number in the abstract — the journal spells out the step and the errno behind it (No such file or directory, Permission denied, Exec format error).
Fix it at the source, then prove it by hand
For 217/USER, create the account the unit expects, or correct the name in User=. A system service account with no login shell is the usual intent:
sudo useradd --system --home /opt/reconciler --shell /usr/sbin/nologin reconciler
getent passwd reconciler # confirms the resolver can now see it
For 203/EXEC, test the exact ExecStart line yourself before touching the unit again. Run it as the service user, from the working directory, with an absolute path — systemd does not search PATH:
ls -l /opt/reconciler/.venv/bin/reconcile # exists? executable bit set?
sudo -u reconciler /opt/reconciler/.venv/bin/reconcile --once
head -1 /opt/reconciler/.venv/bin/reconcile # is the shebang interpreter real?
If ls shows no x bit, chmod +x it. If the shebang points at a Python that has moved — a common outcome after rebuilding a virtualenv, or after installing a tool one way and referencing it another — repair the path. This is exactly where a disciplined install layout pays off; the same discipline behind installing Python CLI tools the sane way keeps ExecStart paths stable across rebuilds. Correct the path in the unit, then reload and restart:
sudo systemctl daemon-reload
sudo systemctl restart reconciler.service
systemctl is-active reconciler.service
The daemon-reload is not optional: edit a unit and forget it, and systemd keeps running the old definition, which produces the maddening symptom of a fix that changes nothing. For 200/CHDIR, create the WorkingDirectory and make sure the service user can traverse into it — every parent directory needs execute permission for that user, not just the leaf.
The rule that saves the callout
A 20x exit code is a pre-flight failure: the unit file describes an execution environment systemd cannot construct. Read the \”Failed at step\” line, reproduce the offending step by hand as the service user, fix the unit or the filesystem, daemon-reload, restart. It is worth encoding the correct shape once rather than debugging it repeatedly — the same care that goes into a baseline service and timer setup removes most of these faults before they ship. And keep 20x codes mentally separate from runtime failures like an OOM kill: one means your program never ran, the other means it ran and the kernel stopped it. Different symptom, different fix, and confusing the two wastes the most time of all.
Free interactive tool
Website compliance checklist
What your site has to do, based on what it actually does
Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.
Everything that applies
Ordered by what to do first: legal requirements you can close quickly, then larger pieces of work, then what is expected rather than required. Not exhaustive, and not a legal audit.
Dated PDF, yours to keep or circulate.
Most technology problems are not technology problems. They are control problems.
The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.