Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

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

Simple guide to Migrate SL Server Wiki 10.6.8 to Lion Server 10.7.2

These instructions assumes that you already have the Wiki server functional on the new OSX Lion Server 10.7.2 and that you are logged in as a system administrator.


On the SL Server, browse to \Library\Collaboration and right click on the Collaboration folder and click "Get Info"


Scroll all the way to the bottom and expand "Sharing & Permissions"


If the Lock icon shows to be locked, click it and enter an Administrators password associated with the user account you are logged in under. Make sure the permissions for "Everyone" are set to "Read & Write". Then click on the small Gear icon below that and select "Apply to Enclosed Items". It will ask you if you are sure, tell it yes.


Now copy the Collaborations folder to the new Lion Server. Create the following directory to save the files too. \myoldwiki It will probably ask you to authenticate making a new folder at the root of the drive. So if prompted, tell it to allow and enter your administrator password is prompted. So now you have \myoldwiki\collaboration at the root of your new lion server.


Open Safari and browse to http://localhost on your Lion Server to verify that your existing server is working. If you get the "Welcome to OS X Lion Server" page with several icons for My page, Updates, Wikis, People, & Podcasts then your server is working. If not, see "Setting up OS X Lion Wiki Server". (An article that has not yet been written-Soon to follow)


If you click on Wikis, and if this is a fresh install, you will not see any wiki pages listed. On the top right of the web page, click on the + sign to create a new wiki. You can name it Test Wiki like I did and then create the page. Once created, go to it to make sure that its there.


Once your new Wiki server is confirmed to be functional, open terminal and enter the following command:


sudo wikiadmin migrate -r /myoldwiki/collaboration



Then press Enter/Return. Enter your users password if prompted. (Remember, passwords do not use echo in terminal so you will not see your password as you type it. Press Enter/Return again and you should see something similar to the following:



2011-12-18 10:50:18.315 wikiadmin[5033:307] Updating schema...
2011-12-18 10:50:18.324 wikiadmin[5033:307] Schema updates completed.
2011-12-18 10:50:18.326 wikiadmin[5033:307] Migrating...
2011-12-18 10:50:18.899 wikiadmin[5033:307] Migrating known users
2011-12-18 10:50:18.921 wikiadmin[5033:307] Generating placeholders for all known pages and wikis
2011-12-18 10:50:29.054 wikiadmin[5033:307] Found 7 pages belonging to 6 wikis and 2 users.
2011-12-18 10:50:29.057 wikiadmin[5033:307] Migrating project '(Wiki Page 1 Title Here)' (1 of 6)
2011-12-18 10:50:39.137 wikiadmin[5033:307] Migrating project ' (Wiki Page 2 Title Here) ' (2 of 6)
2011-12-18 10:50:49.282 wikiadmin[5033:307] Migrating project ' (Wiki Page 3 Title Here) ' (3 of 6)
2011-12-18 10:50:59.350 wikiadmin[5033:307] Migrating project ' (Wiki Page 4 Title Here) ' (4 of 6)
2011-12-18 10:51:09.475 wikiadmin[5033:307] Migrating project ' (Wiki Page 5 Title Here) ' (5 of 6)
2011-12-18 10:51:19.635 wikiadmin[5033:307] Migrating project ' (Wiki Page 6 Title Here) ' (6 of 6)
2011-12-18 10:51:29.666 wikiadmin[5033:307] Re-scanning 0 pages for pasted image/attachment URLs
2011-12-18 10:51:29.669 wikiadmin[5033:307] Copying content to real tables...
2011-12-18 10:51:29.942 wikiadmin[5033:307] Destroying migration entity and scratch tables...
2011-12-18 10:51:30.295 wikiadmin[5033:307] Done
2011-12-18 10:51:30.304 wikiadmin[5033:307] Importing user preferences
2011-12-18 10:51:40.311 wikiadmin[5033:307] Rebuilding search index...
2011-12-18 10:51:50.724 wikiadmin[5033:307] Done
2011-12-18 10:51:50.726 wikiadmin[5033:307] Migration complete



Depending on the size of your wiki on SL Server, and depending on how many pages and attachments you have installed on it, this process could take anywhere from several seconds to several minutes. Also your entry may vary from mine above depending on how many pages you have as well. I currently only have 6 pages as you can see. Overall, the end result is what you want to see: "Migration complete". This is a very good sign.


If you get a lot of errors like i did my first time trying to do this, I found that i forgot to turn on and verify that my new Lion Server web server and wiki page were fully functional prior to starting the migration. So if you get several errors that look similar to this.......



2011-12-18 01:23:52.160 wikiadmin[2930:307] *** Terminating app due to uncaught exception 'PGCConnectionError', reason: 'could not connect to server: No such file or directory


Is the server running locally and accepting

connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

'
*** First throw call stack:
(

0 CoreFoundation 0x00007fff915d6286 __exceptionPreprocess + 198

1 libobjc.A.dylib 0x00007fff958d9d5e objc_exception_throw + 43

2 PostgreSQLClient 0x0000000110038349 -[PGCConnection init] + 0

3 PostgreSQLClient 0x0000000110038425 -[PGCConnection initWithInfo:] + 157

4 PostgreSQLClient 0x0000000110037f8a +[PGCConnection connectWithInfo:] + 47

5 wikiadmin 0x000000010ff0db1e wikiadmin + 31518

6 wikiadmin 0x000000010ff2248f wikiadmin + 115855

7 wikiadmin 0x000000010ff0824c wikiadmin + 8780

8 wikiadmin 0x000000010ff07ba4 wikiadmin + 7076

)


You need to check your web server and wiki settings again.


Once everything is complete, you will need to go into your Server app on Lion Server and turn off the web server and also the wiki server. After about a minute or so, restart the web server then the wiki server and give it about 30 seconds or so to completely come back online. Now browse to http://localhost on the Lion Server and you should once again see the "Welcome to OS X Lion Server" page. Click on wikis and you should see the list of wikis you imported as well as the test wiki you created earlier. This will confirm that the files have been truly copied to the proper location for wikis on the new Lion Server.


At this point, your old wiki pages are ready to be used on your new OS X Lion Server.


There is a drawback with this process. Since you are moving ONLY the wiki database over to the new machine, all of the original users and groups is not transferred. As you can see i have 6 wikis and 2 users. This process doe not import the users and their configurations over to the new server. That process is completed by "Exporting" the "Server Admin Settings" & "Service Settings" from the SL Server "Server Admin" and importing them in the reversed fashion on the new Lion Server using Server Admin on the new server. This, however, is for another tutorial yet to be written. Mostly because i have yet to do it.


Good Luck.....


Isaac-in-Texas


NOTE: If you find an error in this posting, keep in mind we are all human and all make mistakes. Shoot me an email and i'll see if i can get it corrected.


Proud Owner of.....

2011 MabBook Pro * 2.3Ghz i7 * 16GB 1333 Ram * 750GB HDD Internal

2008 iMac 21.5" * 3.06Ghz Core 2 Duo * 16GB 1067 Ram * 1TB HDD Internal * Mercury Elite Pro 5TB RAID 5 External

iPhone 4 32GB

iPhone 4 8GB (Wife)

iPhone 3G 16GB (Spare)

iPad 32GB 1st Gen

iPod Touch 2nd Gen (My Son)

Apple TV 2nd Gen

Airport Extreme


I'm sure i'm missing something.....

Mac OS X (10.7.2)

Posted on Dec 18, 2011 10:21 AM

Reply

There are no replies.

Simple guide to Migrate SL Server Wiki 10.6.8 to Lion Server 10.7.2

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