systemd pauses for unspecified reason
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
I recently installed Kubuntu 20.04 on a new Ryzen 3900X system. I noticed that the boot time (time between entering LUKS credentials and appearance of login screen) took more than 1 minute.
Using `systemd-analyze`, I found the following:
```
cassiopeia:~# systemd-analyze
Startup finished in 24.819s (kernel) + 1min 32.150s (userspace) = 1min 56.969s
graphical.target reached after 1min 32.144s in userspace
cassiopeia:~# systemd-analyze blame
4.721s fstrim.service
2.949s apt-daily-
2.380s <email address hidden>
1.739s NetworkManager-
439ms apt-daily.service
421ms man-db.service
398ms systemd-
323ms dev-mapper-
294ms <email address hidden>
204ms logrotate.service
153ms systemd-
...
cassiopeia:~# systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @1min 32.144s
└─multi-user.target @1min 32.144s
└─fetchmail.
└─network-
└
```
This didn't really help, but `systemd-analyze plot > boot.svg` produced an SVG file (see attachment) that shows a gap between store.mount (completes within 38 ms) and apparmor.service of almost 1:30 minutes. What did systemd do during this gap?
I think it is either a bug in systemd that idles, or in systemd-analyze that doesn't disclose the actions in that gap.
(Note: I have posted this question in two well-known Ubuntu forums, but I didn't receive any answers.)
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Invalid |

you should check your journal to see what service timed out, as that is most likely what caused the delay.