[OpenIndiana-discuss] services dependency cycle

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Thu May 5 18:41:16 UTC 2022


On 5/5/22 20:23, Till Wegmueller wrote:
> Hello Everyone
>
> So I think this is a Update configuration of the same Problem we where 
> talking recently in illumos-developer list and Openindiana Maintainer 
> meetup.
>
> We thought it was svc:/system/device/local:default but here it is 
> svc:/system/filesystem/usr
>
> Stefan can you check the output of the following services with svcs -l?
> svcs -l svc:/system/filesystem/usr:default
> svcs -l svc:/system/filesystem/minimal:default
> svcs -l svc:/system/device/local:default
>
> So we can compare outputs?
> Can you grep in /lib/svc/manifests if any section is dependent 
> system/filesystem/usr and not depdendency thus making the cycle?
> Example grep:
> grep -A 3 -B 6 -R 'system/filesystem/usr' /lib/svc/manifest/
>
> Can you grep for dependent in your /lib/svc/manifest and check if any 
> service marks something as dependent there that looks odd? Like 
> network setting filesystem/usr to dependent etc.
>
>
> Thanks for helping debug this and
> Greetings
> Till
>
>
> On 05.05.22 10:31, Stephan Althaus wrote:
>> On 5/5/22 15:22, Maurilio Longo via openindiana-discuss wrote:
>>> Hi Stephan,
>>>
>>> I had a similar problem in the past due to the meta-init service not 
>>> being completely removed by a previous update.
>>>
>>> Maybe it is the same meta-something Espen remembers.
>>>
>>> Regards.
>>> Maurilio.
>>>
>>>> Il 05/05/2022 15:07 Stephan Althaus 
>>>> <stephan.althaus at duedinghausen.eu> ha scritto:
>>>>
>>>> On 5/5/22 14:51, Espen Martinsen wrote:
>>>>> Hi,
>>>>>     I had this on an old laptop for some weeks ago, and it was 
>>>>> because
>>>>> of a "leftver?) metadb-service, I just removed the service 
>>>>> completely,
>>>>> and then everything was fine.
>>>>>     Noen of the binaries from old "disksuite" was left anyway, that's
>>>>> why it would not start.
>>>>>
>>>>> -espen
>>>>>
>>>>> On 5/5/22 14:40, Stephan Althaus wrote:
>>>>>> Hello!
>>>>>>
>>>>>> After pkg update on one of my systems, i get a maintenance mode 
>>>>>> login
>>>>>> due to a dependency loop, many of the services are not starting.
>>>>>>
>>>>>> I bootet a previous BE and did a
>>>>>>
>>>>>> beadm mount openindiana-2022:05:05  /a
>>>>>>
>>>>>> In /var/svc/log there is an entry only in
>>>>>>
>>>>>> system-filesystem-usr:default.log:4706:[ May  5 13:40:12 Stopping 
>>>>>> for
>>>>>> maintenance due to dependency_cycle. ]
>>>>>> system-filesystem-usr:default.log:4707:[ May  5 13:40:12 Stopping 
>>>>>> for
>>>>>> maintenance due to dependency_cycle. ]
>>>>>> system-filesystem-usr:default.log:4708:[ May  5 14:11:35 Stopping 
>>>>>> for
>>>>>> maintenance due to dependency_cycle. ]
>>>>>> system-filesystem-usr:default.log:4709:[ May  5 14:11:35 Stopping 
>>>>>> for
>>>>>> maintenance due to dependency_cycle. ]
>>>>>>
>>>>>> i don't find a log where the other dependant services are mentioned.
>>>>>>
>>>>>>
>>>>>> Does anyone knows of changes in the service dependencies that may be
>>>>>> related?
>>>>>>
>>>>>>
>>>>>> Any help is appreciated :-)
>>>>>>
>>>>>> Stephan
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> openindiana-discuss mailing list
>>>>>> openindiana-discuss at openindiana.org
>>>>>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>>>>
>>>> @Espen: Thanks for your input.. I dont have the service metadb
>>>>
>>>> svc:/system/filesystem/usr:default (read/write root file systems 
>>>> mounts)
>>>>    State: maintenance since  5 May 2022 at 14:58:23 CEST
>>>> Reason: Completes a dependency cycle.
>>>>      See: http://illumos.org/msg/SMF-8000-HP
>>>> Impact: 89 dependent services are not running:
>>>>           svc:/network/ipsec/ipsecalgs:default
>>>>           svc:/system/device/local:default
>>>>           svc:/system/filesystem/minimal:default
>>>>           svc:/system/manifest-import:default
>>>>           svc:/application/print/service-selector:default
>>>>           svc:/network/location:default
>>>>           svc:/network/dns/client:default
>>>>           svc:/network/ipfilter:default
>>>>           svc:/network/rpc/bind:default
>>>>           svc:/system/sysding:system
>>>>           svc:/milestone/sysconfig:default
>>>>           svc:/milestone/multi-user:default
>>>>           svc:/system/intrd:default
>>>>           svc:/milestone/multi-user-server:default
>>>>           svc:/application/texinfo-update:default
>>>>           svc:/system/zones:default
>>>>           svc:/system/system-log:default
>>>>           svc:/network/smtp:sendmail
>>>>           svc:/network/sendmail-client:default
>>>>           svc:/system/utmp:default
>>>>           svc:/system/console-login:default
>>>>           svc:/network/ssh:default
>>>>           svc:/network/inetd:default
>>>>           svc:/system/sac:default
>>>>           svc:/system/idmap:default
>>>>           svc:/network/smb/client:default
>>>>           svc:/network/smb/server:default
>>>>           svc:/network/shares/group:default
>>>>           svc:/network/shares/group:smb
>>>>           svc:/network/shares/group:zfs
>>>>           svc:/system/filesystem/autofs:default
>>>>           svc:/system/dumpadm:default
>>>>           svc:/system/fmd:default
>>>>           svc:/application/pkg/system-repository:default
>>>>           svc:/application/pkg/zones-proxyd:default
>>>>           svc:/system/identity:domain
>>>>           svc:/system/name-service-cache:default
>>>>           svc:/milestone/single-user:default
>>>>           svc:/system/filesystem/local:default
>>>> svc:/application/desktop-cache/input-method-cache:default
>>>> svc:/application/desktop-cache/dconf-update:default
>>>>           svc:/system/smartd:default
>>>>           svc:/system/cron:default
>>>> svc:/application/desktop-cache/mime-types-cache:default
>>>>           svc:/system/xvm/vnc-config:default
>>>>           svc:/system/update-man-index:default
>>>>           svc:/system/hotplug:default
>>>> svc:/application/desktop-cache/docbook-catalog-update:default
>>>>           svc:/application/desktop-cache/icon-cache:default
>>>> svc:/application/desktop-cache/pixbuf-loaders-installer:default
>>>>           svc:/application/virtualbox/zoneaccess:default
>>>>           svc:/system/boot-archive-update:default
>>>>           svc:/application/desktop-cache/gconf-cache:default
>>>>           svc:/system/filesystem/rmvolmgr:default
>>>>           svc:/application/x11/x11-init:default
>>>> svc:/application/desktop-cache/desktop-mime-cache:default
>>>>           svc:/system/consolekit:default
>>>>           svc:/application/virtualbox/run-once:default
>>>>           svc:/network/routing-setup:default
>>>>           svc:/network/routing/route:default
>>>>           svc:/system/coreadm:default
>>>>           svc:/system/rbac:default
>>>>           svc:/system/resource-mgmt:default
>>>>           svc:/network/service:default
>>>>           svc:/network/iscsi/initiator:default
>>>>           svc:/network/ntp:default
>>>>           svc:/system/sysevent:default
>>>>           svc:/network/npiv_config:default
>>>>           svc:/system/device/fc-fabric:default
>>>>           svc:/milestone/devices:default
>>>>           svc:/system/device/audio:default
>>>>           svc:/system/picl:default
>>>>           svc:/system/hal:default
>>>>           svc:/platform/i86pc/acpihpd:default
>>>>           svc:/system/rmtmpfiles:default
>>>>           svc:/system/power:default
>>>>           svc:/system/pkgserv:default
>>>>           svc:/system/dbus:default
>>>>           svc:/system/hostid:default
>>>>           svc:/system/zones-monitoring:default
>>>> svc:/application/desktop-cache/gio-module-cache:default
>>>>           svc:/application/font/fc-cache:default
>>>>           svc:/system/ca-certificates:default
>>>>           svc:/system/logadm-upgrade:default
>>>>           svc:/application/opengl/ogl-select:default
>>>>           svc:/application/cups/scheduler:default
>>>>           svc:/system/keymap:default
>>>>           svc:/network/initial:default
>>>>           svc:/system/pfexec:default
>>>>
>>>> svc:/network/rpc/gss:default (Generic Security Service)
>>>>    State: uninitialized since  5 May 2022 at 14:58:24 CEST
>>>> Reason: Restarter svc:/network/inetd:default is not running.
>>>>      See: http://illumos.org/msg/SMF-8000-5H
>>>>      See: man -M /usr/share/man -s 8 gssd
>>>> Impact: 10 dependent services are not running:
>>>>           svc:/network/smb/client:default
>>>>           svc:/milestone/multi-user:default
>>>>           svc:/system/intrd:default
>>>>           svc:/milestone/multi-user-server:default
>>>>           svc:/application/texinfo-update:default
>>>>           svc:/system/zones:default
>>>>           svc:/network/smb/server:default
>>>>           svc:/network/shares/group:default
>>>>           svc:/network/shares/group:smb
>>>>           svc:/network/shares/group:zfs
>>>>
>>>> svc:/network/rpc/smserver:default (removable media management)
>>>>    State: uninitialized since  5 May 2022 at 14:58:25 CEST
>>>> Reason: Restarter svc:/network/inetd:default is not running.
>>>>      See: http://illumos.org/msg/SMF-8000-5H
>>>>      See: man -M /usr/share/man -s 8 rpc.smserverd
>>>> Impact: 3 dependent services are not running:
>>>>           svc:/milestone/multi-user-server:default
>>>>           svc:/application/texinfo-update:default
>>>>           svc:/system/zones:default
>>>>
>>>>
>>>> _______________________________________________
>>>> openindiana-discuss mailing list
>>>> openindiana-discuss at openindiana.org
>>>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>> _______________________________________________
>>> openindiana-discuss mailing list
>>> openindiana-discuss at openindiana.org
>>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>> Ah, i have meta-init. Will try this this evening, my kids are calling 
>> :-)
>>
>> Thanks Espen!
>>
>>
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss at openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

Hello!

# svccfg delete metainit

did solve the issue. This also means that the "snaphot in time" of the 
broken system is lost now, i did not create a zfs snapshot.

the output of

svcs -l svc:/system/filesystem/usr:default
svcs -l svc:/system/filesystem/minimal:default
svcs -l svc:/system/device/local:default

looks the same on my OI systems now.

I will try a reboot to an older BE 2021:11:09 to get the historical 
dependencies...

Stephan




More information about the openindiana-discuss mailing list