sjolshag

Q: 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

Close

Q: Calendar won't start after upgrade to Mountain Lion

  • All replies
  • Helpful answers

first Previous Page 3 of 4 last Next
  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 11:01 AM in response to davidcmn
    Level 1 (140 points)
    Jul 26, 2012 11:01 AM in response to davidcmn

    davidcmn:  I'm trying to piece together what happened between your upgrade from 10.6.8 to 10.7.4 -- your calendarmigrator.log indicates the ServerRoot variable was changed to /Library/Server/Calendar and Contacts during the upgrade to Lion. However, the log from the Mountain Lion upgrade indicate the ServerRoot value was /Library/CalendarServer/Documents. Do you still have your Lion Server volume?  What is the value of ServerRoot in the file /etc/caldavd/caldavd.plist? 

  • by davidcmn,

    davidcmn davidcmn Jul 26, 2012 11:11 AM in response to ~morgen
    Level 1 (5 points)
    Jul 26, 2012 11:11 AM in response to ~morgen

    I don't have an /etc/caldavd folder on my server

  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 11:14 AM in response to davidcmn
    Level 1 (140 points)
    Jul 26, 2012 11:14 AM in response to davidcmn

    Well, I mean on your Lion volume.  If you don't still have a copy of your Lion volume, look in /Library/Server/Previous/etc/caldavd -- it should have been copied there by the migration assistant.

  • by sjolshag,

    sjolshag sjolshag Jul 26, 2012 11:14 AM in response to davidcmn
    Level 1 (0 points)
    Jul 26, 2012 11:14 AM in response to davidcmn

    Same here...

     

    sjolshag$ locate caldavd.plist

    /Library/Server/Previous/private/etc/caldavd/caldavd.plist

    /Library/Server/Previous/private/etc/caldavd/caldavd.plist.default

  • by davidcmn,

    davidcmn davidcmn Jul 26, 2012 11:15 AM in response to davidcmn
    Level 1 (5 points)
    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>

  • by sjolshag,

    sjolshag sjolshag Jul 26, 2012 11:21 AM in response to davidcmn
    Level 1 (0 points)
    Jul 26, 2012 11:21 AM in response to davidcmn

    Wishing there was a "ditto" button

     

    Same data (content) and location for me.

     

    // Thomas

  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 11:26 AM in response to davidcmn
    Level 1 (140 points)
    Jul 26, 2012 11:26 AM in response to davidcmn

    Does /Library/Server/Previous/Library/CalendarServer exist, and what are its contents? 

     

    Same questions for /Library/Server/Previous/Library/Server/Calendar and Contacts/ ...

  • by sjolshag,

    sjolshag sjolshag Jul 26, 2012 11:30 AM in response to ~morgen
    Level 1 (0 points)
    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 ..

  • by davidcmn,

    davidcmn davidcmn Jul 26, 2012 11:29 AM in response to sjolshag
    Level 1 (5 points)
    Jul 26, 2012 11:29 AM in response to sjolshag

    yes to both as well

  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 3:59 PM in response to davidcmn
    Level 1 (140 points)
    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"

  • by davidcmn,

    davidcmn davidcmn Jul 26, 2012 4:03 PM in response to ~morgen
    Level 1 (5 points)
    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$

  • by sjolshag,

    sjolshag sjolshag Jul 26, 2012 4:09 PM in response to ~morgen
    Level 1 (0 points)
    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

  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 4:32 PM in response to davidcmn
    Level 1 (140 points)
    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.

  • by ~morgen,

    ~morgen ~morgen Jul 26, 2012 4:46 PM in response to sjolshag
    Level 1 (140 points)
    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/

     


  • by davidcmn,

    davidcmn davidcmn Jul 26, 2012 10:20 PM in response to ~morgen
    Level 1 (5 points)
    Jul 26, 2012 10:20 PM in response to ~morgen

    Your directions worked.  I am no longer having the error. 

first Previous Page 3 of 4 last Next