You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Joel Arula <Jo...@playtech.com> on 2016/05/18 11:25:41 UTC

ERR_250_ENTRY_ALREADY_EXISTS

Hi

I am using  embeded aopache ds version 2.0.0-M21
When setting up clean installation every startup after first one is failing with
org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS
What can be done in order to avoid this error, and what causes it ?

Best Regards

Joel Arula

Re: ERR_250_ENTRY_ALREADY_EXISTS

Posted by Emmanuel Lecharny <el...@apache.org>.
Please do so, at least to keep a trace of the issue. I'll try to find a bit
of time to reproduce the issue and find a fix.

Le mercredi 18 mai 2016, Joel Arula <Jo...@playtech.com> a écrit :

> Hi Emmanuel
>
> After removing ads-contextEntry  from our custom partition definition
> and setting up fresh installation i have got new error message which
> starts complaining
> about system partition
>
> org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException:
> ERR_250_ENTRY_ALREADY_EXISTS ou=system already exists!
>
> So it might be that rabbit hole goes even deeper. With latest Apache ds
> studio (  Apache Directory Studio 2.0.0.v20151221-M10)
> I am encountering something similar when  saving configuration second
> time  into same file.
>
> Unable to save configuration.
>  - ERR_250_ENTRY_ALREADY_EXISTS ou=config already exists!
> org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException:
> ERR_250_ENTRY_ALREADY_EXISTS ou=config already exists!
>
>  I can fill those bugs in in jira if they are relevant.
>
> Best Regards
>
> Joel Arula
>
>
>
> -----Original Message-----
> From: Emmanuel Lécharny [mailto:elecharny@gmail.com <javascript:;>]
> Sent: Wednesday, May 18, 2016 4:09 PM
> To: users@directory.apache.org <javascript:;>
> Subject: Re: ERR_250_ENTRY_ALREADY_EXISTS
>
> Le 18/05/16 à 13:25, Joel Arula a écrit :
> > Hi
> >
> > I am using  embeded aopache ds version 2.0.0-M21 When setting up clean
> > installation every startup after first one is failing with
> > org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsEx
> > ception: ERR_250_ENTRY_ALREADY_EXISTS What can be done in order to avoid
> this error, and what causes it ?
> >
> > Best Regards
> >
> > Joel Arula
> >
> Have you edited teh configuration with Apache Directory Studio ? If so,
> you may have added the contextEntry in the configuration, and it will be
> injected at startup. Sadly, once injected, it won't be removed from teh
> config, and will be added again when you start the server again...
>
>
> Can you check that ?
>
>

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

RE: ERR_250_ENTRY_ALREADY_EXISTS

Posted by Joel Arula <Jo...@playtech.com>.
Hi Emmanuel

After removing ads-contextEntry  from our custom partition definition 
and setting up fresh installation i have got new error message which starts complaining 
about system partition 

org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS ou=system already exists!

So it might be that rabbit hole goes even deeper. With latest Apache ds studio (  Apache Directory Studio 2.0.0.v20151221-M10)  
I am encountering something similar when  saving configuration second time  into same file.

Unable to save configuration.
 - ERR_250_ENTRY_ALREADY_EXISTS ou=config already exists!
org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS ou=config already exists!

 I can fill those bugs in in jira if they are relevant.

Best Regards

Joel Arula



-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com] 
Sent: Wednesday, May 18, 2016 4:09 PM
To: users@directory.apache.org
Subject: Re: ERR_250_ENTRY_ALREADY_EXISTS

Le 18/05/16 à 13:25, Joel Arula a écrit :
> Hi
>
> I am using  embeded aopache ds version 2.0.0-M21 When setting up clean 
> installation every startup after first one is failing with
> org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsEx
> ception: ERR_250_ENTRY_ALREADY_EXISTS What can be done in order to avoid this error, and what causes it ?
>
> Best Regards
>
> Joel Arula
>
Have you edited teh configuration with Apache Directory Studio ? If so, you may have added the contextEntry in the configuration, and it will be injected at startup. Sadly, once injected, it won't be removed from teh config, and will be added again when you start the server again...


Can you check that ?


Re: ERR_250_ENTRY_ALREADY_EXISTS

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 18/05/16 � 15:21, Joel Arula a �crit :
> Hi Emmanuel
>
> Yes indeed.  We have prepared customized configuration where there is.
>
> dn: ads-partitionId=ims,ou=partitions,ads-directoryServiceId=default,ou=config
> ads-contextEntry:: ZG46IGRjPWltcyxkYz1wbGF5dGVjaCxkYz1jb3JwCm9iamVjdGNsYXNzOiBkb
>  21haW4Kb2JqZWN0Y2xhc3M6IHRvcApkYzogaW1zCgo=
> entryCSN: 20160512143435.245000Z#000000#000#000000
>
> If I remember it right our problem started after upgrading the configuration.
> Is  it OK to remove this entry?
Yes.

You can also fill a JIRA, so that we fix this annoying error in the next
version (we will simply ignore the error message)

Thanks !


RE: ERR_250_ENTRY_ALREADY_EXISTS

Posted by Joel Arula <Jo...@playtech.com>.
Hi Emmanuel

Yes indeed.  We have prepared customized configuration where there is.

dn: ads-partitionId=ims,ou=partitions,ads-directoryServiceId=default,ou=config
ads-contextEntry:: ZG46IGRjPWltcyxkYz1wbGF5dGVjaCxkYz1jb3JwCm9iamVjdGNsYXNzOiBkb
 21haW4Kb2JqZWN0Y2xhc3M6IHRvcApkYzogaW1zCgo=
entryCSN: 20160512143435.245000Z#000000#000#000000

If I remember it right our problem started after upgrading the configuration.
Is  it OK to remove this entry?

Best Regards

Joel Arula



-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com] 
Sent: Wednesday, May 18, 2016 4:09 PM
To: users@directory.apache.org
Subject: Re: ERR_250_ENTRY_ALREADY_EXISTS

Le 18/05/16 à 13:25, Joel Arula a écrit :
> Hi
>
> I am using  embeded aopache ds version 2.0.0-M21 When setting up clean 
> installation every startup after first one is failing with
> org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsEx
> ception: ERR_250_ENTRY_ALREADY_EXISTS What can be done in order to avoid this error, and what causes it ?
>
> Best Regards
>
> Joel Arula
>
Have you edited teh configuration with Apache Directory Studio ? If so, you may have added the contextEntry in the configuration, and it will be injected at startup. Sadly, once injected, it won't be removed from teh config, and will be added again when you start the server again...


Can you check that ?


Re: ERR_250_ENTRY_ALREADY_EXISTS

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 18/05/16 � 13:25, Joel Arula a �crit :
> Hi
>
> I am using  embeded aopache ds version 2.0.0-M21
> When setting up clean installation every startup after first one is failing with
> org.apache.directory.api.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS
> What can be done in order to avoid this error, and what causes it ?
>
> Best Regards
>
> Joel Arula
>
Have you edited teh configuration with Apache Directory Studio ? If so,
you may have added the contextEntry in the configuration, and it will be
injected at startup. Sadly, once injected, it won't be removed from teh
config, and will be added again when you start the server again...


Can you check that ?