[
https://issues.apache.org/jira/browse/DIRSERVER-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605707#comment-16605707
]
Emmanuel Lecharny commented on DIRSERVER-2249:
----------------------------------------------
Also note that we have released {{ApacheDS 2.0.0.AM25}} two weeks ago, and this
is the version you should use.
Note that this version sees a big difference in the way we store the data: it
all goes into one single file, instead of many files (one per index, plus a few
others). That move has been done to allow cross-B-tree transactions and
guarantee acid operations on updates, avoiding a recurrent corruption problem
with the previous version.
Of course, that means you have to extract your data and reinject them (which
might require many rounds, as an extract is not ordered, and some entries might
be present in the LDIF file before their parents. Re-injecting will only add
the entries that have parents, so at some point, all the entries should be
properly injected. We may have a workaround for such an annoyance soon).
> ApacheDS fails to start after upgrading to 2.0.0-M24
> ----------------------------------------------------
>
> Key: DIRSERVER-2249
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2249
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 2.0.0-M24
> Environment: windows 10
> Reporter: paul qing
> Priority: Major
>
> replace the lib's jar and bin's files and run bat file to start apacheds as
> following:
> C:\apacheds-2.0.0-M20\bin>apacheds.bat
> Starting ApacheDS instance 'default'...
> [12:09:07] 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:1822)
> at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1251)
> at
> org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:364)
> at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:197)
> at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:153)
> at org.apache.directory.server.UberjarMain.start(UberjarMain.java:151)
> at org.apache.directory.server.UberjarMain.main(UberjarMain.java:77)
> 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:809)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:233)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> ... 7 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapException
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.getEntryId(AbstractBTreePartition.java:2755)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1381)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:495)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:89)
> ... 10 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:2732)
> ... 13 more
> [12:09:07] ERROR [org.apache.directory.server.UberjarMain] - Failed to start
> the service.
> java.lang.NullPointerException
> at
> org.apache.directory.server.ApacheDsService.stop(ApacheDsService.java:635)
> at org.apache.directory.server.UberjarMain.stop(UberjarMain.java:219)
> at org.apache.directory.server.UberjarMain.start(UberjarMain.java:158)
> at org.apache.directory.server.UberjarMain.main(UberjarMain.java:77)
>
> added parameter as apacheds.bat default repair in the start script. the error
> as following:
> C:\apacheds-2.0.0-M20\bin>apacheds.bat default repair
> Starting ApacheDS instance 'default'...
> Trying to repair the following data :../instances/default
> Starting the service.
> [12:19:43] 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:1822)
> at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1251)
> at
> org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:364)
> at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:197)
> at
> org.apache.directory.server.UberjarMain.repair(UberjarMain.java:182)
> at org.apache.directory.server.UberjarMain.main(UberjarMain.java:96)
> 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:809)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:233)
> 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:2755)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1381)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:495)
> 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:2732)
> ... 12 more
> [12:19:43] ERROR [org.apache.directory.server.UberjarMain] - Failed to start
> the service.
> java.lang.NullPointerException
> at
> org.apache.directory.server.ApacheDsService.stop(ApacheDsService.java:635)
> at org.apache.directory.server.UberjarMain.stop(UberjarMain.java:219)
> at
> org.apache.directory.server.UberjarMain.repair(UberjarMain.java:189)
> at org.apache.directory.server.UberjarMain.main(UberjarMain.java:96)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)