On Wed, Aug 2, 2017 at 3:06 PM, Karl Forner via FreeIPA-users
<freeipa-users@lists.fedorahosted.org> wrote:
> Cross-posted from https://github.com/freeipa/freeipa-container/issues/151
>
> Context: I have one master running in a docker container, with freeIPA
> 4.2.3.
>
> I'm trying to setup a new replica. I could not using the same docker
> container version that runs the master. I've been told to use the latest
> version for the replica, that's what I tried here.
>
> The latest docker container should contain a freeIPa 4.4.4.
>
> When I launch the docker container, it launches the ipareplica-install
> process, it seems to go well but then fails with:
>
> 2017-08-02T11:54:20Z DEBUG retrieving schema for SchemaCache
> url=ldapi://%2fvar%2frun%2fslapd-QUARTZBIO-COM.socket
> conn=<ldap.ldapobject.SimpleLDAPObject inst
> ance at 0x7fdb699aed88>
>
> What is the problem ? Is it because the master version is too old ?

The new replica cannot sync with older master. Why would be written in
Directory Server error log. I'd check the log both on master and
replica.

https://www.freeipa.org/page/Files_to_be_attached_to_bug_report#Directory_server_failed

>
> What should I do in order to setup a new replica ?
>
> Thanks.
>
> P.S
>
>
> The relevant part of the logs is :
> 2017-08-02T11:54:20Z DEBUG Successfully updated nsDS5ReplicaId.
> 2017-08-02T11:54:20Z DEBUG flushing
> ldapi://%2fvar%2frun%2fslapd-QUARTZBIO-COM.socket from SchemaCache
> 2017-08-02T11:54:20Z DEBUG retrieving schema for SchemaCache
> url=ldapi://%2fvar%2frun%2fslapd-QUARTZBIO-COM.socket
> conn=<ldap.ldapobject.SimpleLDAPObject inst
> ance at 0x7fdb699aed88>
> 2017-08-02T11:54:37Z DEBUG Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line
> 449, in start_creation
>     run_step(full_msg, method)
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line
> 439, in run_step
>     method()
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py",
> line 431, in __setup_replica
>     r_bindpw=self.dm_password)
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/replication.py",
> line 1068, in setup_replication
>     raise RuntimeError("Failed to start replication")
> RuntimeError: Failed to start replication
>
> 2017-08-02T11:54:37Z DEBUG   [error] RuntimeError: Failed to start
> replication
> 2017-08-02T11:54:37Z DEBUG Destroyed connection
> context.ldap2_140580366919440
> 2017-08-02T11:54:37Z DEBUG   File
> "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 172, in
> execute
>     return_value = self.run()
>   File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line
> 318, in run
>     cfgr.run()
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 310, in run
>     self.execute()
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 334, in execute
>     for nothing in self._executor():
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 376, in __runner
>     exc_handler(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 405, in _handle_execute_exception
>     self._handle_exception(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 395, in _handle_exception
>     six.reraise(*exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 366, in __runner
>     step()
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 363, in <lambda>
>     step = lambda: next(self.__gen)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line
> 81, in run_generator_with_yield_from
>     six.reraise(*exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line
> 59, in run_generator_with_yield_from
>     value = gen.send(prev_value)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 597, in _configure
>     next(executor)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 376, in __runner
>     exc_handler(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 405, in _handle_execute_exception
>     self._handle_exception(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 460, in _handle_exception
>     self.__parent._handle_exception(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 395, in _handle_exception
>     six.reraise(*exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 457, in _handle_exception
>     super(ComponentBase, self)._handle_exception(exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 395, in _handle_exception
>     six.reraise(*exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 366, in __runner
>     step()
>   File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line
> 363, in <lambda>
>     step = lambda: next(self.__gen)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line
> 81, in run_generator_with_yield_from
>     six.reraise(*exc_info)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line
> 59, in run_generator_with_yield_from
>     value = gen.send(prev_value)
>   File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line
> 63, in _install
>     for nothing in self._installer(self.parent):
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py",
> line 1741, in main
>     install(self)
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py",
> line 375, in decorated
>     func(installer)
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py",
> line 818, in install
>     ds = install_replica_ds(config, options, ca_enabled, remote_api)
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py",
> line 139, in install_replica_ds
>     api=remote_api,
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py",
> line 412, in create_replica
>     self.start_creation(runtime=60)
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line
> 449, in start_creation
>     run_step(full_msg, method)
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line
> 439, in run_step
>     method()
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py",
> line 431, in __setup_replica
>     r_bindpw=self.dm_password)
>   File "/usr/lib/python2.7/site-packages/ipaserver/install/replication.py",
> line 1068, in setup_replication
>     raise RuntimeError("Failed to start replication")
>
> 2017-08-02T11:54:37Z DEBUG The ipa-replica-install command failed,
> exception: RuntimeError: Failed to start replication
> 2017-08-02T11:54:37Z ERROR Failed to start replication
> 2017-08-02T11:54:37Z ERROR The ipa-replica-install command failed. See
> /var/log/ipareplica-install.log for more information
>
>
> _______________________________________________
> FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
> To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org
>



-- 
Petr Vobornik

Associate Manager, Engineering, Identity Management
Red Hat
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

Reply via email to