Calendaring data is not "live mirrorred" but copied once per day from the master to the slave for backup puposes as caldb.sqlite.bak. This is the reason calendaring is normally disabled on the slave. In order to enable calendaring on on the mirror:
1) copy / rename surgemail/scripts/data/caldb.sqlite.bak to surgemail/scripts/data/caldb.sqlite
2) either make the system the master, OR comment out this check in surgemail/scripts/cal.php
//if(getenv("CLUSTER_MASTER")!='TRUE'){
// print("ERROR: calendaring can only be used on the MASTER of a mirrorred cluster");
// return;
//}
Marijn
On Tuesday 09/01/2018 at 5:36 am, John Wilkes wrote:
I installed the php modules that CalDAV needs and when I tried to “verify authentication integration” I got an error message that calendaring is available on the master only.
I changed g_mirror_mode to “MASTER” in the (former) mirror’s surgemail.ini, shutdown the mirror and restarted.
Now when I verify authentication integration I get the login popup, but it does not accept my password.
If I try to see my calendar in SurgeWeb, I get an error message: Cal Request Failed: 401 Unauthorized
What do I need to do to fix this?
Thanks,
John
—
john@wilkes.com
On Jan 7, 2018, at 5:11 PM, John Wilkes <john@wilkes.com> wrote:
I have a mirror setup, and I use the caldav and carddav on my server. Are calendar and contacts mirrored?
My server disk drive failed, and I am currently running on the mirror (still as a “slave”) while I organize a new server system, but I don’t see my calendar in SurgeWeb, just a blank blue page, and the only contacts are those to whom I have sent email while running on the mirror.
Thanks,
John
—
john@wilkes.com