<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>56042</bug_id>
          
          <creation_ts>2025-09-18 10:21:48 +0300</creation_ts>
          <short_desc>SSSD couldn&apos;t load the configuration database [5]: Input/output error status=4/NOPERMISSION</short_desc>
          <delta_ts>2025-11-17 13:23:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sssd</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=54957</see_also>
    
    <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=54914</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Ananev">mike1452</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>asheplyakov</cc>
    
    <cc>iv</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>varaksaaa</cc>
    
    <cc>zvn</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272701</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Ananev">mike1452</who>
    <bug_when>2025-09-18 10:21:48 +0300</bug_when>
    <thetext>На чистый 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 &gt;
сен 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&apos;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&apos; exit code is &apos;exited&apos; and its exit status is 4.
сен 18 07:04:19 5620315-co61376 systemd[1]: sssd.service: Failed with result &apos;exit-code&apos;.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit sssd.service has entered the &apos;failed&apos; state with result &apos;exit-code&apos;.
сен 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=&quot;ALT Linux&quot;
VERSION=&quot;11&quot;
ID=altlinux
VERSION_ID=11
PRETTY_NAME=&quot;ALT Starterkit 11 (Salvia)&quot;
ANSI_COLOR=&quot;1;33&quot;
CPE_NAME=&quot;cpe:/o:alt:starterkit:11&quot;
BUILD_ID=&quot;ALT Starterkit 11&quot;
ALT_BRANCH_ID=&quot;p11&quot;
HOME_URL=&quot;https://en.altlinux.org/starterkits&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;
LOGO=altlinux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273055</commentid>
    <comment_count>1</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-09-24 13:35:35 +0300</bug_when>
    <thetext>то же самое при id_provider = ldap

SSSD couldn&apos;t load the configuration database [5]: Input/output error

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

Unable to find backend for &apos;/var/lib/sss/db/config.ldb&apos; - do you need to set LDB_MODULES_PATH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273065</commentid>
    <comment_count>2</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-09-24 14:44:01 +0300</bug_when>
    <thetext>https://bugzilla.altlinux.org/show_bug.cgi?id=54957#c10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273489</commentid>
    <comment_count>3</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-09-29 16:06:29 +0300</bug_when>
    <thetext>Подтверждаю воспроизводимость ошибки.


Шаги
====

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

&gt; Job for sssd.service failed because the control process exited with error code.
&gt; See &quot;systemctl status sssd.service&quot; and &quot;journalctl -xeu sssd.service&quot; for details.

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

&gt; 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.
&gt; systemd[1]: Starting sssd.service - System Security Services Daemon...
&gt; sssd[2538]: SSSD couldn&apos;t load the configuration database [5]: Input/output error
&gt; systemd[1]: sssd.service: Main process exited, code=exited, status=4/NOPERMISSION
&gt; systemd[1]: sssd.service: Failed with result &apos;exit-code&apos;.
&gt; systemd[1]: Failed to start sssd.service - System Security Services Daemon.


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


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

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


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

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

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

&gt; # 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273492</commentid>
    <comment_count>4</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-09-29 16:07:45 +0300</bug_when>
    <thetext>*** Bug 56144 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276420</commentid>
    <comment_count>5</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-11-10 13:42:22 +0300</bug_when>
    <thetext>рассматриваемые сложности с sssd как-то связаны с зарегистрированными проблемами https://github.com/sssd/sssd/issues ?

Или это результат каких-то неудач при сборке или инсталляции пакетов?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277296</commentid>
    <comment_count>6</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-11-17 13:23:22 +0300</bug_when>
    <thetext>причина же уже ясна: https://bugzilla.altlinux.org/56819

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

прошу исправить зависимости в сизифе и p11</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>