Adding entry error when the replication on a server is disabled

This topic has 2 replies, 2 voices, and was last updated 3 years, 11 months ago by Matioski.

  • Author
    Posts
  • #20686
     Matioski
    Participant

    Hello,
    I setup 2 OpenDJ servers in multi master configuration and the dn I created is happily replicated using this command:

    ./dsreplication enable --host1 opendj1.test.com --port1 4444\
      --bindDN1 "cn=directory manager" 
      --bindPassword1 opendj --replicationPort1 8989 
      --host2 opendj2.test.com --port2 4444 --bindDN2 "cn=directory manager" 
      --bindPassword2 opendj --replicationPort2 8989 
      --adminUID admin --adminPassword password --baseDN "dc=test,dc=com" -X -n

    But, when I execute this command on one server:

    ./dsconfig -p 4444 -h ‘opendj1.test.com’ -D "cn=Directory Manager" -w opendj set-synchronization-provider-prop --provider-name "Multimaster Synchronization" --set enabled:false -X -n
    
    

    And trying to add and entry on the Directory Server with the replication still enabled, opendj2.test.com, I get this error:

    msgID=241 result=53 message="The Replication is configured for suffix dc=test,dc=com but was not able to connect to any Replication Server"

    • This topic was modified 3 years, 12 months ago by Matioski.
    #20714
     Ludo
    Moderator

    I’m not sure I fully understand your settings and whether replication was working initially, but it is expected that if a directory server cannot connect to any replication server (including it’s own embedded one, that you are nicely shutting down), then it will reject changes (since it cannot store them and guarantee they can be replayed).

    #20715
     Matioski
    Participant

    You are right, I found out the problem was on the hosts file, now it is able to reach the embedded one Replication Server.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?