You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Jeroen Vriesman <li...@gmail.com> on 2008/05/23 10:07:04 UTC

apacheds sudden death

Hi,

yesterday my apacheds crashed, when trying to start it again, the I get the
following error in the log:

[18:15:11] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on
null.init(InstallationLayout, String[])
java.lang.NullPointerException
    at
org.apache.directory.server.core.schema.SchemaPartitionDao.findDn(SchemaPartitionDao.java:469)
    at
org.apache.directory.server.core.schema.SchemaPartitionDao.findSchema(SchemaPartitionDao.java:449)
    at
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:908)
    at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:255)
    at
org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:124)
    at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at
javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
    at org.apache.directory.server.Service.init(Service.java:97)
    at
org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:151)
    at
org.apache.directory.daemon.TanukiBootstrapper.start(TanukiBootstrapper.java:55)
    at
org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)

Which doesn't mean anything to me, I can just see that it starts with
schema, I did import some custom schema's, created with directory studio
from openldap schema's, these schema's didn't give any error in studio, and
have been working for about one week, no schema changes yesterday.

Just before the crash I can see this in the log (which is also too cryptic
for me):

[16:40:06] ERROR [org.apache.directory.server.ldap.support.UnbindHandler] -
failed to unbind session properly
org.apache.directory.shared.ldap.exception.LdapNameNotFoundException:
uid=admin,ou=system
        at
org.apache.directory.server.core.partition.DefaultPartitionNexus.getPartition(DefaultPartitionNexus.java:1114)
        at
org.apache.directory.server.core.partition.DefaultPartitionNexus.unbind(DefaultPartitionNexus.java:773)
        at
org.apache.directory.server.core.interceptor.InterceptorChain$1.unbind(InterceptorChain.java:210)
        at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind(InterceptorChain.java:1412)
        at
org.apache.directory.server.core.interceptor.BaseInterceptor.unbind(BaseInterceptor.java:229)
        at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind(InterceptorChain.java:1412)
        at
org.apache.directory.server.core.interceptor.BaseInterceptor.unbind(BaseInterceptor.java:229)
        at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind(InterceptorChain.java:1412)
        at
org.apache.directory.server.core.interceptor.BaseInterceptor.unbind(BaseInterceptor.java:229)

lots of times the same two lines....

        at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.unbind(InterceptorChain.java:1412)
        at
org.apache.directory.server.core.interceptor.BaseInterceptor.unbind(BaseInterceptor.java:229)
        at
org.apache.directory.server.core.interceptor.InterceptorChain.unbind(InterceptorChain.java:794)
        at
org.apache.directory.server.core.partition.PartitionNexusProxy.unbind(PartitionNexusProxy.java:684)
        at
org.apache.directory.server.core.partition.PartitionNexusProxy.unbind(PartitionNexusProxy.java:701)
        at
org.apache.directory.server.core.jndi.ServerLdapContext.ldapUnbind(ServerLdapContext.java:210)
        at
org.apache.directory.server.ldap.support.UnbindHandler.messageReceived(UnbindHandler.java:58)
        at
org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:141)
        at
org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler.messageReceived(LdapProtocolProvider.java:428)
        at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
        at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
        at
org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
        at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
        at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)
        at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:176)
        at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
        at
org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
        at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
        at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)
        at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)


any idea why this is happening?

Re: apacheds sudden death

Posted by Jeroen Vriesman <li...@gmail.com>.
Hi,

At the moment of the crash I wasn't ding anything with the server, but t was
being queried bij pam-ldap and sambe from another server.

About half an hour before the crash I was trying an ldapmodify with the
following ldif:

dn: o=hivos
changetype: modify
objectClass: organization
objectClass: extensibleObject
objectClass: top
add: administrativeRole
administrativeRole: accessControlSpecificArea

because I thought that was the way to get access control working, but it
didn't want to import the "add" attribute (so that was probably wrong).

Cheers,
Jeroen.



On Fri, May 23, 2008 at 3:01 PM, Emmanuel Lecharny <el...@apache.org>
wrote:

> Hi,
>
> Jeroen Vriesman wrote:
>
>> Hi,
>>
>> yesterday my apacheds crashed,
>>
> 1.5.2 ?
>
>> when trying to start it again, the I get the
>> following error in the log:
>>
>>
> I'm afraid that your schema partition is in bad shape...
>
>  Which doesn't mean anything to me, I can just see that it starts with
>> schema, I did import some custom schema's, created with directory studio
>> from openldap schema's, these schema's didn't give any error in studio,
>> and
>> have been working for about one week, no schema changes yesterday.
>>
>> Just before the crash I can see this in the log (which is also too cryptic
>> for me):
>>
>> [16:40:06] ERROR [org.apache.directory.server.ldap.support.UnbindHandler]
>> -
>> failed to unbind session properly
>>
>>
> This is a known error which has been fixed in 1.5.2 (hopefully).
>
>
>> any idea why this is happening?
>>
>>
> What were you doing when the server crashed ?
>
> Otherwise, I guess that you can't anymore start the server again. You will
> have to destroy the schema partition file, restart the server, and reinject
> the new schema.
>
> We have added what we called a changeLog which save every modification to
> the server, in order to get it repaired when it crashed (for any reason,
> like a power failure). It's not yet totally functionnal, so in the meantime,
> I suggest that you export your data as a LDIF file to get a backup.
>
> Sorry for the inconvenience, the server is still under heavy work to make
> it more stable and reliable, but it's a long term work.
>
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: apacheds sudden death

Posted by Emmanuel Lecharny <el...@apache.org>.
Hi,

Jeroen Vriesman wrote:
> Hi,
>
> yesterday my apacheds crashed, 
1.5.2 ?
> when trying to start it again, the I get the
> following error in the log:
>   
I'm afraid that your schema partition is in bad shape...

> Which doesn't mean anything to me, I can just see that it starts with
> schema, I did import some custom schema's, created with directory studio
> from openldap schema's, these schema's didn't give any error in studio, and
> have been working for about one week, no schema changes yesterday.
>
> Just before the crash I can see this in the log (which is also too cryptic
> for me):
>
> [16:40:06] ERROR [org.apache.directory.server.ldap.support.UnbindHandler] -
> failed to unbind session properly
>   
This is a known error which has been fixed in 1.5.2 (hopefully).

>
> any idea why this is happening?
>   
What were you doing when the server crashed ?

Otherwise, I guess that you can't anymore start the server again. You 
will have to destroy the schema partition file, restart the server, and 
reinject the new schema.

We have added what we called a changeLog which save every modification 
to the server, in order to get it repaired when it crashed (for any 
reason, like a power failure). It's not yet totally functionnal, so in 
the meantime, I suggest that you export your data as a LDIF file to get 
a backup.

Sorry for the inconvenience, the server is still under heavy work to 
make it more stable and reliable, but it's a long term work.


-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org