doc:appunti:linux:sa:systemd_tmpfiles_problem
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| doc:appunti:linux:sa:systemd_tmpfiles_problem [2024/02/20 10:24] – created niccolo | doc:appunti:linux:sa:systemd_tmpfiles_problem [2024/02/26 09:50] (current) – [Analyzing Systemd] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Problem with systemd-tmpfiles-setup service ====== | ====== Problem with systemd-tmpfiles-setup service ====== | ||
| + | |||
| + | In a **Debian 12 Bookworm** installation I faced some problems at bootstrap. Some services does not start basically because the **%%/ | ||
| < | < | ||
| Line 5: | Line 7: | ||
| No such file or directory (errno=2) | No such file or directory (errno=2) | ||
| </ | </ | ||
| + | |||
| + | An enlightening error message is displayed by **dmesg**: | ||
| + | |||
| + | < | ||
| + | systemd[1]: sysinit.target: | ||
| + | systemd[1]: sysinit.target: | ||
| + | ordering cycle starting with sysinit.target/ | ||
| + | </ | ||
| + | |||
| + | I.e. the service **sysinit.target** cannot start due a service ordering problem, so Systemd decided to delete the **systemd-tmpfiles-setup.service**. The problem could be with other Systemd unit too, e.g. the **avahi-daemon.socket**: | ||
| + | |||
| + | < | ||
| + | systemd[1]: avahi-daemon.socket: | ||
| + | systemd[1]: avahi-daemon.socket: | ||
| + | ordering cycle starting with avahi-daemon.socket/ | ||
| + | </ | ||
| + | |||
| + | Others problematic Systemd units can be: **sockets.target**, | ||
| + | |||
| + | ===== Analyzing Systemd ===== | ||
| + | |||
| + | < | ||
| + | systemd-analyze verify default.target | ||
| + | </ | ||
| + | |||
| + | The command highlights an **ordering cycle** problem, which causes the deleting of a service: | ||
| + | |||
| + | < | ||
| + | sockets.target: | ||
| + | sockets.target: | ||
| + | ... | ||
| + | sockets.target: | ||
| + | cycle starting with sockets.target/ | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | Notice that the ordering (and the deleting choice) is not deterministic: | ||
| + | |||
| + | The problem was introduced by this custom Postfix/ | ||
| + | **[[postfix_courier_authdaemon_debian_12]]**. In fact disabling the Systemd '' | ||
| + | |||
| + | In this specific case the problem was completely solved changing the dependencies of the **[[https:// | ||
doc/appunti/linux/sa/systemd_tmpfiles_problem.1708421059.txt.gz · Last modified: by niccolo
