Bug 56042 - SSSD couldn't load the configuration database [5]: Input/output error status=4/NOPERMISSION
Summary: SSSD couldn't load the configuration database [5]: Input/output error status=...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: sssd (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 major
Assignee: Evgeny Sinelnikov
QA Contact: qa-sisyphus
URL:
Keywords:
: 56144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-09-18 10:21 MSK by Mikhail Ananev
Modified: 2025-11-17 13:23 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Ananev 2025-09-18 10:21:48 MSK
На чистый altlinux p11 (cloud) пытаюсь поставить и запустить сервис sssd. Сервис сообщает о проблемах с правами, чего быть не должно.

Воспроизведение

```
epmi openldap-clients sssd sssd-ldap oddjob-mkhomedir sssd-tools  ldb-tools
systemctl start sssd
```
При старте возникает ошибка. Логи сервиса sssd.

сен 18 07:04:19 5620315-co61376 systemd[1]: /usr/lib/systemd/system/sssd.service:17: PIDFile= references a path below legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid; please update the unit >
сен 18 07:04:19 5620315-co61376 systemd[1]: Starting sssd.service - System Security Services Daemon...
░░ Subject: Начинается запуск юнита sssd.service
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Начат процесс запуска юнита sssd.service.
сен 18 07:04:19 5620315-co61376 sssd[7746]: SSSD couldn't load the configuration database [5]: Input/output error
сен 18 07:04:19 5620315-co61376 systemd[1]: sssd.service: Main process exited, code=exited, status=4/NOPERMISSION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit sssd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 4.
сен 18 07:04:19 5620315-co61376 systemd[1]: sssd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit sssd.service has entered the 'failed' state with result 'exit-code'.
сен 18 07:04:19 5620315-co61376 systemd[1]: Failed to start sssd.service - System Security Services Daemon.
░░ Subject: Ошибка юнита sssd.service
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Произошел сбой юнита sssd.service.
░░
░░ Результат: failed.




[root@5620315-co61376 bootstrap]# epmqi sssd
 # rpm -qi sssd
Name        : sssd
Version     : 2.9.7
Release     : alt3
DistTag     : p11+387440.310.11.1
Architecture: x86_64
Install Date: Чт 18 сен 2025 07:03:05
Group       : System/Servers
Size        : 5729746
License     : GPLv3+
Signature   : RSA/SHA512, Пт 12 сен 2025 15:37:10, Key ID e1130f0e925e1ff4
Source RPM  : sssd-2.9.7-alt3.src.rpm


Версисия OS

[root@5620315-co61376 bootstrap]# cat /etc/os-release
NAME="ALT Linux"
VERSION="11"
ID=altlinux
VERSION_ID=11
PRETTY_NAME="ALT Starterkit 11 (Salvia)"
ANSI_COLOR="1;33"
CPE_NAME="cpe:/o:alt:starterkit:11"
BUILD_ID="ALT Starterkit 11"
ALT_BRANCH_ID="p11"
HOME_URL="https://en.altlinux.org/starterkits"
BUG_REPORT_URL="https://bugs.altlinux.org/"
LOGO=altlinux
Comment 1 zvn 2025-09-24 13:35:35 MSK
то же самое при id_provider = ldap

SSSD couldn't load the configuration database [5]: Input/output error

sssd.service: Main process exited, code=exited, status=4/NOPERMISSION

Unable to find backend for '/var/lib/sss/db/config.ldb' - do you need to set LDB_MODULES_PATH
Comment 3 Artem Varaksa 2025-09-29 16:06:29 MSK
Подтверждаю воспроизводимость ошибки.


Шаги
====

1. # apt-get install -y sssd
2. # systemctl start sssd
3. # journalctl -u sssd --no-pager -l
4. # cat /var/log/sssd/sssd.log


Фактический результат
=====================

2. # systemctl start sssd

> Job for sssd.service failed because the control process exited with error code.
> See "systemctl status sssd.service" and "journalctl -xeu sssd.service" for details.

3. # journalctl -u sssd --no-pager -l

> systemd[1]: /usr/lib/systemd/system/sssd.service:17: PIDFile= references a path below legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid; please update the unit file accordingly.
> systemd[1]: Starting sssd.service - System Security Services Daemon...
> sssd[2538]: SSSD couldn't load the configuration database [5]: Input/output error
> systemd[1]: sssd.service: Main process exited, code=exited, status=4/NOPERMISSION
> systemd[1]: sssd.service: Failed with result 'exit-code'.
> systemd[1]: Failed to start sssd.service - System Security Services Daemon.


4. # cat /var/log/sssd/sssd.log
> [sssd] [ldb] (0x0010): Unable to find backend for '/var/lib/sss/db/config.ldb' - do you need to set LDB_MODULES_PATH?
> [sssd] [confdb_init] (0x0010): Unable to open config database [/var/lib/sss/db/config.ldb]
> [sssd] [confdb_setup] (0x0010): The confdb initialization failed [5]: Input/output error
> [sssd] [load_configuration] (0x0010): Unable to setup ConfDB [5]: Input/output error
> [sssd] [main] (0x0010): SSSD couldn't load the configuration database [5]: Input/output error


Ожидаемый результат
===================

Успешный запуск сервиса с настройками по умолчанию.


Дополнительно
=============

1. Воспроизводится не во всех конфигурациях. Например, при вводе с помощью SSSD через alterator-auth (system-auth) в домен Samba AD DC SSSD запускается и работает.

2. В конфигурации SSSD указано:

> # SSSD will not start if you do not configure any domains.

однако ошибка запуска не об этом и воспроизводится даже при указании домена в виде:

# cat /etc/sssd/sssd.conf
[sssd]
config_file_version = 2
services = nss, pam
user = _sssd
domains = MYLDAP

[nss]

[pam]

[domain/MYLDAP]

id_provider = ldap

ldap_uri = ldap://MYHOST
ldap_backup_uri = ldap://MYHOST1
ldap_search_base = o=MYORG,c=RU
ldap_default_bind_dn = uid=MYACCOUNT,ou=MYOU,o=MYORG,c=RU
ldap_default_authtok_type = password
ldap_default_authtok = MYPASSWORD

enumerate = true
cache_credentials = true


Воспроизводимость
=================

[p11] ALT Server 11.0 x86_64
sssd-2.9.7-alt3.x86_64

[sisyphus] ALT Server 11.0 x86_64
sssd-2.9.7-alt3.x86_64
Comment 4 Artem Varaksa 2025-09-29 16:07:45 MSK
*** Bug 56144 has been marked as a duplicate of this bug. ***
Comment 5 zvn 2025-11-10 13:42:22 MSK
рассматриваемые сложности с sssd как-то связаны с зарегистрированными проблемами https://github.com/sssd/sssd/issues ?

Или это результат каких-то неудач при сборке или инсталляции пакетов?
Comment 6 zvn 2025-11-17 13:23:22 MSK
причина же уже ясна: https://bugzilla.altlinux.org/56819

не устанавливается по зависимостям /usr/lib64/samba/ldb.mit/ldb.so из samba-dc-libs

прошу исправить зависимости в сизифе и p11