Hello, running dogtag 11.9.0-1.fc44.3 and trying to create a clone of a freshly installed Root CA, pkispawn hangs indefinitely at setting up replication. Both DS instances use certificates that are created from the root. -- pkispawn output -- INFO: Setting up replication INFO: - master replication port: INFO: - replica replication port: INFO: - internaldb.ldapconn.port: 636 INFO: - internaldb.ldapconn.secureConn: true INFO: - replication security: TLS INFO: Enable replication on master DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-enable --ldap-config /tmp/tmppcyh2t6c/ldap.conf --replica-bind-dn cn=Replication Manager masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmppcyh2t6c/password.txt --debug INFO: Enable replication on replica DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-enable --ldap-config /tmp/tmpq_6ijpqs/ldap.conf --replica-bind-dn cn=Replication Manager cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmpq_6ijpqs/password.txt --debug INFO: Adding master replication agreement INFO: - replica URL: ldap://ittre01rca81.cavanasystems.com:636 DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-add --ldap-config /tmp/tmp3fl847jp/ldap.conf --replica-url ldap://ittre01rca81.cavanasystems.com:636 --replica-bind-dn cn=Replication Manager cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmp3fl847jp/password.txt --replication-security TLS --debug masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1 INFO: Adding replica replication agreement INFO: - master URL: ldap://ittre01rca80.cavanasystems.com:636 DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-add --ldap-config /tmp/tmpztrdy_re/ldap.conf --replica-url ldap://ittre01rca80.cavanasystems.com:636 --replica-bind-dn cn=Replication Manager masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmpztrdy_re/password.txt --replication-security TLS --debug cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1 INFO: Initializing replication agreement DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-init --ldap-config /tmp/tmp3ey2tef4/ldap.conf --debug masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1 without ever continuing. both nodes are reachable from each other by, for instance, trying:: ldapsearch -H ldap://ittre01rca80.cavanasystems.com -Z -x -D "cn=Directory Manager" -w pass -b cn=RSA,cn=encryption,cn=config ldapsearch -H ldap://ittre01rca81.cavanasystems.com -Z -x -D "cn=Directory Manager" -w pass -b cn=RSA,cn=encryption,cn=config I don't see any error in the 389 log, actually it looks like the replication agreement is created: -- on one host -- Nov 29 15:35:55 systemd[1]: Started dirsrv@localhost.service - 389 Directory Server localhost.. Nov 29 15:35:58 ns-slapd[881]: [29/Nov/2026:15:35:58.965750191 +0100] - INFO - vattr_check_thread - No role/cos definition in dc=cavanasystems,dc=com Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.516212114 +0100] - INFO - ldbm_instance_config_cachememsize_set - force a minimal value 512000 Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.532506493 +0100] - NOTICE - attrcrypt_cipher_init - No symmetric key found for cipher AES in backend rsa-rootca-g1-ldap, attempting to create one... Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.536030808 +0100] - INFO - attrcrypt_cipher_init - Key for cipher AES successfully generated and stored Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.536562693 +0100] - NOTICE - attrcrypt_cipher_init - No symmetric key found for cipher 3DES in backend rsa-rootca-g1-ldap, attempting to create one... Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.539421988 +0100] - INFO - attrcrypt_cipher_init - Key for cipher 3DES successfully generated and stored Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.540486482 +0100] - NOTICE - mdb_start_autotune - found 1.8 GB physical memory Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.540760670 +0100] - NOTICE - mdb_start_autotune - found 1.2 GB available Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.541007343 +0100] - NOTICE - mdb_start_autotune - cache autosizing: userroot entry cache (2 total): 384.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542168091 +0100] - NOTICE - mdb_start_autotune - cache autosizing: userroot dn cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542518597 +0100] - NOTICE - mdb_start_autotune - cache autosizing: rsa-rootca-g1-ldap entry cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542838723 +0100] - NOTICE - mdb_start_autotune - cache autosizing: rsa-rootca-g1-ldap dn cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.543190671 +0100] - NOTICE - mdb_start_autotune - total cache size: 576.0 MB Nov 29 15:49:49 ns-slapd[881]: [29/Nov/2026:15:49:49.101898854 +0100] - NOTICE - dse_modify - A plugin has been enabled or disabled, but nsslapd-dynamic-plugins is off. A server restart is required to change this plugin state. Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.972795928 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - changelog5_config_add - Separate changelog no longer supported; use cn=changelog,<backend> instead Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.982417966 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding the replication changelog RUV, this may take several minutes... Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.982882967 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding replication changelog RUV complete. Result 0 (Success) -- on the other host -- Nov 29 15:13:08 systemd[1]: Started dirsrv@localhost.service - 389 Directory Server localhost.. Nov 29 15:13:11 ns-slapd[913]: [29/Nov/2026:15:13:11.723692300 +0100] - INFO - vattr_check_thread - No role/cos definition in dc=cavanasystems,dc=com Nov 29 15:13:11 ns-slapd[913]: [29/Nov/2026:15:13:11.724498994 +0100] - INFO - vattr_check_thread - No role/cos definition in o=rsa-rootca-g1-CA Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.545990799 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - changelog5_config_add - Separate changelog no longer supported; use cn=changelog,<backend> instead Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.553206618 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding the replication changelog RUV, this may take several minutes... Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.553670146 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding replication changelog RUV complete. Result 0 (Success) It just sits there and waits, never timing out. Has anyone have any idea? Thank you, Luca
Try the ldapsearch test command using ldaps:// instead of ldap:// In case of error, use the "trust anchor" command to verify the issuers of the LDAPS SSL server certificate(s) is/are trusted on each system. Verify the LDAP access and errors log events for connections from the system running the PKI service. The LDAP access log should show the incoming connection, and the LDAP errors log events should show the replication activity for start and progress. Also, verify the CA's debug log file for events related to LDAP connections. Thanks, M. On Sun, Nov 29, 2026 at 7:44 AM luca.cavana--- via Pki-users < users@lists.dogtagpki.org> wrote:
Hello,
running dogtag 11.9.0-1.fc44.3 and trying to create a clone of a freshly installed Root CA, pkispawn hangs indefinitely at setting up replication.
Both DS instances use certificates that are created from the root.
-- pkispawn output -- INFO: Setting up replication INFO: - master replication port: INFO: - replica replication port: INFO: - internaldb.ldapconn.port: 636 INFO: - internaldb.ldapconn.secureConn: true INFO: - replication security: TLS INFO: Enable replication on master DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-enable --ldap-config /tmp/tmppcyh2t6c/ldap.conf --replica-bind-dn cn=Replication Manager masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmppcyh2t6c/password.txt --debug INFO: Enable replication on replica DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-enable --ldap-config /tmp/tmpq_6ijpqs/ldap.conf --replica-bind-dn cn=Replication Manager cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmpq_6ijpqs/password.txt --debug INFO: Adding master replication agreement INFO: - replica URL: ldap://ittre01rca81.cavanasystems.com:636 DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-add --ldap-config /tmp/tmp3fl847jp/ldap.conf --replica-url ldap:// ittre01rca81.cavanasystems.com:636 --replica-bind-dn cn=Replication Manager cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmp3fl847jp/password.txt --replication-security TLS --debug masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1 INFO: Adding replica replication agreement INFO: - master URL: ldap://ittre01rca80.cavanasystems.com:636 DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-add --ldap-config /tmp/tmpztrdy_re/ldap.conf --replica-url ldap:// ittre01rca80.cavanasystems.com:636 --replica-bind-dn cn=Replication Manager masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1,ou=csusers,cn=config --replica-bind-password-file /tmp/tmpztrdy_re/password.txt --replication-security TLS --debug cloneAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1 INFO: Initializing replication agreement DEBUG: Command: pki-server -i rsa-rootca-g1 ca-db-repl-agmt-init --ldap-config /tmp/tmp3ey2tef4/ldap.conf --debug masterAgreement1-ittre01rca81.cavanasystems.com-rsa-rootca-g1
without ever continuing. both nodes are reachable from each other by, for instance, trying:: ldapsearch -H ldap://ittre01rca80.cavanasystems.com -Z -x -D "cn=Directory Manager" -w pass -b cn=RSA,cn=encryption,cn=config ldapsearch -H ldap://ittre01rca81.cavanasystems.com -Z -x -D "cn=Directory Manager" -w pass -b cn=RSA,cn=encryption,cn=config
I don't see any error in the 389 log, actually it looks like the replication agreement is created: -- on one host -- Nov 29 15:35:55 systemd[1]: Started dirsrv@localhost.service - 389 Directory Server localhost.. Nov 29 15:35:58 ns-slapd[881]: [29/Nov/2026:15:35:58.965750191 +0100] - INFO - vattr_check_thread - No role/cos definition in dc=cavanasystems,dc=com Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.516212114 +0100] - INFO - ldbm_instance_config_cachememsize_set - force a minimal value 512000 Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.532506493 +0100] - NOTICE - attrcrypt_cipher_init - No symmetric key found for cipher AES in backend rsa-rootca-g1-ldap, attempting to create one... Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.536030808 +0100] - INFO - attrcrypt_cipher_init - Key for cipher AES successfully generated and stored Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.536562693 +0100] - NOTICE - attrcrypt_cipher_init - No symmetric key found for cipher 3DES in backend rsa-rootca-g1-ldap, attempting to create one... Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.539421988 +0100] - INFO - attrcrypt_cipher_init - Key for cipher 3DES successfully generated and stored Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.540486482 +0100] - NOTICE - mdb_start_autotune - found 1.8 GB physical memory Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.540760670 +0100] - NOTICE - mdb_start_autotune - found 1.2 GB available Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.541007343 +0100] - NOTICE - mdb_start_autotune - cache autosizing: userroot entry cache (2 total): 384.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542168091 +0100] - NOTICE - mdb_start_autotune - cache autosizing: userroot dn cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542518597 +0100] - NOTICE - mdb_start_autotune - cache autosizing: rsa-rootca-g1-ldap entry cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.542838723 +0100] - NOTICE - mdb_start_autotune - cache autosizing: rsa-rootca-g1-ldap dn cache (2 total): 64.0 MB Nov 29 15:49:47 ns-slapd[881]: [29/Nov/2026:15:49:47.543190671 +0100] - NOTICE - mdb_start_autotune - total cache size: 576.0 MB Nov 29 15:49:49 ns-slapd[881]: [29/Nov/2026:15:49:49.101898854 +0100] - NOTICE - dse_modify - A plugin has been enabled or disabled, but nsslapd-dynamic-plugins is off. A server restart is required to change this plugin state. Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.972795928 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - changelog5_config_add - Separate changelog no longer supported; use cn=changelog,<backend> instead Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.982417966 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding the replication changelog RUV, this may take several minutes... Nov 29 15:49:51 ns-slapd[881]: [29/Nov/2026:15:49:51.982882967 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding replication changelog RUV complete. Result 0 (Success)
-- on the other host -- Nov 29 15:13:08 systemd[1]: Started dirsrv@localhost.service - 389 Directory Server localhost.. Nov 29 15:13:11 ns-slapd[913]: [29/Nov/2026:15:13:11.723692300 +0100] - INFO - vattr_check_thread - No role/cos definition in dc=cavanasystems,dc=com Nov 29 15:13:11 ns-slapd[913]: [29/Nov/2026:15:13:11.724498994 +0100] - INFO - vattr_check_thread - No role/cos definition in o=rsa-rootca-g1-CA Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.545990799 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - changelog5_config_add - Separate changelog no longer supported; use cn=changelog,<backend> instead Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.553206618 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding the replication changelog RUV, this may take several minutes... Nov 29 15:49:51 ns-slapd[913]: [29/Nov/2026:15:49:51.553670146 +0100] - NOTICE - NSMMReplicationPlugin - changelog program - _cl5ConstructRUVs - Rebuilding replication changelog RUV complete. Result 0 (Success)
It just sits there and waits, never timing out. Has anyone have any idea?
Thank you, Luca _______________________________________________ Pki-users mailing list -- users@lists.dogtagpki.org To unsubscribe send an email to users-leave@lists.dogtagpki.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Marc Sauton wrote:
Verify the LDAP access and errors log events for connections from the system running the PKI service. The LDAP access log should show the incoming connection, and the LDAP errors log events should show the replication activity for start and progress.
Thank you for the tip. I'm quite new to this software stack and this pointed me into the right direction. I think I hit a bug. The problem is that the pkispawn script ignores the "pki_ds_base_dn" parameter in the original deployment file. From the Master CA: $ sudo grep pki_ds /etc/sysconfig/pki/tomcat/rsa-rootca-g1/ca/deployment.cfg pki_ds_url = ldap://localhost.localdomain:389 -> This is then changed to 636 and hostname in CS.cfg, before the clone is done pki_ds_bind_dn = cn=Directory Manager pki_ds_password = %redacted% pki_ds_base_dn = dc=rsa-rootca-g1-ca,dc=pki,dc=cavanasystems,dc=com pki_ds_remove_data = True pki_ds_password = %redacted% pki_ds_password = %redacted% From the Clone CA: $ sudo grep pki_ds /etc/sysconfig/pki/tomcat/rsa-rootca-g1/ca/deployment.cfg pki_ds_url = ldaps://ittre01rca83.cavanasystems.com:636 pki_ds_secure_connection_ca_pem_file = /home/localadmin/ca_signing.crt Not that it's missing from the clone because it's commented out into the clone original config file when running pkispawn because using it will lead to pkispawn failing as replica is setup with a non existing LDAP DN: [02/Dec/2026:15:57:48.814919318 +0100] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=cloneAgreement1-ittre01rca83.cavanasystems.com-rsa-rootca-g1" (ittre01rca82:636): Unable to acquire replica: there is no replicated area "dc=rsa-rootca-g1-ca,dc=pki,dc=cavanasystems,dc=com" on the consumer server. Replication is aborting. I checked with an LDAP browser and all of the CA configuration on the Master, and on the Replica, lives in o=rsa-rootca-g1-CA (which is pkispawn default of pki_ds_base_dn=o=%(pki_instance_name)s-CA) So, it is honored during CA replica creation (which leads to failure, if different from default) but it's ignored during the CA creation. I've updated the lab environment so I'm running on clean F45 machine, DogTag 11.10.1. Since you are a Red Hatter, do you prefer I open a bug in the bug tracer or you'll handle it? Thank you, Luca
participants (2)
-
luca.cavana@cavanasystems.com -
Marc Sauton