Howto Reinstall account provider

NethServer Version: NethServer release 7.9.2009 (final)
Module: Users and groups

Happy New Year to everyone.

I’m new to the nethserver and made a mistake in the installationprocess of the account provider.
I forgot to create a logical bridge. And so the Installation of the account provider got stuck.
The only thing I see in the WebUi is under Users&Groups, an empty screen.
Screen_004

Is there a way to restart the accountprovider installationprocess?
like in the documentation “changing of account provider” mentioned in the section “reinstall accountprovider” I can’t see any buttons.

So is there a way I can fix that in Cli?

It seems that in earlyear versions of the nethserver this was possible, but the howto are gone.
I don’t want to reinstall the neth server, but If it doesn’t make sens to restart that installation of the account provider feel free to give me that feedback. But I won’t learn anything :wink:

Thanks for a feedback.

With kindly regards

Uli

In the Servicepanel of the webui is shown that the sssd service won’t start.

The Command I’ve copied from the WebUi:
“echo ‘{“action”:“start”,“name”:“sssd”}’ | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-services/update | jq”

*Errormessage from \var\log\sssd*

023-12-31 17:06:41:921958): [sssd] [sss_ini_get_config] (0x0010): Failed to parse configuration. Error 5.
(2023-12-31 17:06:41:922024): [sssd] [sss_ini_get_config] (0x0010): Errors detected while parsing: /etc/sssd/sssd.conf
(2023-12-31 17:06:41:922073): [sssd] [sss_ini_config_print_errors] (0x0010): Error (8) on line 1: Failed to read line.
(2023-12-31 17:06:41:922115): [sssd] [confdb_ldif_from_ini_file] (0x0010): Failed to load configuration
(2023-12-31 17:06:41:922137): [sssd] [confdb_init_db] (0x0020): Cannot convert INI to LDIF [5]: [Input/output error]
(2023-12-31 17:06:41:922169): [sssd] [confdb_setup] (0x0010): ConfDB initialization has failed [5]: Input/output error
(2023-12-31 17:06:41:922205): [sssd] [load_configuration] (0x0010): Unable to setup ConfDB [5]: Input/output error
(2023-12-31 17:06:41:922223): [sssd] [main] (0x0020): SSSD couldn’t load the configuration database.
(2023-12-31 17:06:46:190354): [sssd] [sss_ini_get_config] (0x0010): Failed to parse configuration. Error 5.
(2023-12-31 17:06:46:190391): [sssd] [sss_ini_get_config] (0x0010): Errors detected while parsing: /etc/sssd/sssd.conf
(2023-12-31 17:06:46:190424): [sssd] [sss_ini_config_print_errors] (0x0010): Error (8) on line 1: Failed to read line.
(2023-12-31 17:06:46:190443): [sssd] [confdb_ldif_from_ini_file] (0x0010): Failed to load configuration
(2023-12-31 17:06:46:190458): [sssd] [confdb_init_db] (0x0020): Cannot convert INI to LDIF [5]: [Input/output error]
(2023-12-31 17:06:46:190480): [sssd] [confdb_setup] (0x0010): ConfDB initialization has failed [5]: Input/output error
(2023-12-31 17:06:46:190506): [sssd] [load_configuration] (0x0010): Unable to setup ConfDB [5]: Input/output error
(2023-12-31 17:06:46:190518): [sssd] [main] (0x0020): SSSD couldn’t load the configuration database.
(2023-12-31 17:09:59:350775): [sssd] [sss_ini_get_config] (0x0010): Failed to parse configuration. Error 5.
(2023-12-31 17:09:59:350828): [sssd] [sss_ini_get_config] (0x0010): Errors detected while parsing: /etc/sssd/sssd.conf
(2023-12-31 17:09:59:350877): [sssd] [sss_ini_config_print_errors] (0x0010): Error (8) on line 1: Failed to read line.
(2023-12-31 17:09:59:350904): [sssd] [confdb_ldif_from_ini_file] (0x0010): Failed to load configuration
(2023-12-31 17:09:59:350927): [sssd] [confdb_init_db] (0x0020): Cannot convert INI to LDIF [5]: [Input/output error]
(2023-12-31 17:09:59:350959): [sssd] [confdb_setup] (0x0010): ConfDB initialization has failed [5]: Input/output error
(2023-12-31 17:09:59:351003): [sssd] [load_configuration] (0x0010): Unable to setup ConfDB [5]: Input/output error
(2023-12-31 17:09:59:351025): [sssd] [main] (0x0020): SSSD couldn’t load the configuration database.

Errormassage in /var/log/messages/messages

1 17:02:05 ComConPrime systemd: Starting System Security Services Daemon…
Jan 1 17:02:05 ComConPrime sssd[sssd]: SSSD couldn’t load the configuration database [5]: Input/output error.
Jan 1 17:02:05 ComConPrime systemd: sssd.service: main process exited, code=exited, status=4/NOPERMISSION
Jan 1 17:02:05 ComConPrime systemd: Failed to start System Security Services Daemon.
Jan 1 17:02:05 ComConPrime systemd: Unit sssd.service entered failed state.
Jan 1 17:02:05 ComConPrime systemd: sssd.service failed.

Hi.
If it is a new install of AD account provider with no users, either factory reset or the procedure you mention (change account provider instructions), depending at which stage it failed.

Full AD/DC factory reset:

signal-event nethserver-dc-factory-reset
rm -rf /var/lib/machines/nsdc

For AD the bridge is created by the AD install procedure according to the provided IP address. For OpenLDAP no bridge is needed.

3 Likes

Thank you Marc for the solution.
Have a nice evening.

Uli