LSC run as a service, but after only a few hours of perfect operation enters a 
loop with this error, see attachment 

If you stop the service, and manually run the task lsc not encounter any 
problems. 

OpenLDAP server is running normally and reading the logs I see the connections 
of LSC with result OK. 

Also enclose lsc.xml 

Using LSC 2.1 with java 1.7 in CentOS 6.8, SELINUX disabled, iptable off, ntp 
ok... 




Some idea? 




Thanks in advance 
Regards 




Massimo 


----- Messaggio originale -----

Da: "Clément OUDOT" <clement.ou...@savoirfairelinux.com> 
A: lsc-users@lists.lsc-project.org 
Inviato: Venerdì, 23 settembre 2016 11:48:26 
Oggetto: Re: [lsc-users] issue with aSync groups with LSC 2.1 service 





Le 23/09/2016 à 11:35, Massimo Ciancio a écrit : 



Hi to all 

I have a strange situation 

Using LSC 2.1 with java 1.7, after a manual run of LSC with 



/usr/bin/lsc -f /etc/lsc -s all -c all 

i have always correct result 

Sep 23 10:20:10 - INFO - Starting sync for Sync_Groups 


Sep 23 10:20:16 - INFO - All entries: 186, to modify entries: 0, successfully 
modified entries: 0, errors: 0 

Sep 23 10:20:16 - INFO - Starting clean for Sync_Groups 


Sep 23 10:20:18 - INFO - All entries: 186, to modify entries: 0, successfully 
modified entries: 0, errors: 0 

Sep 23 10:20:18 - INFO - Starting sync for Sync_Users 

Sep 23 10:20:20 - INFO - All entries: 1013, to modify entries: 0, successfully 
modified entries: 0, errors: 0 
Sep 23 10:20:20 - INFO - Starting clean for Sync_Users 
Sep 23 10:20:22 - INFO - All entries: 1013, to modify entries: 0, successfully 
modified entries: 0, errors: 0 




All ok!... but when run a LSC service for async and check Sync Group the result 
with lsc-agent return this result: 




first check 




# lsc-agent -s Sync_Groups 




Sep 23 11:17:08 - INFO - Hostname parameter not specified, using localhost as 
default value. 
Sep 23 11:17:08 - INFO - TCP Port parameter not specified, using 1099 as 
default value. 
Sep 23 11:17:08 - INFO - Connecting to remote engine on : 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 
Sep 23 11:17:08 - INFO - Asynchronous task Sync_Groups is running 
Sep 23 11:17:08 - INFO - All entries: 55800, to modify entries: 0, successfully 
modified entries: 0, errors: 0 




second check 




Sep 23 11:17:34 - INFO - Hostname parameter not specified, using localhost as 
default value. 
Sep 23 11:17:34 - INFO - TCP Port parameter not specified, using 1099 as 
default value. 
Sep 23 11:17:34 - INFO - Connecting to remote engine on : 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 
Sep 23 11:17:34 - INFO - Asynchronous task Sync_Groups is running 
Sep 23 11:17:34 - INFO - All entries: 56181, to modify entries: 0, successfully 
modified entries: 0, errors: 0 







Why?? All entries always increase????? 




Any idea?? 



It's not a bug, it's a feature ;) 

In async mode, the total entries represent all initial entries and all entries 
modifed after first sync. 
-- 
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité
Savoir-faire Linux
87, rue de Turbigo - 75003 PARIS
Blog: http://sflx.ca/coudot 

_______________________________________________________________ 
Ldap Synchronization Connector (LSC) - http://lsc-project.org 

lsc-users mailing list 
lsc-users@lists.lsc-project.org 
http://lists.lsc-project.org/listinfo/lsc-users 

Oct 11 09:37:08 - ERROR - LDAP error while reading entry 
cn=20021,ou=people,dc=lsc-project,dc=org 
(org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid)
Oct 11 09:37:08 - ERROR - Synchronization aborted because no source object has 
been found !
Oct 11 09:37:08 - ERROR - LDAP error while reading entry 
cn=20026,ou=people,dc=lsc-project,dc=org 
(org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid)
Oct 11 09:37:08 - DEBUG - 
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.checkSession(LdapNetworkConnection.java:271)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1667)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1710)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1603)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1613)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.lsc.service.SyncReplSourceService.getBean(SyncReplSourceService.java:250) 
~[lsc-core-2.1.3.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707) 
[lsc-core-2.1.3.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_79]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Oct 11 09:37:08 - ERROR - Synchronization aborted because no source object has 
been found !
Oct 11 09:37:08 - ERROR - LDAP error while reading entry 
cn=20020,ou=people,dc=lsc-project,dc=org 
(org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid)
Oct 11 09:37:08 - DEBUG - 
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.checkSession(LdapNetworkConnection.java:271)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1667)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1710)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1603)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1613)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.lsc.service.SyncReplSourceService.getBean(SyncReplSourceService.java:250) 
~[lsc-core-2.1.3.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707) 
[lsc-core-2.1.3.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_79]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Oct 11 09:37:08 - ERROR - Synchronization aborted because no source object has 
been found !
Oct 11 09:37:08 - ERROR - LDAP error while reading entry 
cn=20019,ou=people,dc=lsc-project,dc=org 
(org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid)
Oct 11 09:37:08 - DEBUG - 
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.checkSession(LdapNetworkConnection.java:271)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1667)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1710)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1603)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1613)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.lsc.service.SyncReplSourceService.getBean(SyncReplSourceService.java:250) 
~[lsc-core-2.1.3.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707) 
[lsc-core-2.1.3.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_79]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Oct 11 09:37:08 - ERROR - Synchronization aborted because no source object has 
been found !
Oct 11 09:37:08 - ERROR - LDAP error while reading entry 
cn=20031,ou=people,dc=lsc-project,dc=org 
(org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid)
Oct 11 09:37:08 - DEBUG - 
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: 
Cannot connect on the server, the connection is invalid
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.checkSession(LdapNetworkConnection.java:271)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1667)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1710)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1603)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1613)
 ~[api-all-1.0.0-M22.jar:1.0.0-M22]
        at 
org.lsc.service.SyncReplSourceService.getBean(SyncReplSourceService.java:250) 
~[lsc-core-2.1.3.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707) 
[lsc-core-2.1.3.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_79]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Oct 11 09:37:08 - ERROR - Synchronization aborted because no source object has 
been found !

Attachment: lsc.xml
Description: XML document

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
lsc-users@lists.lsc-project.org
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to