CommunityServer icon indicating copy to clipboard operation
CommunityServer copied to clipboard

Auto sync LDAP data not work

Open MorganReid opened this issue 2 years ago • 6 comments

Automatic synchronization is turned on(every day at 8:00 am) . image

But no work the next day. The possible reason is that it is either not executed or an execution error occurs. Where can I see the log information or enable it?

I synced manually(Click the sync button) and the data can be synchronized. So there should be no problem with the ldap configuration.

MorganReid avatar Nov 28 '23 10:11 MorganReid

Hello @MorganReid please check web.log or web.api.log for errors.

Carazyda avatar Nov 28 '23 13:11 Carazyda

Hello @MorganReid please check web.log or web.api.log for errors.

Thank you very much for your reply. I deployed onlyoffice-community-server through docker and entered the container of this service.

No matter whether it is automatic synchronization or manual synchronization, there is no output in /var/log/onlyoffice/web.log or /var/log/onlyoffice/web.api.log.

But when I click sync manually, there is a record in /var/log/onlyoffice/nginx.access.log 172.18.0.4 - - [29/Nov/2023:08:12:58 +0000] "GET /api/2.0/settings/ldap/sync HTTP/1.1" 200 231 "-" "-"

Is there any way to verify whether auto sync is turned on?

I checked the official documentation and found that I can first obtain the token by curl api/2.0/authentication.json , then synchronize data by curl api/2.0/settings/ldap/sync, but this requires me to write a cronjob myself.

If possible, I still want to use the default automatic synchronization.

MorganReid avatar Nov 29 '23 09:11 MorganReid

Please specify what version of the community server you have?

Carazyda avatar Nov 29 '23 10:11 Carazyda

Please specify what version of the community server you have?

12.5.2

MorganReid avatar Nov 29 '23 10:11 MorganReid

Please also check web.controlpanel.log for errors.

Carazyda avatar Nov 29 '23 12:11 Carazyda

Please also check web.controlpanel.log for errors.

Thank you very much for your reply.I entered the container of controlpanel service.

when I click sync manually, there is some records in /var/log/onlyoffice/web.controlpanel.11-30.log

2023-11-30 06:57:25 - info: settings/ldap/status
2023-11-30 06:57:26 - info: settings/ldap/status
2023-11-30 06:57:27 - info: settings/ldap/status
2023-11-30 06:57:28 - info: settings/ldap/status

But when it is automatic synchronization ,there is no log in /var/log/onlyoffice/web.controlpanel.11-30.log.

So automatic synchronization should not be scheduled for execution.

MorganReid avatar Nov 30 '23 07:11 MorganReid