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

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

    <bug>
          <bug_id>59812</bug_id>
          
          <creation_ts>2026-07-13 12:44:43 +0300</creation_ts>
          <short_desc>ldap2pg пытается создать роль дважды и падает с ошибкой</short_desc>
          <delta_ts>2026-07-21 14:19:58 +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>ldap2pg</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="lesyafox@altlinux.org">lesyafox</assigned_to>
          <cc>lesyafox</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>291061</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-07-13 12:44:43 +0300</bug_when>
    <thetext>При запуске происходит попытка двойного создания ролей:

level=CHANGE msg=&quot;Create role.&quot; role=ldap_login database=ldap2pg_test
level=CHANGE msg=&quot;Create role.&quot; role=ldap_ddl database=ldap2pg_test
level=CHANGE msg=&quot;Create role.&quot; role=ldap_login database=ldap2pg_test
level=ERROR msg=&quot;Synchronisation error.&quot; err=&quot;ОШИБКА: роль \&quot;ldap_login\&quot; уже существует (SQLSTATE 42710)&quot;
level=CHANGE msg=&quot;Create role.&quot; role=ldap_ddl database=ldap2pg_test
level=ERROR msg=&quot;Synchronisation error.&quot; err=&quot;ОШИБКА: роль \&quot;ldap_ddl\&quot; уже существует (SQLSTATE 42710)&quot;

Из-за чего сервис падает:

level=ERROR msg=&quot;Some errors occurred. See above for more details.&quot; err=&quot;synchronization errors&quot; count=2
level=ERROR msg=&quot;Run ldap2pg with --verbose to get more informations.&quot;
ldap2pg.service: Main process exited, code=exited, status=1/FAILURE
ldap2pg.service: Failed with result &apos;exit-code&apos;.
Failed to start Synchronize PostgreSQL roles and privileges from LDAP.

Версия: ldap2pg-6.5.1-alt1.x86_64

В анонсе версии 6.6 https://blog.dalibo.com/2026/07/07/ldap2pg-6.6-en.html написано:
&quot;A deduplication bug caused missing roles to be created twice; this is now fixed.&quot;

Скорее всего, это исправление как раз этой ошибки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291395</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-07-21 14:19:58 +0300</bug_when>
    <thetext>ldap2pg-6.6.0-alt1 -&gt; sisyphus:

Wed Jul 15 2026 Olesya Shuster &lt;lesyafox@altlinux&gt; 6.6.0-alt1
- New version 6.6.0 (closes: #59812, #59810)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>