Clément OUDOT <[email protected]> a écrit :
2013/11/4 Maxime Pelletier <[email protected]>
_Hi all,
Any idea how to fix that error while syncing with OpenLDAP:
=====================
Nov 04 09:26:20 - INFO - Starting clean for Eleves
Nov 04 09:30:35 - ERROR - Error while deleting entry
uid=XXXXXX,ou=Personne,dc=myorg directory
:javax.naming.CommunicationException: connection closed [Root exception
is java.io.IOException: connection closed]; remaining name
'uid=XXXXXXX,ou=Personne'
Nov 04 09:30:35 - ERROR - Error while synchronizing ID
uid=XXXXXX,ou=Personne,dc=myorg: org.lsc.exception.LscServiceException:
javax.naming.CommunicationException: connection closed [Root exception
is java.io.IOException: connection closed]; remaining name
'uid=XXXXXXXX,ou=Personne'
dn: uid=XXXXXX,ou=Personne,dc=myorg
changetype: delete
Nov 04 09:30:35 - ERROR - Connection lost! Aborting.
=====================
Looks like some OpenLDAP timeout setting is too short and that it
disconnects LSC before the exexution is complete.
Based on Google research,I tried these settings in JAVA_OPTS but no
luck:
-Djava.naming.ldap.version=2
-Dcom.sun.jndi.ldap.read.timeout=60000
-Dcom.sun.jndi.ldap.connect.pool=false
-Dcom.sun.jndi.ldap.connect.timeout=60000
Any idea?_
_Seems not a good idea to use LDAPv2. We do not have such timeout
problems, do you know why the connection is closed?
Clément._
In case it can help to understand, here is a more complete stack trace:
=====================
org.lsc.exception.LscServiceException: javax.naming.CommunicationException:
connection closed [Root exception is java.io.IOException: connection
closed]; remaining name 'uid=XXXXXXXX,ou=Personne'
at
org.lsc.jndi.SimpleJndiDstService.apply(SimpleJndiDstService.java:201)
~[lsc-core-2.0.jar:na]
at
org.lsc.AbstractSynchronize.clean2Ldap(AbstractSynchronize.java:254)
~[lsc-core-2.0.jar:na]
at
org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:217)
[lsc-core-2.0.jar:na]
at
org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:168)
[lsc-core-2.0.jar:na]
at org.lsc.Launcher.run(Launcher.java:224)
[lsc-core-2.0.jar:na]
at org.lsc.Launcher.launch(Launcher.java:159)
[lsc-core-2.0.jar:na]
at org.lsc.Launcher.main(Launcher.java:142)
[lsc-core-2.0.jar:na]
Caused by: javax.naming.CommunicationException: connection closed
at
com.sun.jndi.ldap.LdapCtx.c_destroySubcontext(LdapCtx.java:894)
~[na:1.7.0_07]
at
com.sun.jndi.toolkit.ctx.ComponentContext.p_destroySubcontext(ComponentContext.java:671)
~[na:1.7.0_07]
at
com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:354)
~[na:1.7.0_07]
at
javax.naming.InitialContext.destroySubcontext(InitialContext.java:479)
~[na:1.7.0_07]
at org.lsc.jndi.JndiServices.apply(JndiServices.java:727)
~[lsc-core-2.0.jar:na]
at
org.lsc.jndi.SimpleJndiDstService.apply(SimpleJndiDstService.java:199)
~[lsc-core-2.0.jar:na]
... 6 common frames omitted
Caused by: java.io.IOException: connection closed
at
com.sun.jndi.ldap.LdapClient.ensureOpen(LdapClient.java:1578)
~[na:1.7.0_07]
at com.sun.jndi.ldap.LdapClient.delete(LdapClient.java:1041)
~[na:1.7.0_07]
at
com.sun.jndi.ldap.LdapCtx.c_destroySubcontext(LdapCtx.java:861)
~[na:1.7.0_07]
... 11 common frames omitted
=====================
Thanks in advance for your help
Maxime
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users