[
https://issues.apache.org/jira/browse/DIRSERVER-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857771#comment-15857771
]
Emmanuel Lecharny commented on DIRSERVER-2116:
----------------------------------------------
Thanks Stefan.
FTR, I'm currently trying to get Mavibot completed, and I' making progress. As
of today (well, I would rather say as of last night), I'm now able to insert
elements in a B-tree withing a transaction, which is a very important first
step. There is still a lot to do :
- handle deletions (but this is the same logic than addition, except that it's
a bit more complex)
- manage free pages
- add the pages reclaimer (without it the file grows very quickly : inserting
100 000 elements in a B-tree results in a 500Mb big file !)
Once done, and beside obvious optimisations (like adding a cache), I can say
that the performances are good. For a transaction across 10 B-trees, I expect
to get a 5x faster backend, compared to the previously released version of
Mavibot, which is already 2 to 3 times faster than JDBM).
Don't expect that to be ready in the next few days, though...
In the mean time, be sure to properly shutdown the server, to give a chance to
the current JDBM backend to flush files on disk (kill -9 is simply not an
option). There is an extended operation that can be used to properly stop the
server, the {{gracefulShutdown}} operation, which OID is
{{1.3.6.1.4.1.18060.0.1.3}}. It can be invoked in command line using
{{ldapextop 1.3.6.1.4.1.18060.0.1.3}} - you will have to install the OpenLDAP
LDAP package. Sadly, we currently don't provide a way to send an extended
operation in Studio (that would be a good addition...)
> ApacheDS failed to start after every reboot and throwing error
> ERR_250_ENTRY_ALREADY_EXISTS dc=example,dc=com already exists!
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-2116
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2116
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 2.0.0-M21
> Environment: Ubuntu 14.04.3 LTS trusty
> Reporter: AADI
> Fix For: 2.0.0-M24
>
> Attachments: complete-dump-2017-02-07.ldif,
> org.apache.directory.studio.ldapservers-2017-02-07.zip,
> org.apache.directory.studio.ldapservers-2017-02-07.zip
>
>
> HI
> I downloaded ApcheDS Debian Package (apacheds-2.0.0-M21-amd64.deb )
> and installed on Ubuntu server for my personal testing of LDAP .
> It worked very well after i installed and configured on my server .
> But problems arise when my server rebooted every-time .
> After every reboot i have to start the ApacheDS server manually by follwing
> command
> *sudo /etc/init.d/apacheds-2.0.0-M21-default start
> And immediately i got following reply
> Starting ApacheDS - default...
> ApacheDS - default is already running. *
> But this is not true. i observed there is no process running which are
> associated with ApacheDS in OS
> After referring the one of the solution given in this list i just clear the
> pid file contents (
> /var/lib/apacheds-2.0.0-M21/default/run/apacheds-default.pid) and overcome
> the first problem .
> But still it failed to start and i observed below errors in log file
> {color:red}
> {{jvm 1 | [15:51:29] ERROR
> [org.apache.directory.server.wrapper.ApacheDsTanukiWrapper] - Failed to start
> the service.
> jvm 1 | org.apache.directory.api.ldap.model.exception.LdapOtherException:
> ERR_250_ENTRY_ALREADY_EXISTS dc=example,dc=com already exists!
> jvm 1 | at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:94)
> jvm 1 | at
> org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1813)
> jvm 1 | at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1250)
> jvm 1 | at
> org.apache.directory.server.ApacheDsService.initDirectoryService(ApacheDsService.java:318)
> jvm 1 | at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:182)
> jvm 1 | at
> org.apache.directory.server.wrapper.ApacheDsTanukiWrapper.start(ApacheDsTanukiWrapper.java:72)
> jvm 1 | at
> org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
> }}{color}
> i would like to know that should i reinstall the ApacheDS evertyime when
> server reboot ?
> i tried several solutions mentioned in web to overcome this none worked for
> me except reinstall
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)