-
All replies
-
Helpful answers
-
Jul 26, 2012 11:01 AM in response to davidcmnby ~morgen,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?
-
Jul 26, 2012 11:11 AM in response to ~morgenby davidcmn,I don't have an /etc/caldavd folder on my server
-
Jul 26, 2012 11:14 AM in response to davidcmnby ~morgen,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.
-
Jul 26, 2012 11:14 AM in response to davidcmnby sjolshag,Same here...
sjolshag$ locate caldavd.plist
/Library/Server/Previous/private/etc/caldavd/caldavd.plist
/Library/Server/Previous/private/etc/caldavd/caldavd.plist.default
-
Jul 26, 2012 11:15 AM in response to davidcmnby 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:21 AM in response to davidcmnby sjolshag,Wishing there was a "ditto" button
Same data (content) and location for me.
// Thomas
-
Jul 26, 2012 11:26 AM in response to davidcmnby ~morgen,Does /Library/Server/Previous/Library/CalendarServer exist, and what are its contents?
Same questions for /Library/Server/Previous/Library/Server/Calendar and Contacts/ ...
-
Jul 26, 2012 11:30 AM in response to ~morgenby sjolshag,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 davidcmnby ~morgen,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 ~morgenby davidcmn,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 ~morgenby sjolshag,$ 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 davidcmnby ~morgen,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 sjolshagby ~morgen,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 26, 2012 10:20 PM in response to ~morgenby davidcmn,Your directions worked. I am no longer having the error.