[systemd-devel] Method to solve a "ordering cycle"

Daniel Spannbauer ds at marco.de
Sun Sep 6 23:10:54 PDT 2015


Am 09/06/2015 um 03:50 PM schrieb Lennart Poettering:
> On Wed, 02.09.15 17:08, Daniel Spannbauer (ds at marco.de) wrote:
>
>> Hello,
>>
>> I often have a ordering cycle so a service is deleted at boot.
>>
>> Is there a standard way of getting rid of that cycles or to find the
>> cause of them?
> Well, when systemd finds one of these cyclic ordering dependencies it will
> print your the full chain of it in the logs. It's not too difficult to
> read that actually, as it starts with one unit, and then shows you the
> next one that is ordered after it, and then the next one, and so on,
> until it comes back to the original one which is supposed to be after
> that last one... Now it's just a matter to figure out where to break
> the cycle and drop the ordering dependency.
>
> Lennart
>
Hmmmm,

the following log isfrom one of my machines:

Sep 04 14:56:04 fry systemd[1]: Activating default unit: default.target
Sep 04 14:56:04 fry systemd[1]: Trying to enqueue job
multi-user.target/start/replace
Sep 04 14:56:04 fry systemd[1]: ESC[1;39mFound ordering cycle on
remote-fs-pre.target/startESC[0m
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to
nss-lookup.target/start
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to named.service/start
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to ldap.service/start
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to
remote-fs.target/start
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to
owncloud_all.mount/start
Sep 04 14:56:04 fry systemd[1]: Walked on cycle path to
remote-fs-pre.target/start
Sep 04 14:56:04 fry systemd[1]: ESC[1;31mBreaking ordering cycle by
deleting job nss-lookup.target/startESC[0m
Sep 04 14:56:04 fry systemd[1]: Deleting job postfix.service/start as
dependency of job nss-lookup.target/start


Which service generates the trouble and what should I do to get rid of this?

Regards

Daniel




More information about the systemd-devel mailing list