Articles March 26, 2010 at 5:57 pm

Migrating 10.5 iCal Server to 10.6 with group calendars

Migrating 10.5 iCal Server to 10.6 with group calendars

In Mac OS X 10.5 Server, user and group calendars were available in iCal server.  User calendars worked pretty well, but group calendars were a bit of a kludge.  The biggest mess was the web calendar.  I’m glad to say a lot of this has been vastly improved in 10.6 server. Read on to find out about my migration journey and the numerous bumps in the road. 

 

<code> &lt;div&gt;The configuration of the server is a single server configuration, running as an Open Directory Master, iCal Server, and Web. &amp;nbsp;I don&amp;rsquo;t think there would be many differences if the accounts were stored on another Open Directory server with the iCal server bound to it. The first thing I did was turn off iCal and web services, then restart and back up my Calendar files on the 10.5 server. &amp;nbsp;The location of the Calendar data in 10.5 is in:&lt;/div&gt;&lt;div&gt;&lt;p&gt;/Library/CalendarServer/Documents/calendars/__uids__/&lt;/p&gt;&lt;p&gt;To be safe, I backed up the entire CalendarServer folder to an external drive. &amp;nbsp;Then I inserted the 10.6 Leopard server installation disk and did a remote install as my Xserve is headless. Firing up Server Admin on my 10.6.2 MacBook Pro, my Xserve showed up as awaiting installation. &amp;nbsp;However, clicking on &amp;ldquo;Install&amp;rdquo; did not do anything. &amp;nbsp;Doing a little investigation, I discovered that &amp;ldquo;Server Assistant&amp;rdquo; can be run directly from /System/Library/CoreServices/Server Assistant. &amp;nbsp;Running it directly allowed me to complete my remote &amp;ldquo;Upgrade&amp;rdquo; install. &amp;nbsp;&lt;/p&gt;&lt;p&gt;After the installation completed I was able to Apple Remote Desktop into my server to complete the setup. &amp;nbsp;The 10.6 upgrade process worked well for my Open Directory Master, and Web and iCal user calendars. &amp;nbsp;In fact, it was seamless. &amp;nbsp;However, it did absolutely nothing to preserve my group calendars. &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Migrating the group calendars from 10.5 to 10.6&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Here&amp;rsquo;s how I got my group calendars back, step by step. &amp;nbsp;For clarity, we&amp;rsquo;ll say we have a user John who belongs to the group &amp;ldquo;Fiscal&amp;rdquo;. &amp;nbsp;In 10.5, there was a shared calendar for the &amp;ldquo;Fiscal&amp;rdquo; group.&amp;nbsp;&lt;/p&gt;&lt;p&gt;1) Open a web browser to: http://yourhost/groups/&lt;/p&gt;&lt;p&gt;2) Log in as the user John.&lt;/p&gt;&lt;p&gt;3) If you see &amp;ldquo;Fiscal&amp;rdquo; in the Wikis list, then you had a Group Wiki setup in 10.5. If you don&amp;rsquo;t see &amp;ldquo;Fiscal&amp;rdquo; skip ahead to step 5.&lt;/p&gt;&lt;p&gt;4) Logout as John, and login as a local administrator. The 10.6 upgrade doesn&amp;rsquo;t give admin access to John on the wiki by default.&amp;nbsp;&lt;/p&gt;&lt;p&gt;5) If you don&amp;rsquo;t see &amp;ldquo;Fiscal&amp;rdquo;, click &amp;ldquo;Create a new Wiki&amp;rdquo;. &amp;nbsp;Make sure to name it &amp;ldquo;Fiscal&amp;rdquo;, the same name as the group from 10.5. Choose a theme, and set permissions. For me, I made sure to set it as read/write only by the &amp;ldquo;Fiscal&amp;rdquo; group. &amp;nbsp;I unchecked &amp;ldquo;Send Email&amp;rdquo;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;6) Click on &amp;ldquo;Fiscal&amp;rdquo; in the wiki list, and go to Admin functions &amp;gt; Settings&lt;/p&gt;&lt;p&gt;7) Under the Services tab, make sure Calendar is enabled and hit save. &amp;nbsp;Under permissions you can also set administrative rights and access rights here. (They will also apply to the web calendar).&lt;/p&gt;&lt;p&gt;8) In the Finder of the SERVER, while logged in as an administrator, navigate to /Library/CalendarServer/Documents/calendars/__uids__/wi/ki/&lt;/p&gt;&lt;p&gt;9) You should see a folder called wiki-fiscal (or wiki-nameofyourgroup). &amp;nbsp;Into this folder, you will want to copy your calendar data from 10.5.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;10.5&amp;rsquo;s calendar directory structure&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;##/##/calendar -&amp;gt; the main calendar data (1st group calendar in the list)&lt;/p&gt;&lt;p&gt;##/##/someUUID -&amp;gt; other calendars&lt;/p&gt;&lt;p&gt;I had to do a little digging to determine which calendars were what, but if you &amp;ldquo;quicklook&amp;rdquo; the calendar data, it will tell you what event it is.&lt;/p&gt;&lt;p&gt;10) You should copy the calendar folder and numeric folders (eg: 7DB3354E-56BF-44D4-9949-B6F2B663E21B) directly into the wiki-yourgroup folder.&amp;nbsp;&lt;/p&gt;&lt;p&gt;11) In Server Admin, click on your server, then under the File Sharing tab, click Volumes, and browse. Go to /Library/CalendarServer/Documents. The permissions for Documents should be _calendar read/write, _calendar read/write, others no access. &amp;nbsp;Click on the gear and &amp;ldquo;Propagate permissions&amp;rdquo;.&amp;nbsp;&lt;/p&gt;&lt;p&gt;12) In Server Admin, under iCal &amp;gt; Settings, make sure Wiki Server is set to your Fully Qualified Domain Name! (mine was set to 127.0.0.1)! This was making the web calendar not work (permissions errors).&lt;/p&gt;&lt;p&gt;13) Reboot.&lt;/p&gt;&lt;p&gt;14) Open a web browser to: http://yourhost/groups/&lt;/p&gt;&lt;p&gt;15) Login as John and click on the &amp;ldquo;Fiscal&amp;rdquo; group wiki, then click Calendar.&amp;nbsp;&lt;/p&gt;&lt;p&gt;16) If everything went according to plan, your group calendars should now be there!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Adding 10.6 group calendars to iCal.app&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;In 10.5, the location of the group calendar was http://yourhost:8008/principals/groups/groupname/ (or 8443 if using https).&amp;nbsp;&lt;/p&gt;&lt;p&gt;In 10.6, the location of the group calendar is http://yourhost:8008/pricipals/wikis/groupname/&lt;/p&gt;&lt;p&gt;Simply change the url and it should work.&amp;nbsp;&lt;/p&gt;&lt;/div&gt;
</code>

Derick Okihara

Mac and iOS systems integrator for a private K-12 school in Honolulu, Hawaii.

More Posts - Website

Follow Me:
Twitter

Leave a reply

You must be logged in to post a comment.