LDAP Last Sync Time Reset

Infos:

  • Used Zammad version: 3.6 update to 4.0
  • Used Zammad installation type: Ubuntu Package
  • Operating system: Ubuntu 18.04.5 LTS
  • Browser + version: not relevant

Due to a boot process with the wrong date and time, the last LDAP sync was entered with the wrong date. The date is in the future 2045. This incorrect entry prevents an automatic LDAP sync. A manual sync works fine. How can I reset this entry.

You can run the following command to correct last_run attribute of Zammads ldap sync to the current moment. The sync then will take over after roughly an hour from that moment.

zammad run rails r "Scheduler.find_by(name: 'Import Jobs').update(last_run: Time.now)"

Hello Mr Generation,
Thanks for your support.
I executed the given command as indicated (copy / paste).
No error message but also no change to the last sync date!

Any idea what else I can do?

What does zammad run rails r "p Scheduler.find_by(name: 'Import Jobs').active return?

I have entered following:

sudo zammad run rails r “p Scheduler.find_by(name: ‘ImportJobs’).active”

Please specify a valid ruby command or the path of a script to run.
Run ‘bin/rails runner -h’ for help.

undefined method `active’ for nil:NilClass
Did you mean? acts_like?

Info for you:
some experience with Linux and command line is available but none with rails and its administration

Yeah you got a typo there. Please copy the code from above and paste it.

I have read the command x times but still missed the missing space character :wink:

The command returns a simple “True”

Thanks for your patience

Hi MrGeneration,

i would like to inform you that the problematic zammad instance no longer exists and thus the sync problem is “settled”!

thanks for your help.

vs

was the issue - just to enlighten you.

Anyway, glad you could “solve” the issue, thanks for the feedback

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.