You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Paul Simpkins (JIRA)" <ji...@apache.org> on 2014/10/22 16:02:35 UTC

[jira] [Commented] (DIRSERVER-2009) "ERR_04274 Can't find an OID for the name ads-base" after configuring replication

    [ https://issues.apache.org/jira/browse/DIRSERVER-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14179928#comment-14179928 ] 

Paul Simpkins commented on DIRSERVER-2009:
------------------------------------------

Hi there,
Not sure if it help's but I'm also having this issue. I've been asked to set up ApacheDS using MultiMaster. My first attempt at setting up ApacheDS and in fact LDAP so I was thinking that the error was something I introduced. However I'm seeing the same problems as documented here.

Is there anything I can add to help ?
Regards
Paul

> "ERR_04274 Can't find an OID for the name ads-base" after configuring replication
> ---------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-2009
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2009
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M17
>            Reporter: Rubèn-Dario Castañé
>              Labels: ldap, replication
>         Attachments: ads-base.png, ads-replconsumer.png
>
>
> I'm working on multi-master replication between two servers, following these instructions: http://joacim.breiler.com/apacheds/ch08s02.html
> In a nutshell, I did the following configuration in both servers. First, I activated the replication handler:
> {code}
> dn: ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config 
> changetype: modify 
> add: ads-replReqHandler 
> ads-replReqHandler: org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler
> {code}
> Second, I created a consumer in both servers, each entry pointing to each other:
> {code}
> dn: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config 
> objectClass: ads-base 
> objectClass: ads-replConsumer 
> objectClass: top 
> ads-replAliasDerefMode: never 
> ads-replAttributes: * 
> ads-replConsumerId: 1 
> ads-replProvHostName: ldap-server2.engisoft.com
> ads-replProvPort: 10389 
> ads-replRefreshInterval: 60000 
> ads-replRefreshNPersist: true 
> ads-replSearchFilter: (objectClass=*) 
> ads-replSearchScope: sub 
> ads-replSearchSizeLimit: 0 
> ads-replSearchTimeOut: 0 
> ads-replUserDn: uid=repl,ou=system 
> ads-replUserPassword:: xxx 
> ads-searchBaseDN: dc=engisoft,dc=com
> {code}
> I restart the ApacheDS service, in order to reload the changes, but it fails with this stacktrace (from wrapper.log):
> {code}
> INFO   | jvm 1    | 2014/09/30 14:37:18 | [14:37:18] ERROR [org.apache.directory.server.config.ConfigPartitionReader] - An error occured while reading the configuration DN 'ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config' for the objectClass 'ads-replConsumer':
> INFO   | jvm 1    | 2014/09/30 14:37:18 | ERR_04274 Can't find an OID for the name ads-base
> INFO   | jvm 1    | 2014/09/30 14:37:18 | [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Index : 0
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Size : 1
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 9a111f0d-cef5-4251-93ba-b06960f05af6 ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |
> INFO   | jvm 1    | 2014/09/30 14:37:18 | [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Index : 0
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Size : 4
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 75244beb-84ee-4bab-8185-cffb650efa95 ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 0ce41868-ad39-4af1-a027-392ddc41dead ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 7f11fd1f-efb6-4ce7-9c32-377092729f08 ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 9f915798-a812-4b8b-9633-104d6a33a1d6 ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |
> INFO   | jvm 1    | 2014/09/30 14:37:18 | [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Index : 0
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     Size : 1
> INFO   | jvm 1    | 2014/09/30 14:37:18 |     IndexEntry[ null, 73b98b4e-b99e-41af-9e05-e10c570d0f0f ]
> INFO   | jvm 1    | 2014/09/30 14:37:18 |
> INFO   | jvm 1    | 2014/09/30 14:37:18 | [14:37:18] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service.
> INFO   | jvm 1    | 2014/09/30 14:37:18 | org.apache.directory.server.config.ConfigurationException: An error occured while reading the configuration DN 'ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config' for the objectClass 'ads-replConsumer':
> INFO   | jvm 1    | 2014/09/30 14:37:18 | ERR_04274 Can't find an OID for the name ads-base
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:641)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:600)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:600)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:754)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:718)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:690)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:177)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
> INFO   | jvm 1    | 2014/09/30 14:37:18 |       at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> STATUS | wrapper  | 2014/09/30 14:37:20 | <-- Wrapper Stopped
> {code}
> And this stacktrace (from apacheds.log):
> {code}
> [14:37:18] DEBUG [org.apache.directory.server.config.ConfigPartitionReader] - Entry read : Entry
>     dn[n]: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
>     objectclass: ads-base
>     objectclass: ads-replConsumer
>     objectclass: top
>     ads-replsearchsizelimit: 0
>     ads-replattributes: *
>     ads-replconsumerid: 1
>     ads-replrefreshinterval: 60000
>     ads-repluserpassword: 0xFF 0xAA 0xKK 0xEE 0xFF 0xAA 0xKK 0xEE
>     ads-repluserdn: uid=repl,ou=system
>     ads-replprovport: 10389
>     ads-replprovhostname: ldap-server2.engisoft.com
>     ads-replrefreshnpersist: true
>     ads-replsearchscope: sub
>     ads-replsearchtimeout: 0
>     entryParentId: 0720d20e-662a-43d6-87c4-154fbfcf97af
>     ads-searchbasedn: dc=engisoft,dc=com
>     createtimestamp: 20140930143649.532Z
>     ads-replsearchfilter: (objectClass=*)
>     entryDN: ads-replConsumerId=1,ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
>     entryuuid: 9a111f0d-cef5-4251-93ba-b06960f05af6
>     creatorsname: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
>     entrycsn: 20140930143649.532000Z#000000#001#000000
>     ads-replaliasderefmode: never
> [14:37:18] DEBUG [org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry] - Found attributetype ( 2.5.4.0 NAME 'objectClass'
>         DESC 'RFC2256: object classes of the entity'
>         EQUALITY objectIdentifierMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.38
>         USAGE userApplications
> ) with oid: objectclass
> [14:37:18] ERROR [org.apache.directory.server.config.ConfigPartitionReader] - An error occured while reading the configuration DN 'ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config' for the objectClass 'ads-replConsumer':
> ERR_04274 Can't find an OID for the name ads-base
> [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
>     Index : 0
>     Size : 1
>     IndexEntry[ null, 9a111f0d-cef5-4251-93ba-b06960f05af6 ]
> [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
>     Index : 0
>     Size : 4
>     IndexEntry[ null, 75244beb-84ee-4bab-8185-cffb650efa95 ]
>     IndexEntry[ null, 0ce41868-ad39-4af1-a027-392ddc41dead ]
>     IndexEntry[ null, 7f11fd1f-efb6-4ce7-9c32-377092729f08 ]
>     IndexEntry[ null, 9f915798-a812-4b8b-9633-104d6a33a1d6 ]
> [14:37:18] DEBUG [org.apache.directory.CURSOR_LOG] - Closing ListCursor SetCursor :
>     Index : 0
>     Size : 1
>     IndexEntry[ null, 73b98b4e-b99e-41af-9e05-e10c570d0f0f ]
> [14:37:18] ERROR [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.server.config.ConfigurationException: An error occured while reading the configuration DN 'ou=replConsumers,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config' for the objectClass 'ads-replConsumer':
> ERR_04274 Can't find an OID for the name ads-base
>         at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:641)
>         at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:600)
>         at org.apache.directory.server.config.ConfigPartitionReader.read(ConfigPartitionReader.java:600)
>         at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:754)
>         at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:718)
>         at org.apache.directory.server.config.ConfigPartitionReader.readConfig(ConfigPartitionReader.java:690)
>         at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:177)
>         at org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
>         at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)