Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Asset server not working after OSX Mountain Lion upgrage

Discussion in 'Editor & General Support' started by stiltskin, Jul 29, 2012.

  1. stiltskin

    stiltskin

    Joined:
    Feb 27, 2010
    Posts:
    95
    is anyone else having this issue? My server no longer exists after the upgrade and I can't install it either. It says it quits the install with errors.
     
  2. more

    more

    Joined:
    Aug 10, 2012
    Posts:
    6
    did you fix this? Asset server not working, and installing again quits with errors.
    add: Everything was installed and working fine on OsX 10.7.4, not working on OsX 10.8
     
    Last edited: Aug 13, 2012
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    On OSX 10.8 its pretty likely that it was GateKeeper.
    The Unity Asset Servers weren't updated in quite some time so they are for nearly granted not signed


    The alternative also could be X11 which is missing on OSX 10.8
     
    Last edited: Aug 13, 2012
  4. more

    more

    Joined:
    Aug 10, 2012
    Posts:
    6
    Wow, ok - thanks for the quick response. On 10.8 I have installed X11 via XQuartz on 10.8 ( for example, gimp still works)

    http://support.apple.com/kb/HT5293

    should I wait, or host on linux somewhere?
     
  5. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Actually I forgot another relevant and unluckily pretty common problem for devs on OSX 10.8: GateKeeper! (updated above posting)

    So what I would do is:

    0. Look if GateKeeper is involved here - in that case setting the gate keeper to allow unsigned apps should solve it. If thats the case proceed as below
    1. Report it at UT so you are within the 'information loop'
    2. If you are a subscribed OSX dev, you can take the asset server sources and compile + sign it yourself. This will allow it to run under gatekeeper. If you are none you could look for someone who is to see if he could the recompilation for you
     
  6. more

    more

    Joined:
    Aug 10, 2012
    Posts:
    6
    I think you are probably right and it is related to GateKeeper and permissions. Unfortunately, setting System Preferences->Security Privacy->"Allow applications downloaded from" = Anywhere doesn't solve the installation errors. I also tried downloading the source and using the install script from X11 with sudo ./install.sh , but still there are multiple permissions related errors and it fails.

    I'm not going to spend more time on it for now - thanks for the help.
     
  7. VoxelAgent

    VoxelAgent

    Joined:
    Oct 30, 2012
    Posts:
    3
    So I just updated to Mountain Lion and had this exact problem.

    It seems that the upgrade messed up the ownership of the database files that Asset Server uses to store all it's bits.

    The solution is to run the following command to reset the owner of the data directory to unitysrv... Then simply restart your computer

    Code (csharp):
    1. sudo chown -R unitysrv:unitysrv /Library/UnityAssetServer/data
    You can see the problem by typing
    Code (csharp):
    1.  ls -la /Library/UnityAssetServer/
    As you can see from the output, the owner of the data folder is a user named '102' - whats up with that?
    If the server still doesn't restart, try the following...
    Code (csharp):
    1. su unitysrv
    2. /Library/UnityAssetServer/bin/postgres -D /Library/UnityAssetServer/data
    Now your server should be running....
     
  8. akasurreal

    akasurreal

    Joined:
    Jul 17, 2009
    Posts:
    441
    Saved me, thanks a ton for this!
     
  9. ezone

    ezone

    Joined:
    Mar 28, 2008
    Posts:
    331
    Saved me too - love this forum!!