Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Calendar won't start after upgrade to Mountain Lion

Hi,


After upgrading to ML, my calendar service didn't want to start.


There is a "Error reading settings" message in the Server window when selecting "Calendar". Additionally, when clicking the "on" button, I get the following error:


The error occurred while processing a command of type 'getLocationList' in plug-in 'servermgr_calendar'.

Where do I start troubleshooting this issue?

Posted on Jul 25, 2012 1:28 PM

Reply
57 replies

Jul 26, 2012 11:15 AM in response to davidcmn

There is a folder called /Library/Server/Previous


This has an etc folder within in that does have the caldavd/caldavd.plist in it. And the value of ServerRoot is:


</dict>

<key>ServerHostName</key>

<string></string>

<key>ServerRoot</key>

<string>/Library/CalendarServer/Documents/</string>

<key>ServerStatsFile</key>

<string>/var/run/caldavd/stats.plist</string>

<key>Sharing</key>

<dict>

<key>Enabled</key>

Jul 26, 2012 11:30 AM in response to _morgen__

Yes to both


# ls /Library/Server/Previous/Library/CalendarServer

Documents


bash-3.2# pwd

/Library/Server/Previous/Library/Server/Calendar and Contacts

bash-3.2# ls -lart

total 0

drwxr-xr-x 4 root wheel 136 Oct 28 2011 .

drwxr-x--- 4 _calendar _calendar 170 Oct 28 2011 Documents

drwxr-x--- 3 _calendar _calendar 238 Oct 28 2011 Data

drwxr-xr-x 10 root wheel 340 Oct 28 2011 ..

Jul 26, 2012 3:59 PM in response to davidcmn

I have tried several Snow -> Lion -> Mtn Lion upgrades today and can't reproduce the issue where /Library/Server/Previous/Library/CalendarServer exists and the /Library/Server/Previous/private/etc/caldavd/caldavd.plist has a ServerRoot value of "/Library/CalendarServer/Documents/".


Regardless, to get you unstuck, we first need to determine which directory has your calendar metadata; I use the term "metadata" because your actual calendar events are in the postgres database. Please paste the output of the following two terminal commands (before pasting to the forum, remove any private information like attachment names which may appear):


sudo find /Library/Server/Previous/Library/CalendarServer


sudo find "/Library/Server/Previous/Library/Server/Calendar and Contacts"

Jul 26, 2012 4:03 PM in response to _morgen__

Last login: Thu Jul 26 13:09:20 on ttys000

server:etc admin$ sudo find /Library/Server/Previous/Library/CalendarServer

Password:

/Library/Server/Previous/Library/CalendarServer

/Library/Server/Previous/Library/CalendarServer/Documents

/Library/Server/Previous/Library/CalendarServer/Documents/Data

/Library/Server/Previous/Library/CalendarServer/Documents/Data/resources.xml

server:etc admin$



server:etc admin$ sudo find "/Library/Server/Previous/Library/Server/Calendar and Contacts"

/Library/Server/Previous/Library/Server/Calendar and Contacts

/Library/Server/Previous/Library/Server/Calendar and Contacts/trigger_resource_migration

server:etc admin$

Jul 26, 2012 4:09 PM in response to _morgen__

$ sudo find /Library/Server/Previous/Library/CalendarServer

Password:

/Library/Server/Previous/Library/CalendarServer

/Library/Server/Previous/Library/CalendarServer/Documents

/Library/Server/Previous/Library/CalendarServer/Documents/Data

/Library/Server/Previous/Library/CalendarServer/Documents/Data/mailgatewaytokens .sqlite

/Library/Server/Previous/Library/CalendarServer/Documents/Data/mailgatewaytokens .sqlite-journal

/Library/Server/Previous/Library/CalendarServer/Documents/Data/memberships_cache

/Library/Server/Previous/Library/CalendarServer/Documents/Data/proxies.sqlite

/Library/Server/Previous/Library/CalendarServer/Documents/Data/resources.xml

/Library/Server/Previous/Library/CalendarServer/Documents/Data/yR3xw63JGHxFEDdhm emberships_cache.new

/Library/Server/Previous/Library/CalendarServer/Documents/Documents

/Library/Server/Previous/Library/CalendarServer/Documents/Documents/.calendarser ver_version


And


$ sudo find "/Library/Server/Previous/Library/Server/Calendar and Contacts"

/Library/Server/Previous/Library/Server/Calendar and Contacts

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/mailgatewaytokens.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/mailgatewaytokens.sqlite-journal

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/proxies.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/resources.xml

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/tasks

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/tasks/incoming

/Library/Server/Previous/Library/Server/Calendar and Contacts/Data/tasks/processing

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/.calendarserver_version

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__/C2

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__/C2/0A

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3 -10440333EDF0

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3 -10440333EDF0/addressbook

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/addressbooks-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3 -10440333EDF0/addressbook/.db.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/Personal.ics

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/Sjolshagen_Thomas_Calendar.ics

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/calendar

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/calendar/.db.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/inbox

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/BB/C2/BBC206BC-0585-4FC5-B511-06 0E29350DF2/inbox/.db.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3-10 440333EDF0

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3-10 440333EDF0/calendar

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3-10 440333EDF0/calendar/.db.sqlite

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3-10 440333EDF0/inbox

/Library/Server/Previous/Library/Server/Calendar and Contacts/Documents/calendars-migrated/__uids__/C2/0A/C20A65FD-DC66-48A0-91B3-10 440333EDF0/inbox/.db.sqlite

Jul 26, 2012 4:32 PM in response to davidcmn

davidcmn, was your Lion calendar service even working before the Mountain Lion upgrade? There is essentially no metadata in either of your two /Library/Server/Previous calendar-related directories.


To get you unstuck, first, if you have a "/Library/Server/Calendar and Contacts" directory (note I'm not talking about the one in /Library/Server/Previous), rename it to something else because the following terminal commands will create a new one that contains a default configuration:


sudo mkdir -p "/Library/Server/Calendar and Contacts/Config"

sudo mkdir -p "/Library/Server/Calendar and Contacts/Data/Documents"

sudo echo "2" > "/Library/Server/Calendar and Contacts/Data/Documents/.calendarserver_version"

sudo cp /Applications/Server.app/Contents/ServerRoot/private/etc/caldavd/caldavd.plist "/Library/Server/Calendar and Contacts/Config"

sudo chown -R calendar:calendar "/Library/Server/Calendar and Contacts"


You should then be able to start the calendar and contacts services.

Jul 26, 2012 4:46 PM in response to sjolshag

sjolshag, you appear to have two sets of calendar-related directories, *both* with some amount of metadata. Problem is I can't tell by looking at the above output which is "real" one. You could carry out the same terminal commands I gave to davidcmn which essentially set up a new /Library/Server/Calendar and Contacts/ directory from scratch, but then before starting calendar service you could copy mailgatewaytokens.sqlite-journal, mailgatewaytokens.sqlite, resources.xml, and proxies.sqlite files from the more recent /Library/Server/Previous directory, and copy them into /Library/Server/Calendar and Contacts/Data/


Jul 27, 2012 5:06 AM in response to CeesBerrens

Dear Cees,


for me the solutions was :
- set system language to English ( open terminal, type sudo languagesetup and choose option 1 )

- stop server components
- delete server app

- restart mac
-re-download server app from the app store

- reinstall
- problem solved (calendar working again)


I had this problem on 2 machines with the same setup


on one of my machines I ran in another problem, namely that the wiki didn't start , eventually I did an extra install of the server app, and everything came online.


hope this helps


yours

Job

Calendar won't start after upgrade to Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.