dreiland

Q: howto reinstall/reinitialize os x server

Had lion server install on my mac mini.

Now updated to mountian lion and OS X Server.

 

I got a bunch of servces that don't work.

I am pretty sure migration failed, but there wasn't any mesages.

Open directory is working and all I care about saving is user accounts.

 

Is there a way to reset services (message,mail, cal, ...) to defaults and start over?

Posted on Jul 26, 2012 12:40 PM

Close

Q: howto reinstall/reinitialize os x server

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by haykong,

    haykong haykong Jul 26, 2012 4:25 PM in response to dreiland
    Level 1 (119 points)
    Jul 26, 2012 4:25 PM in response to dreiland

    I hope you backup your lion server. On lion server I would archive the Open Directory info and then do whatever backups you need such as mail etc...

     

    Anyway best to put mountain lion on USB flash drive along with OS X Server app. Boot from flash drive reformat the hard drive and install mountain lion. Then install the Server app. I do believe there's an import opinion in the Server app.

     

     

    i'll be doing a test migration process over the weekend.

  • by Hamish Blair,

    Hamish Blair Hamish Blair Jul 26, 2012 9:36 PM in response to haykong
    Level 1 (25 points)
    Jul 26, 2012 9:36 PM in response to haykong

    Is there a way to start over again and re-run the initialisation process?

  • by dreness,

    dreness dreness Jul 27, 2012 3:55 PM in response to Hamish Blair
    Level 1 (60 points)
    Jul 27, 2012 3:55 PM in response to Hamish Blair

    Hi,

     

    The answer is: maybe, depending on what you mean by 'initialization'. If you did an in-place upgrade, I don't think you will be able to redo the portions of setup that upgrade your Lion Server data and configuration for the new server version - other than by restoring your entire system from a backup, and then doing the upgrade again.

     

    It is possible to re-run the setup processes that convert a mac into a server, though. Move Server.app to the trash; this should tell all running server services to shut down and prepare to be jetisoned. Any existing server-related user data will be preserved in /Library/Server. You can then re-install Server.app and go through setup again.

     

    If you want to reset all the service data and configuration to the default 'fresh install' state, as well as re-run Server setup:

     

    1. Move Server.app to the trash
    2. Rename /Library/Server to /Library/Server.backup, or just delete it if you're sure there's no data there you need to save.
    3. Reinstall Server.app and proceed with setup.

     

    Hope this helps,

    -dre

  • by DenisF,

    DenisF DenisF Jul 28, 2012 5:57 AM in response to dreness
    Level 2 (150 points)
    Jul 28, 2012 5:57 AM in response to dreness

    The method of dreness worked for me. As I was not suspecting server.app to be corrupted,

    1. I put Server.App in the bin,

    2. this is detected by the system and trigger all the services to stop within a few seconds: confirmation required.

    3. I deleted /Library/Server (or change name)

    4. I moved back Server.App in the application folder

    5. I restarted Server setup from the beginning.

     

    Thanks

  • by dreiland,

    dreiland dreiland Jul 28, 2012 6:34 AM in response to dreness
    Level 1 (0 points)
    Jul 28, 2012 6:34 AM in response to dreness

    Thankyou very muh Dreness. This works for me as help.

    Things are much healthier now.

     

    Thanks DenisF for confirming as well.

     

    So far, no impact to open directory and network user accounts.

     

    OS X Server seems alot of cooked and stable than Lion Server.

  • by DenisF,

    DenisF DenisF Jul 28, 2012 2:49 PM in response to DenisF
    Level 2 (150 points)
    Jul 28, 2012 2:49 PM in response to DenisF
  • by noben,

    noben noben Jul 29, 2012 11:26 AM in response to Hamish Blair
    Level 1 (0 points)
    Jul 29, 2012 11:26 AM in response to Hamish Blair

    I got a bunch of servces that don't work and the migration failed.

    Got a lot of error messages in the Library/Logs/ServerSetup.log:

     

    22:09:14.306 Setup extra failed:

    path: /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/Migrati onExtras/30-ftpconfigmigrator.pl

    RESULT CODE: 1

    STDOUT: Did not supply a valid language for the --language parameter, needs to be one of [en|fr|de|ja]

     

    I did the following to rerun the migration process

     

    First, I solved my problem "Did not supply a valid language for the --language parameter" by doing:

    Set system language to English  ( open terminal, type  sudo languagesetup and choose option 1 )

    change language to English in System Preferences

     

    Run setup assisted again:

    I put Server.App in the bin, this is detected by the system and trigger all the services to stop within a few seconds: confirmation required.

    Rename the folder "Migrated" (/Library/Server/Migrated) to "Previous".

    Remove all other folders from /Library/Server/ folder.

     

    Reboot

    Move back Server.App in the application folder

    Run the Server.App

     

    It solved the problem for me!

  • by DenisF,

    DenisF DenisF Jul 29, 2012 1:29 PM in response to DenisF
    Level 2 (150 points)
    Jul 29, 2012 1:29 PM in response to DenisF

    Rebooting before putting the server.app in the folder application is a good idea of Roben.

    Note that as soon as you put the server.app in the applicaiton folder, some process starts like folder creation in /library.

    In my case it killed at least a ruby process which was taking 100% CPU

  • by lewax,

    lewax lewax Sep 12, 2012 11:10 PM in response to DenisF
    Level 1 (0 points)
    Sep 12, 2012 11:10 PM in response to DenisF

    Hi everybody...

    I have so many problems with osx server (mountain lion) and want to perform a clean install.

    I followed your instructions and it works but what i want is to delete completely the previous settings and start with a completly fresh server. (with your method, when reinstalling server, it take back all the settings and i don't want that...)

     

    I also try to delete server apps with appcleaner but i'm not able to clean all these previous settings...

     

    Thanks for your help...

  • by Mark23,

    Mark23 Mark23 Sep 13, 2012 12:09 AM in response to dreiland
    Level 3 (975 points)
    Sep 13, 2012 12:09 AM in response to dreiland

    Make sure you have all data you want to keep saved or migrated.

     

    To uninstall the server app, please enter the following into terminal:

     

    sudo rm -rf /Applications/Server.app

     

    And remove the directory /Library/Server

     

     

    After this you have mountain lion (client) again and you can reinstall OS X Server.

  • by lewax,

    lewax lewax Sep 13, 2012 2:34 AM in response to Mark23
    Level 1 (0 points)
    Sep 13, 2012 2:34 AM in response to Mark23

    Hi Mark and thanks for your answer.

    In fact, your solution do exactly the same job as other solutions in this post... And when i reinstall os x server, it take back all the settings previously used...

    What i want is to restart with a complettly clean server without any settings...

  • by Mark23,

    Mark23 Mark23 Sep 13, 2012 2:55 AM in response to lewax
    Level 3 (975 points)
    Sep 13, 2012 2:55 AM in response to lewax

    have you rebooted after following my suggestions?

  • by Mark23,

    Mark23 Mark23 Sep 13, 2012 3:04 AM in response to lewax
    Level 3 (975 points)
    Sep 13, 2012 3:04 AM in response to lewax

    look here: http://support.apple.com/kb/HT4827

    and skip step 6

  • by lewax,

    lewax lewax Sep 13, 2012 5:05 AM in response to Mark23
    Level 1 (0 points)
    Sep 13, 2012 5:05 AM in response to Mark23

    Mark23 wrote:

     

    have you rebooted after following my suggestions?

    Yes

     

    And your other solution is exctly what i've done... Each time, when reinstalling, server apps re use old config like file sharing, dns and so...

Page 1 of 3 last Next