You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2016/01/21 01:14:39 UTC

[jira] [Commented] (DIRSERVER-2112) ApacheDS crashes after partition is added

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

Emmanuel Lecharny commented on DIRSERVER-2112:
----------------------------------------------

Hi,

I see your other JIRA and message on the user mailing list, where you says that you have a corrupted Database. This is something that could happen in some rare event, and we are working on fixing it, but it's hard...

In the mean time, I think we can recover the database if we have the MasterTable and the Rdn index, I have to check with Kiran; (From the top of my head, I think it's enough to delete all the other indexes and restart the server, it will recreate the missing indexes. To be double checked)

> ApacheDS crashes after partition is added
> -----------------------------------------
>
>                 Key: DIRSERVER-2112
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2112
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M21
>            Reporter: Alexander Pankow
>            Priority: Critical
>
> After I tried to add my partition, the server crashes after trying to generate the cache for the partition:
> {panel:title=Log}
> [12:50:31] INFO [org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex] - Setting CacheRecondManager's cache size to 100
> [12:50:31] INFO [org.apache.directory.server.core.api.CacheService] - fetching the cache named alias
> [12:50:31] INFO [org.apache.directory.server.core.api.CacheService] - fetching the cache named piar
> [12:50:31] INFO [org.apache.directory.server.core.api.CacheService] - fetching the cache named entryDn
> [12:50:31] INFO [org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition] - Setting CacheRecondManager's cache size to 100
> [12:50:31] INFO [org.apache.directory.server.core.api.CacheService] - fetching the cache named cosday
> [12:50:31] INFO [org.apache.directory.server.core.api.CacheService] - No cache with name cosday exists, creating one
> [12:50:31] ERROR [org.apache.directory.server.UberjarMain] - Failed to start the service.
> org.apache.directory.api.ldap.model.exception.LdapOtherException
> 	at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:94)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1813)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1250)
> 	at org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:318)
> 	at org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:182)
> 	at org.apache.directory.server.UberjarMain.start(UberjarMain.java:136)
> 	at org.apache.directory.server.UberjarMain.main(UberjarMain.java:76)
> Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException
> 	at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:94)
> 	at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:787)
> 	at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:211)
> 	at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> 	... 6 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapException
> 	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.getEntryId(AbstractBTreePartition.java:2541)
> 	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1167)
> 	at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:249)
> 	at org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> 	... 9 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapOtherException
> 	at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:371)
> 	at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.forwardLookup(JdbmIndex.java:360)
> 	at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.forwardLookup(JdbmIndex.java:58)
> 	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.getEntryId(AbstractBTreePartition.java:2518)
> 	... 12 more
> [12:50:31] INFO [org.apache.directory.server.UberjarMain] - Stopping the service.
> [12:50:31] ERROR [org.apache.directory.server.UberjarMain] - Failed to start the service.
> java.lang.NullPointerException
> 	at org.apache.directory.server.ApacheDsService.stop(ApacheDsService.java:577)
> 	at org.apache.directory.server.UberjarMain.stop(UberjarMain.java:155)
> 	at org.apache.directory.server.UberjarMain.start(UberjarMain.java:143)
> 	at org.apache.directory.server.UberjarMain.main(UberjarMain.java:76)
> {panel}



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