Fix systemd status=210/CHROOT
Trace the RootDirectory= path for systemd status=210/CHROOT. Distinguish a missing service root from a working directory or executable missing inside it.
Process: 126 ExecStart=/usr/bin/true (code=exited, status=210/CHROOT)The unit set MountAPIVFS=no and pointed RootDirectory= at a missing directory. Its journal recorded the failing operation.
Nov 23 02:31:15 server1 (true)[126]: gb210-uve6jlV6-fail.service: Chrooting to the requested root directory failed: No such file or directoryThe control unit omitted RootDirectory=. The same /usr/bin/true command succeeded.
Process: 150 ExecStart=/usr/bin/true (code=exited, status=0/SUCCESS)If status=210/CHROOT accompanies a journal entry about changing root, resolve RootDirectory= from the service manager’s filesystem. The application may have no log of its own because the failure occurs before it starts.
[1] Read the latest start attempt and the settings loaded for it. Substitute the failed unit for myapp.service.
# systemctl status --full --no-pager myapp.service# journalctl -b -u myapp.service -n 40 --no-pager# systemctl show myapp.service -p RootDirectory -p RootImage -p WorkingDirectory -p ExecStart# systemctl cat myapp.serviceRead the effective root path from show. Locate its assignment in the unit file or drop-ins listed by cat. If the manager runs inside a container, inspect the path from inside that container.
[2] Walk the configured path. For a root at /srv/myapp/rootfs, check each component and the filesystem backing its parent.
# namei -l /srv/myapp/rootfs# findmnt -T /srv/myappLook for the first missing component, including the target of a release symlink. If the deployment uses a separate volume, compare the mount target and source with the deployment configuration. Creating an empty directory at a missing mount point leaves the program and its dependencies absent.
[3] Match the failure stage to the path. Take a service with WorkingDirectory=/app and ExecStart=/usr/bin/myapp.
| Code | Path to inspect |
|---|---|
| 210/CHROOT | The new root as seen by the manager, here /srv/myapp/rootfs. |
| 200/CHDIR | The directory /app inside that root. Check its working directory and access permissions. |
| 203/EXEC | The binary at /usr/bin/myapp inside that root and its interpreter or loader. See executable lookup failures. |
A missing root can fail earlier during mount namespace setup. With RootDirectory= set, v255 enables MountAPIVFS= by default. Follow the namespace failure guide if the journal reports 226. The isolated 210 test sets MountAPIVFS=no and uses no other mount isolation settings. Preserve the production unit’s isolation when correcting its path.
[4] Restore the deployed root and its mounts. If the assignment points to the wrong tree, record the previous value and correct the path. Clearing RootDirectory= starts the process in the manager’s root and removes the filesystem boundary the deployment relies on.
# systemctl daemon-reload# systemctl restart myapp.service# systemctl status --full --no-pager myapp.serviceRestarting interrupts a running service. To roll back a unit edit, restore the previous path, reload the manager and restart the unit again. If the code changes to 200 or 203, use the new attempt’s timestamp and follow the matching row above.
Analyze your syslog · journal log in the browser ↗ — nothing is uploaded.