You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2011/07/08 15:30:16 UTC

[jira] [Created] (DIRSERVER-1633) Adding war to webapps directory leads to startup failure

Adding war to webapps directory leads to startup failure
--------------------------------------------------------

                 Key: DIRSERVER-1633
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0-M1
            Reporter: Alex Karasulu
            Assignee: Alex Karasulu
            Priority: Critical
             Fix For: 2.0.0-M2


The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.

Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.


[16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
	... 8 more
[16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
	... 6 more
Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
	... 7 more
Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
	... 8 more


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DIRSERVER-1633) Startup failure after first startup

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Karasulu updated DIRSERVER-1633:
-------------------------------------

             Priority: Blocker  (was: Critical)
    Affects Version/s:     (was: 2.0.0-M1)
              Summary: Startup failure after first startup  (was: Adding war to webapps directory leads to startup failure)

Seems this is worse then we originally thought. This bug occurs whenever the server is restarted but thank God it does not happen with the last m1 release (confirmed by PAM). Increasing issue priority and changing summary to reflect situation appropriately.

> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DIRSERVER-1633) Startup failure after first startup

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Karasulu resolved DIRSERVER-1633.
--------------------------------------

    Resolution: Fixed

OK seems the bug arose here ... http://goo.gl/C6lGl. Here's the fix ... 

http://svn.apache.org/viewvc?view=revision&revision=1144329



> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (DIRSERVER-1633) Startup failure after first startup

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Karasulu reopened DIRSERVER-1633:
--------------------------------------


OK let's then reopen this issue to fix this properly. This temporary fix just for now takes care of the critical problem of not being able to start the server. But we should fix this the right way.

Thanks for the heads up. 

> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DIRSERVER-1633) Startup failure after first startup

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot resolved DIRSERVER-1633.
-----------------------------------------------

    Resolution: Fixed

Fixed at revision 1145082.

http://svn.apache.org/viewvc?rev=1145082&view=rev

After some interesting chat sessions with Kiran and Alex, it turns out the issue was the fact that:
- The cn=schemaModifications,ou=schema entry was stored on disk in a file name ou=schemaModifications.ldif. Notice the different naming between cn and ou.
- On a second restart a second cn=schemaModifications.ldif was probably found on disk, explaining the "Already existing entry" exception.
- There was also an issue with the schema loader which is expecting any cn=xxx entry under ou=schema to be a starting point for a schema holder (with ATs, OCs, and other schema elements underneath).

As a temporary fix, since there's a discussion going on the ML about this, I renamed the entry 'ou=schemaModifications,ou=schema', conforming to the file name on disk.

All tests are passing and the server can be restart without any issue now.

> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRSERVER-1633) Startup failure after first startup

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062347#comment-13062347 ] 

Alex Karasulu commented on DIRSERVER-1633:
------------------------------------------

We should probably still consider this a blocker issue if there could be unforeseen side effects from the quick fix applied yesterday. 

> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRSERVER-1633) Startup failure after first startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062677#comment-13062677 ] 

Emmanuel Lecharny commented on DIRSERVER-1633:
----------------------------------------------

The only reason I can foresee for such an error is that the Schema partititon is not cleanly wiped out when the server is stopped, leading to an injection of an entry into a partition which already contains it when the server is restarted (the underlying partition is an AVLParitition, ie, in memory).


> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (DIRSERVER-1633) Startup failure after first startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-1633.
----------------------------------------


> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DIRSERVER-1633) Startup failure after first startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062342#comment-13062342 ] 

Emmanuel Lecharny commented on DIRSERVER-1633:
----------------------------------------------

Hi,

I'm a bit annoyed by the fix you applied. I'm afraid that it will have side effects we don't want to see. let me explain :
the Add operation was checking that the entry didn't exist before being added. This was done in the Exception interceptor, and I removed this check, as tt's also done in the store.

Now, I do think that if we get an error when the server is started twice, then the problem is that we try to inject the cn=schemaModifications,ou=schema entry twice. This is probably what should be fixed.

> Startup failure after first startup
> -----------------------------------
>
>                 Key: DIRSERVER-1633
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1633
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Karasulu
>            Assignee: Alex Karasulu
>            Priority: Blocker
>             Fix For: 2.0.0-M2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The http-integration module allows wars to be put into the /var/lib/apacheds-${version}/webapps folder to be deployed into the integrated Jetty server which provides access directly to the DirectoryService without apps having to go through the network.
> Adding a war to this causes the following stack trace which prevents the server from starting up. Seems to be a bug recently introduced.
> [16:24:07] ERROR [org.apache.directory.server.core.schema.SchemaPartition] - ERR_90 Failed to initialize wrapped partition.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more
> [16:24:07] ERROR [org.apache.directory.server.ApacheDsTanukiWrapper] - Failed to start the service.
> org.apache.directory.shared.ldap.model.exception.LdapOtherException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1502)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:979)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:279)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:163)
> 	at org.apache.directory.server.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:71)
> 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> Caused by: java.lang.RuntimeException: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:235)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 6 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapOtherException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:77)
> 	at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:221)
> 	... 7 more
> Caused by: org.apache.directory.shared.ldap.model.exception.LdapEntryAlreadyExistsException: ERR_250_ENTRY_ALREADY_EXISTS cn=schemaModifications,ou=schema already exists!
> 	at org.apache.directory.server.xdbm.AbstractStore.add(AbstractStore.java:800)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:475)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.loadEntries(LdifPartition.java:493)
> 	at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:168)
> 	at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:72)
> 	... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira