Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto sync LDAP data not work #488

Open
MorganReid opened this issue Nov 28, 2023 · 6 comments
Open

Auto sync LDAP data not work #488

MorganReid opened this issue Nov 28, 2023 · 6 comments

Comments

@MorganReid
Copy link

MorganReid commented Nov 28, 2023

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.

@Carazyda
Copy link
Member

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

@MorganReid
Copy link
Author

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.

@Carazyda
Copy link
Member

Please specify what version of the community server you have?

@MorganReid
Copy link
Author

Please specify what version of the community server you have?

12.5.2

@Carazyda
Copy link
Member

Please also check web.controlpanel.log for errors.

@MorganReid
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants