[CalendarServer-users] Help! CalendarServer was disconnected from OpenDirectory for days, and now everything is gone!?
sean at rogue-research.com
Mon Jan 6 09:24:16 PST 2020
I'm running CalendarServer on macOS 10.13.6 with Server.app 5.6.3 and it's been basically set-and-forget. But now I have a big problem.
I updated a network switch's firmware, which broke the connection from my Calendar server to my (separate) Open Directory server. For whatever reason, the connection didn't auto-reestablish. This went unnoticed for days during the holidays.
Back in the office today, no one could authenticate. Magic reboot didn't help. I had to go to Sys Prefs > Users&Groups > Login Options and un-join and re-join to the OD server. Now I can authenticate to the calendar server, but everything seems to be gone! Looking in the logs, I see things like:
2019-12-27T18:48:28-0500 [caldav-2] [calendarserver.tools.purge#warn] Principal XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX is no longer in the directory; scheduling clean-up at 2020-01-03 23:48:28.984229
2020-01-03T18:48:29-0500 [caldav-1] [calendarserver.tools.purge#warn] Cleaning up future events for principal XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX since they are no longer in directory
So has it indeed "helpfully" deleted everything for me? :(
I do have backups. Is there a single database file I could restore? Where is it?
Thanks for any help!!!
More information about the calendarserver-users