GrepBoard/Manuals
605 manuals ·

Fix systemd status=210/CHROOT

·Tested on Ubuntu 24.04 (Docker) · systemd 255 (255.4-1ubuntu8.19) · 2026-11·Test scope ↓·4 steps

Trace the RootDirectory= path for systemd status=210/CHROOT. Distinguish a missing service root from a working directory or executable missing inside it.

output
    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.

output
Nov 23 02:31:15 server1 (true)[126]: gb210-uve6jlV6-fail.service: Chrooting to the requested root directory failed: No such file or directory

The control unit omitted RootDirectory=. The same /usr/bin/true command succeeded.

output
    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.

console
# 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.service

Read 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.

console
# namei -l /srv/myapp/rootfs# findmnt -T /srv/myapp

Look 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.

CodePath to inspect
210/CHROOTThe new root as seen by the manager, here /srv/myapp/rootfs.
200/CHDIRThe directory /app inside that root. Check its working directory and access permissions.
203/EXECThe 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.

console
# systemctl daemon-reload# systemctl restart myapp.service# systemctl status --full --no-pager myapp.service

Restarting 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.

#systemd#chroot#rootdirectory