You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Sudheer Kumar <su...@gmail.com> on 2010/06/08 11:43:43 UTC
Is it safe to replace master.db file?
Hi,
I am using ApacheDs 1.5.4, after running successfully for a long time, now
getting the following error:
Exception in thread "main" java.lang.NullPointerException
at org.apache.directory.server.core.entry.ClonedServerEntry.<init>
(ClonedServerEntry.java:67)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.lookup
(JdbmPartition.java:457)
at
org.apache.directory.server.core.partition.impl.btree.ServerEntryCursorAdaptor.get
(ServerEntryCursorAdaptor.java:140)
at
org.apache.directory.server.core.partition.impl.btree.ServerEntryCursorAdaptor.get
(ServerEntryCursorAdaptor.java:40)
at
org.apache.directory.server.core.filtering.BaseEntryFilteringCursor.next
(BaseEntryFilteringCursor.java:502)
at org.apache.directory.server.core.authz.GroupCache.initialize
(GroupCache.java:151)
at org.apache.directory.server.core.authz.GroupCache.<init>
(GroupCache.java:115)
at
org.apache.directory.server.core.authz.AciAuthorizationInterceptor.init
(AciAuthorizationInterceptor.java:211)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register0
(InterceptorChain.java:439)
at
org.apache.directory.server.core.interceptor.InterceptorChain.register
(InterceptorChain.java:395)
at
org.apache.directory.server.core.interceptor.InterceptorChain.init
(InterceptorChain.java:255)
at
org.apache.directory.server.core.DefaultDirectoryService.initialize
(DefaultDirectoryService.java:1385)
at org.apache.directory.server.core.DefaultDirectoryService.startup
(DefaultDirectoryService.java:840)
at org.apache.directory.server.configuration.ApacheDS.startup
(ApacheDS.java:126)
at org.apache.directory.server.Service.init(Service.java:86)
at org.apache.directory.server.UberjarMain.main
(UberjarMain.java:56)
-----------
what I found is that, the master.db file (in <partition>/system)got
corrupted somehow and which is causing this error and not able to start the
server. So I just replaced the master.db from a fresh installation and it
worked. So my question is, is it okay to replace the master.db file as a
workaround? will it cause any data loss? What does it contain? Please
explain.
--
Sudheer Kumar Arimbra
Re: Is it safe to replace master.db file?
Posted by Emmanuel Lecharny <el...@gmail.com>.
On 6/8/10 11:43 AM, Sudheer Kumar wrote:
> Hi,
>
> I am using ApacheDs 1.5.4, after running successfully for a long time, now
> getting the following error:
> <snip/>
>
> -----------
> what I found is that, the master.db file (in<partition>/system)got
> corrupted somehow and which is causing this error and not able to start the
> server. So I just replaced the master.db from a fresh installation and it
> worked. So my question is, is it okay to replace the master.db file as a
> workaround? will it cause any data loss? What does it contain? Please
> explain.
>
The master.db file contains *all* the entries. Replacing it is nt an
issue as soon as you don't care to lose everything. And if you remove
it, you also have to remove all the index, because they are pointing on
nothing.
With 1.5.4, the only solution is to remove the master.db and all the
index, then to inject all the entries back.
We are working on a recovery system for the coming 2.0 version, with a
tool to rebuild the index, assuming the master table is safe, and a
journal to reinject all the modifications if the server has crashed.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com