DEBUG: The 389 Directory Server Configuration Tool
DEBUG: Inspired by works of: ITS, The University of Adelaide
DEBUG: dsrc path: /root/.dsrc
DEBUG: dsrc container path: /data/config/container.inf
DEBUG: dsrc instances: []
DEBUG: dsrc no such section: slapd-ldap://localhost:1389
DEBUG: Called with: Namespace(basedn=None, binddn='cn=Directory
Manager', bindpw=None, func=<function disable_replication at
0x7f1b96485a60>, instance='ldap://localhost:1389', json=False,
prompt=False, pwdfile=None, starttls=False, suffix='o=foo.bar.com',
verbose=True)
DEBUG: Instance details: {'uri': 'ldap://localhost:1389', 'basedn':
None, 'binddn': 'cn=Directory Manager', 'bindpw': None, 'saslmech':
None, 'tls_cacertdir': None, 'tls_cert': None, 'tls_key': None,
'tls_reqcert': None, 'starttls': False, 'prompt': False, 'pwdfile':
None, 'args': {'ldapurl': 'ldap://localhost:1389', 'root-dn':
'cn=Directory Manager'}}
DEBUG: SER_SERVERID_PROP not provided, assuming non-local instance
DEBUG: Allocate <class 'lib389.DirSrv'> with ldap://localhost:1389
DEBUG: Allocate <class 'lib389.DirSrv'> with server1.foo.bar.com:389
DEBUG: Allocate <class 'lib389.DirSrv'> with server1.foo.bar.com:389
Enter password for cn=Directory Manager on ldap://localhost:1389:
DEBUG: SER_SERVERID_PROP not provided, assuming non-local instance
DEBUG: Allocate <class 'lib389.DirSrv'> with ldap://localhost:1389
DEBUG: Allocate <class 'lib389.DirSrv'> with server1.foo.bar.com:389
DEBUG: Allocate <class 'lib389.DirSrv'> with server1.foo.bar.com:389
DEBUG: open(): Connecting to uri ldap://localhost:1389
DEBUG: Using dirsrv ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using external ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using external ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using /etc/openldap/ldap.conf certificate policy
DEBUG: ldap.OPT_X_TLS_REQUIRE_CERT = 2
DEBUG: open(): bound as cn=Directory Manager
DEBUG: Retrieving entry with [('',)]
DEBUG: Retrieved entry [dn:
vendorVersion: 389-Directory/1.4.4.16 B2021.175.1723
]
DEBUG: _gen_selector filter =
(&(&(objectclass=nsds5Replica))(|(nsDS5ReplicaRoot=o=foo.bar.com)))
DEBUG: cn=replica,cn=o\3Dfoo.bar.com,cn=mapping tree,cn=config
getVal('nsDS5ReplicaRoot')
DEBUG: list filter = (&(objectclass=nsds5replicationagreement))
DEBUG: list filter = (&(objectclass=nsDSWindowsReplicationAgreement))
DEBUG: cn=replica,cn=o\3Dfoo.bar.com,cn=mapping tree,cn=config delete
DEBUG: {'result': -1, 'desc': "Can't contact LDAP server", 'ctrls': []}
Traceback (most recent call last):
File "/sbin/dsconf", line 134, in <module>
result = args.func(inst, None, log, args)
File
"/usr/lib/python3.6/site-packages/lib389/cli_conf/replication.py",
line 236, in disable_replication
replica.delete()
File "/usr/lib/python3.6/site-packages/lib389/replica.py", line
1351, in delete
return super(Replica, self).delete()
File "/usr/lib/python3.6/site-packages/lib389/_mapped_object.py",
line 825, in delete
self._instance.delete_ext_s(self._dn,
serverctrls=self._server_controls, clientctrls=self._client_controls,
escapehatch='i am sure')
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line
173, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line
562, in delete_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls =
self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line
173, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line
767, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line
173, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line
774, in result4
ldap_result =
self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line
173, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line
340, in _ldap_call
reraise(exc_type, exc_value, exc_traceback)
File "/usr/lib64/python3.6/site-packages/ldap/compat.py", line 46,
in reraise
raise exc_value
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line
324, in _ldap_call
result = func(*args,**kwargs)
ldap.SERVER_DOWN: {'result': -1, 'desc': "Can't contact LDAP server",
'ctrls': []}
ERROR: Error: -1 - Can't contact LDAP server - []