Migrate wiki from MLS to MAVS

Dear Folks,
I want to provide a solution on how to migrate the Wiki from a Mountain Lion Server to a Mavericks Server. Both Servers are running but in different locations and they can't communicate directly with each other. Upgrading the MLS was no option - after what I had read in hundreds of threads. The MLS is a 10.8.5 (with the latest version of server.app up until the 15th of October 2013) and Mavericks a 10.9.1 (with the latest version of server.app up until New Years Eve).
I hadn't done it without the help of Andreas from Metalab in Vienna (lovely Hackspace) - so the grace goes to him!!
First things first - he isolated 2 issues on MLS - revolving postgresql Version AND Socket! Thank you Apple-developers you did a great job here - since this product is called „The Server for everyone“ I believe either the title is incorrect or some guys haven’t understood what the a server for everyone implies - since everyone isn’t a geek, nerd, developer etc. - think about it!
Trying to connect to psql on MLS:
bash-3.2# psql
psql: 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"?
What?!
bash-3.2# serveradmin status postgres
postgres:state = "RUNNING"
What?!
So he started digging on MLS:
bash-3.2# netstat -na|grep LISTEN
nothing tangible here - nothing ist listening to 5432
Dig deeper on MLS:
bash-3.2# lsof | grep postgre
          #output omitted for clarity
postgres_ 2546      _postgres   10u     unix 0xa319efaa0af41357       0t0         /Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
postgres_ 2547      _postgres   10u     unix 0xa319efaa0af3fbe7       0t0         /Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
          #output omitted for clarity
postgres_ 2548      _postgres   10u     unix 0xa319efaa0af3fa57       0t0         /Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
          #output omitted for clarity
postgres_ 2549      _postgres   10u     unix 0xa319efaa0af3f8c7       0t0         /Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
          #output omitted for clarity
postgres_ 3102      _postgres   10u     unix 0xa319efaa0b220357       0t0         /Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
          #output omitted for clarity
Hold the horses still - that got him thinking! How does that fit to the output of the psql-command just seconds earlier (and I literally mean seconds!) Can you see it?
The truth is, the Socket is at:
/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432
but is expected by psql to be in /var/psql_socket/.s.PGSQL.5432!
Expected What?!
Verified it again on MLS:
bash-3.2# psql
psql: 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"?
bash-3.2# psql --help
Yep - when postgresql was compiled obviously somebody was sitting on his fingers - during implementation nobody had told psql the path for the socket at the "new" location?! Ergo - psql is looking for the socket in the default location - where it is not.
Then, with the help, he managed it to get in.
Trying to get in on MLS:
bash-3.2# psql -p "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"
psql: invalid port number: "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"
Trying again on MLS:
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"
psql: could not connect to server: Not a directory
          Is the server running locally and accepting
          connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432/.s.PGSQL.5432"?
And again - almost there on MLS:
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432
psql: FATAL:  role "root" does not exist
Typo:
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -u colab
psql: invalid option -- u
Try "psql --help" for more information.
And - tata - he was in on MLS:
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 template1 collab
psql (9.1.9, server 9.2.4)
WARNING: psql version 9.1, server version 9.2.
         Some psql features might not work.
Type "help" for help.
template1=#
Lets find the databases and roles on MLS:
template1=# \l
                                   List of databases
       Name        |   Owner    | Encoding | Collate | Ctype |    Access privileges   
-------------------+------------+----------+---------+-------+------------------ -------
caldav            | caldav     | UTF8     | C       | C     |
collab            | collab     | UTF8     | C       | C     |
device_management | _devicemgr | UTF8     | C       | C     |
postgres          | _postgres  | UTF8     | C       | C     |
template0         | _postgres  | UTF8     | C       | C     | =c/_postgres           +
                   |            |          |         |       | _postgres=CTc/_postgres
template1         | _postgres  | UTF8     | C       | C     | _postgres=CTc/_postgres+
                   |            |          |         |       | =c/_postgres
webauth           | webauth    | UTF8     | C       | C     |
(7 rows)
And there are the roles on MLS:
template1=# \du
                              List of roles
Role name  |                   Attributes                   | Member of
------------+------------------------------------------------+-----------
_devicemgr | Create DB                                      | {}
_postgres  | Superuser, Create role, Create DB, Replication | {}
caldav     | Create DB                                      | {}
collab     | Superuser, Create role, Create DB              | {}
webauth    | Superuser, Create role, Create DB              | {}
Aaaaah - so there is a role collab and a database collab! Lets connect to the "right" database and dive into it on MLS.
template1=# \q
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
psql (9.1.9, server 9.2.4)
WARNING: psql version 9.1, server version 9.2.
         Some psql features might not work.
Type "help" for help.
collab=# \d
                   List of relations
Schema |            Name             | Type  | Owner 
--------+-----------------------------+-------+--------
public | blog_entity                 | table | collab
public | document_entity             | table | collab
public | entity                      | table | collab
public | entity_acls                 | table | collab
public | entity_acls_defaults        | table | collab
public | entity_attrs                | table | collab
public | entity_changesets           | table | collab
public | entity_comment              | table | collab
public | entity_lock                 | table | collab
public | entity_preview              | table | collab
public | entity_private_attrs        | table | collab
public | entity_tag                  | table | collab
public | entity_type                 | table | collab
public | file_entity                 | table | collab
public | filedata_entity             | table | collab
public | filename_reservation        | table | collab
public | global_settings             | table | collab
public | groups                      | table | collab
public | migration_entity            | table | collab
public | migration_status            | table | collab
public | migrationplaceholder_entity | table | collab
public | notification                | table | collab
public | page_entity                 | table | collab
public | podcast_entity              | table | collab
public | podcast_episode_entity      | table | collab
public | preview_queue               | table | collab
public | project_entity              | table | collab
public | relationship                | table | collab
public | savedquery_entity           | table | collab
public | search_index                | table | collab
public | search_stat                 | table | collab
public | session                     | table | collab
public | subscription                | table | collab
public | user_activity               | table | collab
public | user_entity                 | table | collab
public | user_entity_favorites       | table | collab
public | user_entity_read_status     | table | collab
public | user_entity_unread_status   | table | collab
public | user_entity_updates         | table | collab
public | user_entity_watched         | table | collab
public | user_readall_time           | table | collab
(41 rows)
That looks fantastic! Lets start dumping with some help through pg_dump --help and then issuing the following on MLS:
bash-3.2# pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase -U collab collab
pg_dump: server version: 9.2.4; pg_dump version: 9.1.9
pg_dump: aborting because of server version mismatch
What?! How could that be?! The commands refer to an older version?!
Start digging again on MLS!
bash-3.2# which psql
/usr/bin/psql
bash-3.2# which pg_dump
/usr/bin/pg_dump
That's where I stepped in and told Andreas "Hey - ahm - I know of a path completely different…. /Applications/Server.app/.….". Thanks mate!
Dig again on MLS!
bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump --version
pg_dump (PostgreSQL) 9.2.4
Lovely - that one looks good - lets use it. All of that got us finally to the right command on MLS.
bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase -U collab collab
There it is - the whole Database on the stick - finally - it took Andreas only 5 Minutes - approximately? I am just baffled.
Then I copied the Folders from the /Library/Server/Wiki/FileData of the MLS to the exact same location on the MAVS and sat permission - navigating to /Library/Server/Wiki first:
bash-3.2# chown -R _teamsserver:_teamsserver FileData/
bash-3.2# chmod -R +a "_www allow read" FileData/
I compared the the collab DB on the MLS with the MAVS collab DB to see the differences - BTW - the Socket has moved again on the MLS! Move up in this documentary and you’ll see on how to find it on MAVS.
bash-3.2# lsof | grep 5432 
          #output omitted for clarity
postgres_   382    _teamsserver    3u     unix 0x399cdd6eeea1efe1       0t0         /Library/Server/Wiki/PostgresSocket/.s.PGSQL.5432
          #output omitted for clarity
bash-3.2# psql -h "/Library/Server/Wiki/PostgresSocket/" -p 5432 collab collab
psql (9.2.4)
Type "help" for help.
collab=# \d
                   List of relations
Schema |            Name             | Type  | Owner 
--------+-----------------------------+-------+--------
public | adc_device_entity           | table | collab
public | adc_team_entity             | table | collab
public | blog_entity                 | table | collab
public | bot_entity                  | table | collab
public | botgroup_entity             | table | collab
public | botrun_entity               | table | collab
public | build_agent_registry        | table | collab
public | document_entity             | table | collab
public | email_notification          | table | collab
public | entity                      | table | collab
public | entity_acls                 | table | collab
public | entity_acls_defaults        | table | collab
public | entity_attrs                | table | collab
public | entity_auditlog             | table | collab
public | entity_changesets           | table | collab
public | entity_comment              | table | collab
public | entity_lock                 | table | collab
public | entity_preview              | table | collab
public | entity_private_attrs        | table | collab
public | entity_tag                  | table | collab
public | entity_type                 | table | collab
public | file_entity                 | table | collab
public | filedata_entity             | table | collab
public | filename_reservation        | table | collab
public | global_settings             | table | collab
public | groups                      | table | collab
public | migration_entity            | table | collab
public | migration_status            | table | collab
public | migrationplaceholder_entity | table | collab
public | page_entity                 | table | collab
public | podcast_entity              | table | collab
public | podcast_episode_entity      | table | collab
public | preview_queue               | table | collab
public | relationship                | table | collab
public | savedquery_entity           | table | collab
public | scm_commit_entity           | table | collab
public | scm_server                  | table | collab
public | scmrepogroup_entity         | table | collab
public | search_index                | table | collab
public | search_stat                 | table | collab
public | session                     | table | collab
public | subscription                | table | collab
public | timeseries                  | table | collab
public | timeseries_toc              | table | collab
public | user_activity               | table | collab
public | user_entity                 | table | collab
public | user_entity_favorites       | table | collab
public | user_entity_read_status     | table | collab
public | user_entity_unread_status   | table | collab
public | user_entity_updates         | table | collab
public | user_entity_watched         | table | collab
public | user_readall_time           | table | collab
public | visible_entity_tag          | view  | collab
public | wiki_entity                 | table | collab
public | work_queue                  | table | collab
public | work_schedule               | table | collab
public | work_schedule_recurrence    | table | collab
public | work_schedule_status        | table | collab
(58 rows)
Hmmm - 41 tables in the old, and 58 in the new. What am I going to do? To be able to roll back I dumped the MAVS DB before I would do anything else.
I had to decide between trying to take the old MLS DB and just pg_restore it into the MAVS DB, or - trying to upgrade the MLS instance to MAVS. I was afraid doing the upgrade since the MLS was a mess. At the end I would decide to go for the latter - since I had dumps. It took a while but - hey - it worked. Everything in place! Wiki running - everything else, too! The database has now 58 tables - ok - lets dump it. Notice again - no need to specify the proper version of pg_dump, but the Socket has changed from MLS to MAVS - again - you could see this when I connected with psql as well!
Please use (-F c) compression when dumping - otherwise you’ll receive a nasty error when importing it at the MAVS.
bash-3.2# pg_dump -h "/Library/Server/Wiki/PostgresSocket/" -p 5432 -F c -f /Volumes/USBSTICK/MLSafterupgrade2MAVS_collab_db_compressed.pgdump -U collab collab
I then copied the dump to the server - the Desktop of the administrativ account - I did it through screensharing which is accessible after establishing a VPN to the location the server resides in.
Unfortunately the command for pg_restore has a different syntax then the pg_dump. Use pg_dump --help to see the details. I’ll explain it quickly:
-c is to clean entries in the target tables (you must not use capital c)
-d specifies the database into which you would like to restore
-h specifies (again) where the DB is - the socket
-p the port to use
-U is the role that likes to work on the DB
you must not use -f since it’s not needed
bash-3.2# pg_restore -c -d collab -h "/Library/Server/Wiki/PostgresSocket/" -p 5432 /Volumes/OSXDATA/Users/macminiadmin/Desktop/MLScollabdb_compressed.pgdump -U collab
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2466; 2605 16639 CAST CAST (text[] AS public.hstore)
pg_restore: [archiver (db)] could not execute query: ERROR:  cannot drop cast from text[] to public.hstore because extension hstore requires it
HINT:  You can drop extension hstore instead.
    Command was: DROP CAST (text[] AS public.hstore);
pg_restore: [archiver (db)] Error from TOC entry 1816; 2616 16636 OPERATOR CLASS hash_hstore_ops collab
pg_restore: [archiver (db)] could not execute query: ERROR:  cannot drop operator class hash_hstore_ops for access method hash because extension hstore requires it
HINT:  You can drop extension hstore instead.
    Command was: DROP OPERATOR CLASS public.hash_hstore_ops USING hash;
          #output omitted for clarity
I saw quite a lot errors (some revolving functions etc.) - however, it worked. Wikis are present again on the MAVS. Not without the initial help of Andreas - thank you once again!
I would like to recommend to everyone joining hackerspaces in their location. I do not know them in other areas - I can only speak for the metalab in Vienna. Fantastic place with fantastic, very knowledgable people. I would also recommend reading a book like PostgreSQL 9 Admin Cookbook - this helped me quit a lot as well. It’s available through various stores - virtual or real - choose what you prefer.

Frustrated, not angry...
Well folks. I think this is goodbye to OS X Server - the server that I thought was much easier to use.  I've followed instructions on this forum and several others over the past 7 months.  It's cost me so much time and headache.
Migrating wikis from Mountain Lion Server to Mavericks server has yet to work
Upgrading our Mountain Lion Server to Mavericks leaves us without wiki, calendar, and other services
Apple support docs don't do the trick
Phone calls with Apple support techs haven't provided any solutions.
Our current Mountain Lion Server suddenly lost all filesharing authentication capability and Apple enterprise solutions haven't been able to figure this one out.
I'm stuck with a server with broken mountain lion server I have never been able to upgrade and/or migrate and ultimately would be left to copy/paste wikis to a fresh Mavericks server, export/import calendars from each client station, and contacts - I don't even know how that's going to work.
I believe in keeping IT folks employed, but...
The support from Apple seems so marginal (just for the server) and the plethora of problems with upgrading to Mavericks server and/or the manual fight to only potentially get it done seems very un-Apple like and just downright counter to what Apple represents.
So I'll think different...
Our server will be relegated to a client machine with simple file sharing.  Perhaps We'll buy Daylite to assume some of the responsibilites.  Truth is, even when things were working, it was always flaky in some way.
I really wanted to employ OS X Server in an efficient way, but it's been more trouble than I can accomodate.
Fortunately I am not an average client user nor a novice, so working in terminal is comfortable.
Perhaps in a few years or so, I'll reconsider, but my experience with OS X server on Mountain Lion and Mavericks has affected my trust.
Thanks for all of the help to those who provided instructions, workarounds, directions toward solutions, etc.
For those of you who had a successful migration - consider yourself lucky.
...by the way...after finishing the incredible instructions on this page (and i sincerely mean that despite them not working for me) the result was a wiki page that looked like this
Caught exception "[<CSEntityPlaceholder 0x7fb2d15d5910> valueForUndefinedKey:]: this class is not key value coding-compliant for the key externalID." [NSUnknownKeyException] executing route /app-context/wiki/:
0   CoreFoundation                      0x00007fff8a0fe25c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff8da20e75 objc_exception_throw + 43
2   CSService                           0x0000000104bc7957 -[CSLocalServiceProxy forwardInvocation:] + 1229
3   CoreFoundation                      0x00007fff8a05c1c4 ___forwarding___ + 452
4   CoreFoundation                      0x00007fff8a05bf78 _CF_forwarding_prep_0 + 120
5   CSService                           0x0000000104bf9573 __27-[CSAppContextService init]_block_invoke240 + 180
6   CSService                           0x0000000104bdf81a __53-[CSRoutingHTTPConnection httpResponseForMethod:URI:]_block_invoke + 95
7   CSService                           0x0000000104be2d6c -[CSHTTPBackgroundResponse bounce:] + 286
8   Foundation                          0x00007fff9073976b __NSThread__main__ + 1318
9   libsystem_pthread.dylib             0x00007fff8bc58899 _pthread_body + 138
10  libsystem_pthread.dylib             0x00007fff8bc5872a _pthread_struct_init + 0
11  libsystem_pthread.dylib             0x00007fff8bc5cfc9 thread_start + 13

Similar Messages

  • Migrating Wiki from MoinMoin

    Our current wiki runs with MoinMoin and I want to migrate the information to the Mac OS X 10.5 Server wiki service. Does anyone know of a convenient way to import the MoinMoin files into Mac OS X (or export them from MoinMoin to Mac OS X 10.5 friendly format)? I don't need a full blown automagic solution, but a command line script or something to facilitate this job would be very helpful. Thank you.

    Here are the steps to manually migrate a wiki from 10.5 to 10.6:
    sudo serveradmin stop teams
    sudo mv $GROUP_DIRECTORY /Library/Collaboration/Groups/
    sudo chown -R 94:94 /Library/Collaboration/Groups/$GROUP_DIRECTORY
    sudo rm /Library/Collaboration/dataVersion.plist
    sudo rm /Library/Collaboration/globalIndex.db
    sudo rm /Library/Application Support/Apple/WikiServer/directoryIndex.db
    sudo serveradmin start teams
    You will then need to navigate to the wiki as an administrator and set the access permissions in the wiki's settings screen. There you can restrict access by directory users and/or groups (if you need that level of granularity).

  • Migrating wiki from 10.5 to 10.6 server

    I am having trouble migrating my wiki from my leopard server to snow leopard server. This is the process I am doing.
    1. create wiki group on snow leopard server with the same name as group on leopard server and turn off web service.
    2. copied folder from /Library/Collaboration/group_name from 10.5 server to same location on 10.6 server.
    3. edited ownership permissions to teamsserver:teamsserver on copied folder and sub-folders
    4. rm index.db
    5. edited GenereatedUID in the metadata.plist to match the GenereatedUID in Workgroup Manager for the group I created.
    I am able to log in to the wiki and it takes me to the welcome that we have from the 10.5 server. The sidebar headings are the same. The problem is that I cannot see any of the entries or wiki pages that were created before. Is there something that I'm missing?

    Here are the steps to manually migrate a wiki from 10.5 to 10.6:
    sudo serveradmin stop teams
    sudo mv $GROUP_DIRECTORY /Library/Collaboration/Groups/
    sudo chown -R 94:94 /Library/Collaboration/Groups/$GROUP_DIRECTORY
    sudo rm /Library/Collaboration/dataVersion.plist
    sudo rm /Library/Collaboration/globalIndex.db
    sudo rm /Library/Application Support/Apple/WikiServer/directoryIndex.db
    sudo serveradmin start teams
    You will then need to navigate to the wiki as an administrator and set the access permissions in the wiki's settings screen. There you can restrict access by directory users and/or groups (if you need that level of granularity).

  • Migrating wiki from Leopard Server (10.5) to Lion Server

    Is there any way to migrate Wiki Server data from Leopard Server (i.e. 10.5 not 10.6) to Lion Server without upgrading to Snow Leopard first. I'm happy to set up everything else afresh but I've migrated wiki data before and it was a nightmare.
    The situation we'll soon be in is needing to migrate wiki data on a PowerPC mac running Leopard Server to a new Power Mac pre-installed with Lion Server.

    From: http://images.apple.com/macosx/server/docs/Upgrading_and_Migrating_v10.7.pdf
    Need to set up Lion Server first, then:
    Copy the wiki data located in /Library/Collaboration/ by default or in the location specified in Server Admin on the v10.5.8 or later server to a local volume Lion Server can access.
    Use the following steps to manually migrate your Mac OS X v10.5.8 or later server’s Wiki data to Lion Server.
    If you are migrating a v10.5.8 wiki server’s data, make sure Lion Server is bound to the same Open Directory master as the v10.5.8 server, so the ACLs for wikis can convert. If not, wikis are only readable or writeable by admins, and ACLs must be reset.
    To migrate wiki data:
    1 Start Wiki service in the Server app.
    2 Enter the following command.
    sudo wikiadmin migrate -r /path/to/collaboration/folder

  • Repost: Migrating Wikis from 10.5.8 to 10.6.4

    This topic was originally posted here: http://discussions.apple.com/message.jspa?messageID=10479747 It is marked as "solved" so no new posts permitted- but I'm having further issues not covered in that post so I'm reposting.
    I too am migrating wiki data from 10.5 to 10.6. I followed the instructions posted by skip:
    sudo serveradmin stop teams
    sudo mv $GROUP_DIRECTORY /Library/Collaboration/Groups/
    sudo chown -R 94:94 /Library/Collaboration/Groups/$GROUP_DIRECTORY
    sudo rm /Library/Collaboration/dataVersion.plist
    sudo rm /Library/Collaboration/globalIndex.db
    sudo rm /Library/Application Support/Apple/WikiServer/directoryIndex.db
    sudo serveradmin start teams
    But now when trying to navigate to the "groups" area from the home page, or directly to any group directory via a web browser, I get a page with the spinning throbber graphic surrounded by a square with the title "Server Starting..." This icon refreshes every few seconds, but never goes away.
    I assumed perhaps the OS was taking some time to rebuild the DB, so I waited a day and tried to navigate to the groups listing again. Same results.
    I've now restored everything back to defaults. I can create new wikis, but can't seem to figure out a way to import data from our wiki pages from 10.5. There is a lot of data here that I'd hate to lose.
    I have an Enterprise Support Agreement, but the techs there say that this issue is not covered.
    Thoughts anyone?

    It is really a mess. When this happens, we start over and try again. Either there are issues with file copies that don't work right in the system (pick your method, rsync, finder, yadda yadda) or the wiki system is a wee bit on the hobbyware side of things.
    I have moved the wiki several times and this is what I end up doing:
    • on both servers, stop the wiki server via sudo serveradmin stop teams
    • copy the entire contents of the collaboration folder to the new server
    • on the new server trash file:///Library/Collaboration/globalIndex.db
    • on the new server trash file:///Library/Collaboration/dataVersion.plist
    • on the new server trash file:///Library/Application%20Support/Apple/WikiServer/sessions.db
    • on the new server trash file:///Library/Application%20Support/Apple/WikiServer/directoryIndex.db
    • on the new server start the wiki server sudo serveradmin start teams

  • HT5139 OSX server failed, need to migrate wiki from TM backup to a different existing (configured) server

    I've looked and found many responses involving restoring from time machine to restore the complete server.  In this case, I have a TM backup of the failed wiki machine and a second running (and configured) server.  What I need to do is restore the wiki from this first TM backup to the "new" server....  but only the wiki data.
    Currently, the "new" machine is NOT running wiki services at all.
    Both machines were / are running Mountain Lion, so there should be no issues there.
    I'm having some trouble locating a procedure for this.  Any help is appreciated, and apologies in advance if I missed these instructions on some other post!
    Thanks in advance for all the help!

    Does http://support.apple.com/kb/HT5082 help at all? You would have to restore your TM backup to a separate disk, use that to startup, dump the wiki and postgres data to disk, reboot using your new server disk and follow the instructions to copy all wiki data to the new server.
    Cheers
    Gerry

  • Migrating wiki from one 10.6 server to another

    Has anyone had any success and know the proper procedure for moving a wiki between two 10.6 servers? We're relocating it to different hardware. When I move the data store it does the "starting server" thing forever when you try to visit the web page. It doesn't look like python or wikid is doing much of anything after the first few seconds. When I delete the various .db sql lite databases as suggested for fixing other issues, they do get recreated but it still never fully starts.
    The permissions are also correct on all the files so I know it is not that. Also, I did the migration using rsync3 and made sure it preserved proper permissions, extended attributes, etc.
    I'm probably missing something but was wondering if anybody has done it. Thanks.
    Message was edited by: Christopher Collins3

    If you haven't figured the migration out already, you may want to check out this thread:
    http://discussions.info.apple.com/thread.jspa?threadID=2205892
    It looks like the path to take from everything I'm seeing, but if you've found a friendlier solution I'd be happy to give it a shot!

  • Problems Migrating Wiki Calendars

    We upgraded a 10.6.8 server with several wikis to OS X Server 10.8.2. The wikis appear to have imported ok, except for the calendar information. When accessing the calendar page, an error is returned saying File Not Found.
    There are no obvious errors in the migration log. If I make a new wiki, the calendar works ok on that wiki so I'm pretty sure CalDAV Server is working ok. 
    I found the migrated data in a migration folder on the 10.8 server. I even found the wiki's .ics files tucked away in a subfolder. I could probably find a way to re-import those files if I could blow away whatever problem the migrated wikis have.
    I've deleted the wikis, re-imported them (http://support.apple.com/kb/HT5082) from the old Collaboration folder and they come back with the same problem. Documentation on this product is pretty light. Does anyone have any beta on the relationship between the wikis and their calendars? If the migration won't work, I'd be glad to just reset the calendars and work on a way to import the .ics files.

    Some further input. I have created a clone HDD to play with.
    On Snow Leopard, I have done unbind from Active directory, set up Open Directory as a local master, change permissions on all wikis to have everyone read and write permissions without login.
    then Reboot, checked that wiki is accessible without any password, then upgrade to Lion on that partition.
    Everything went fine, but I still get same result.
    There are no wikis in wikiserver.
    When I check the info in /Library/Collaboration/Groups/ all info is there, also it is in /Library/Server/Wiki/FileData
    But I still can't see anything when I launch wiki

  • Migrate wiki data

    How do you migrate wiki data from Yosemite Server 4.1 to a different Yosemite server?

    Still need some handholding ...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-administrativeprocedures
    2015-04-22 15:28:49.208 wikiadmin[6731:55385] ==> Importing Project...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-deploystudio
    2015-04-22 15:29:41.101 wikiadmin[6773:55659] ==> Importing Project...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-knowledgebase
    2015-04-22 15:29:59.216 wikiadmin[6791:55840] ==> Importing Project...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-staffprocedures
    2015-04-22 15:31:38.085 wikiadmin[6847:56563] ==> Importing Project...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-windowsimaging
    2015-04-22 15:32:09.678 wikiadmin[6873:56725] ==> Importing Project...
    macserv:~ administrator$ sudo wikiadmin import -path /tmp/wikiadmin-export-workprocedures
    2015-04-22 15:32:31.712 wikiadmin[6901:57024] ==> Importing Project...
    macserv:~ administrator$ sudo serveradmin stop wiki
    wiki:state = "STOPPING"
    macserv:~ administrator$ sudo serveradmin start wiki
    wiki:state = "STARTING"
    But nothing is there in the new wiki.

  • Failure migrating wiki to Mountain Lion Server with wikiadmin, value is out of range for type integer

    We are trying to migrate our 10.6.8 wikis from the OS X Server to our new Mountain Lion OS X Server.  I am using "wikiadmin migration -r <collaboration directory> -g <wiki name>" to migrate each wiki individually. We have about 30 wikis in the old server, three of which fail to migrate, all with the same problem (below). The process runs successfully for a while, but ultimately fails and rolls back the transaction. It appears there is some problem trying to generate a unique filename, perhaps for some of the uploaded files?
    Has anyone else seen this error? large amount of pages, content, and attachments in these wikis and just recreating them in the new server would be a monumental task. Some of these attachments include videos and other large files, not sure if that might contribute to the problem.
    === wikiadmin migrate output log ===
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:233 7e7e1180 +0ms] Executing query [INSERT INTO entity (uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden) (SELECT uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden FROM master_entity_scratch_20120829T132314 WHERE entity_type_fk='com.apple.entity.File')]
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:181 7e7e1180 +151ms] Query result is [PGRES_FATAL_ERROR] rows returned=0/updated=
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Error>: [PGCConnection:148 7e7e1180 +0ms] Error in TXN: Error executing query [INSERT INTO entity (uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden) (SELECT uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden FROM master_entity_scratch_20120829T132314 WHERE entity_type_fk='com.apple.entity.File')]: ERROR:  value "109120715161" is out of range for type integer
              CONTEXT:  PL/pgSQL function "uniquify_filename" line 7 at RETURN
              PL/pgSQL function "trg_update_entity_filename" line 23 at assignment
                        0   CoreFoundation                      0x00007fff93b67716 __exceptionPreprocess + 198
                        1   libobjc.A.dylib                     0x00007fff95aaf470 objc_exception_throw + 43
                        2   PostgreSQLClient                    0x00000001026ff9ae -[PGCConnection checkResultOK:forSQL:] + 360
                        3   PostgreSQLClient                    0x00000001026ffec3 -[PGCConnection executeQuery:] + 223
                        4   wikiadmin                           0x000000010269d586 wikiadmin + 66950
                        5   PostgreSQLClient                    0x00000001026ff5f7 -[PGCConnection transactionInBlock:onError:] + 147
                        6   wikiadmin                           0x000000010269cd86 wikiadmin + 64902
                        7   wikiadmin                           0x00000001026a025d wikiadmin + 78429
                        8   wikiadmin                           0x00000001026924c8 wikiadmin + 21704
                        9   libdyld.dylib                       0x00007fff912857e1 start + 0
                        10  ???                                 0x0000000000000006 0x0 + 6
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:320 7e7e1180 +0ms] Executing update [ROLLBACK]

    Okay, so a little more detail for you…
    If I can manage to restart the server without the wiki service on, everything else seems to work fine (including the web service running the default home page) and "serveradmin fullstatus wiki" will report that the service is stopped.
    But as soon as I try to start the wiki service, it never finishes, and it prevents the web service from working properly anymore. i.e. I get a 502 Proxy Error instead of the OS X Server default home page. It's after the attempted wiki start that "serveradmin fullstatus wiki" starts to give the
    serveradmin[2373:707] outstanding requests are: (
            Command = getState;
            Module = "servermgr_wiki";
            Timestamp = "2012-10-25 16:22:15 +0000";
    error. And then I can't stop the wiki service - even "serveradmin stop wiki" gives the same "outstanding requests" message.
    This time I tried to stop the wiki from Server app and I got this error:
    An error occurred on the server while processing a command.
    The error occurred while processing a command of type 'getState' in plug-in 'servermgr_wiki'.
    If it's helpful at all, I've notice the following in my log files that seem related, but I have no idea how to fix - it almost seems lie the migration of the wiki failed from 10.7 to 10.8:
    collabd[767]: [CSConnectionPool:141 6a92000 +14027ms] Schema is STILL out of date (14 < 69) after launching wikiadmin, update failed! collabd will refuse to run until this is fixed.
    I'm really pulling my hair out over here, and have no idea what to try next?
    Anyone have any suggestions?
    Thank you!

  • HT5082 Restoring wiki from TM backup

    I don't have a bootable version of my source server, only a time machine backup.  Will the first method —Migrating wiki data from Mac OS X Server v10.6 to Lion Server— work to move from my source TM to OS X Server v10.6?

    Does http://support.apple.com/kb/HT5082 help at all? You would have to restore your TM backup to a separate disk, use that to startup, dump the wiki and postgres data to disk, reboot using your new server disk and follow the instructions to copy all wiki data to the new server.
    Cheers
    Gerry

  • How to migrate report from one datasource to another?

    Hi,
    can anyone help me, I want to migrate report from one datasource to another.
    Also what are the prerequisites for this?
    any help help will be deeply appreciated.
    Thanks,
    Saurabh.

    Hello,
    To copy queries you can use TA RSZC.
    http://wiki.sdn.sap.com/wiki/display/BI/CopyingQuerysfromOneTargettoAnother
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/204111a9-0fca-2d10-219c-be20e686cdb5?QuickLink=index&overridelayout=true
    http://help.sap.com/saphelp_sm32/helpdata/en/9f/f57539d6d1c93be10000000a114084/content.htm
    https://cw.sdn.sap.com/cw/docs/DOC-34603
    Thanks.
    With regards,
    Anand Kumar

  • Migrating Wiki loss of text

    When migrating our wiki from 10.6.8 Server to Mavericks Server there is a random loss of text. It seems to be around images that are on the same line visually as the text which has a link.
    My inference from looking at the problem is that the img tag is not terminated per W3C (it has no '/>' at the end of the tag). The loss occurs starting with the image and continuing to the text that is in the <a> tag (which IS properly terminated).
    So to be specific as an example:
    <img src=.....>
    Some text with a <a href=...>link</a> inside the line.
    is migrated incompletely as
    link inside the line.
    Note:
    - No img is migrated
    - The beginning of the line of text is los up to the end of the <a,,,> tag.
    - The link around the text is lost
    Since this appears to be hard to detect except visually with 100's of wiki pages how do I trust such a poor conversion? How do I repair this?

    Oh vad det är svårt att vara tillräckligt tydlig. Men jag lär mig. Det är min oförmåga att begripa!
    This let me assume that all was OK in iMovie.      YES
    So You do a 16x9 project
    • What version of iMovie do You use ?        iMovie '11  9.0.4 (1634)
    • Did You set up iDVD as a 16x9 project    YES
    • the 16x9 size has to be set at two places in iDVD    Have done that
    first when starting a brand new project
    then under Project/Project info [Shift+cmd+I] - here too set 16x9
    So if You can describe from what Camera was used (Video Codec) to the final DVD - step by step - we can see where the work flow differs.
    Camera: LUMIX TZ7
    Download material to iPhoto and/or iMovie - rework the pics in iPhoto but also in Adobe photoshop. It is usually the pics I have reworked in Adobe photoshop that are cut.
    Then I start a new project in iMovie and add the pics and videos. When I have pics which I do not want to be cropped or with Ken Burns effect I use the setting "fit the frame" (mine is in German and says "anpassen").
    I do not share to iDVD, but finalize the project in iMovie, which - after many hours - provides all sizes.
    Then I open a new project in iDVD in 16:9 and insert the rendered film which is then available in medium, large, 720p and 1080p. I chose the 1080p.
    Then I make an Image Copy and burn the DVD.
    Så gör jag, kan du skriver direkt till mig?
    Hälsningar
    Therese L.

  • Issues migrating wikis - SL - Lion

    Hi,
    Currently loaning a Mac Mini from Apple to test Lion Wiki Server. I used ditto to copy wikis from our 10.6.8 server to the Lion server, then ran the sudo wikiadmin migrate -r /path/to/collaboration/folder command in terminal.
    Currently all our wikis have permissions based on AD groups and accounts. I've also bound the Mac Mini to AD befrore attempting to migrate the wikis.
    When ever I browse to the wiki server I get a empty list of wikis.
    Any ideas would be appriciated.
    Haydn

    If you login as a local user or OD user do you see the wikis there?
    I have found that after using the migration tool some links break, although in lion they use a different LDAP field then they used in SL. This means that the field must be present in AD and set correct.
    The LDAP field they use is displayName, this would be the shortname of the security group. Once that is there, you should be able to add the security groups, and the users should have access.
    If you cant even see any wikis with the administrator of the server, i would start over and try again. Something didn't go correctly during the migration process.

  • How can I migrate everything from one account to another on same computer?

    How can I migrate everything from one account to another on same computer?

    Transferring files from one User Account to another

Maybe you are looking for