Multiple `Dependency failed` on startup
Hi!
After the last system update I did last week I noticed multiple systemd services fails with `Dependency failed` error, systemd offers me to enter into maintenance mode with root but if I hit Ctrl+D the booting phase finishes and GDM starts normally and all works just fine.
These errors on some systemd files stales the boot process, which is annoying, and I cannot figure what's wrong or how to fix any of this, if someone can provide some insight of what going on I will very much appreciate it. Here are some logs from journalctl:
/u/shackra@sanson-gnu ~
> $ sudo journalctl -xb | grep -A 8 'dependency'
jul 21 12:14:21 sanson-gnu systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
jul 21 12:14:21 sanson-gnu systemd[1]: home.mount: Job home.mount/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-fsck@dev-disk-by\x2duuid-f4730f0b\x2d2e09\x2d439c\x2d8271\x2dc74a0ce5c922.service: Job systemd-fsck@dev-disk-by\x2duuid-f4730f0b\x2d2e09\x2d439c\x2d8271\x2dc74a0ce5c922.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Reached target Timers.
-- Subject: Unit timers.target has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit timers.target has finished starting up.
--
-- The start-up result is RESULT.
--
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-journal-flush.service: Job systemd-journal-flush.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Dependency failed for Network Time Synchronization.
-- Subject: Unit systemd-timesyncd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-timesyncd.service has failed.
--
-- The result is RESULT.
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-timesyncd.service: Job systemd-timesyncd.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Dependency failed for Update UTMP about System Boot/Shutdown.
-- Subject: Unit systemd-update-utmp.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-update-utmp.service has failed.
--
-- The result is RESULT.
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-update-utmp.service: Job systemd-update-utmp.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Dependency failed for Load/Save Random Seed.
-- Subject: Unit systemd-random-seed.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-random-seed.service has failed.
--
-- The result is RESULT.
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-random-seed.service: Job systemd-random-seed.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Dependency failed for Virtual Machine and Container Storage.
-- Subject: Unit var-lib-machines.mount has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit var-lib-machines.mount has failed.
--
-- The result is RESULT.
jul 21 12:14:21 sanson-gnu systemd[1]: var-lib-machines.mount: Job var-lib-machines.mount/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: var.mount: Job var.mount/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: systemd-fsck@dev-disk-by\x2duuid-2310dfc2\x2def1b\x2d4035\x2db25b\x2dd1886e5b2bce.service: Job systemd-fsck@dev-disk-by\x2duuid-2310dfc2\x2def1b\x2d4035\x2db25b\x2dd1886e5b2bce.service/start failed with result 'dependency'.
jul 21 12:14:21 sanson-gnu systemd[1]: Reached target System Time Synchronized.
-- Subject: Unit time-sync.target has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit time-sync.target has finished starting up.
--
-- The start-up result is RESULT.
About this post
- Posted
- Archived
- Score
- 6 · 100% up
- Kind
- Text
- ID
- 90tyzu
6 comments
That grep isn't particularly useful. The culprit won't be identified with it.
Imagine services B, C, D, E and F all depend on service A. If service A failed to start, they will all fail with the result "dependency". But service A, the one that triggered it all, failed for some other reason. You need to identify the cause, which is service A, not the symptoms, which is everything that failed because A didn't start.
Instead, try something like
$ sudo journalctl -xb | grep 'failed with result' | grep -v 'dependency'to find the culprit, then you can examine the cause for it's failure.omw!
The output is different but there is nothing relevant.
I will update the kernel as there is an update, hopefully /u/saviour78 is right and updating will fix this.
Did you do -Syu or something else?
Yesterday I did, but nothing has changed in regards to this issue
Right, I was having a similar issue with kernel release
4.17.6-1-ARCH. Once I updated to4.17.8-1-ARCH, though, the issue was resolved.I'm sure this was not an effect of the kernel update, but the system update also managed to disable LXDM for me too; so just a heads up, I suppose, if you're running LXDM.