Autostart TeamCity server on Mac OS X

First time installing TeamCity 9 on Mac OS 10.10.
I have unpacked tar archive to ~/Library/TeamCity. Server normally works if started from the command line, with bin/teamcity-server.sh start.
I have created the /Library/LaunchDaemons/jetbrains.teamcity.server.plist file with content from https://confluence.jetbrains.com/display/TCD9/Installing+and+Configuring+the+TeamCity+Server TeamCity normally strat under root account.
But after adding UserName key: <key>UserName</key><string>Server</string> server will not run.
What is wrong?

6 comments
Comment actions Permalink

I have this error in my /var/log/system.log
com.apple.xpc.launchd[1] (jetbrains.teamcity.server[635]): Service could not initialize: 14B25: xpcproxy + 14045 [1344][1016C726-9ACF-3A24-9C51-A279F5C6B167]: 0x2

Update:
I have found similar question on stackoverflow:
https://stackoverflow.com/questions/26483089/launchd-is-not-starting-jenkins-server-on-os-x-yosemite

0
Comment actions Permalink

I'm having the same issue, manual start works fine, using the launch deamon results in the error below.
The stackoverflow link is not real obvious as to what should be fixed, can you offer some assitance?

OS x El Capitain over here..

0
Comment actions Permalink

Have moved the jetbrains.teamcity.server.plist file from /Library/LaunchDaemons to /Library/LaunchAgents



And made a change to the load file, this is the full content:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>WorkingDirectory</key>

    <string>/Library/TeamCity</string>

    <key>Debug</key>

    <false/>

    <key>Label</key>

    <string>jetbrains.teamcity.server</string>

    <key>OnDemand</key>

    <false/>

    <key>KeepAlive</key>

    <true/>

    <key>ProgramArguments</key>

    <array>

        <string>bash</string>

        <string>/Applications/TeamCity/bin/teamcity-server.sh</string>

 <string>run</string>

    </array>

    <key>RunAtLoad</key>

    <true/>

    <key>StandardErrorPath</key>

    <string>logs/launchd.err.log</string>

    <key>StandardOutPath</key>

    <string>logs/launchd.out.log</string>

</dict>

</plist>

The bold part is different than before.

That allowed me to start it properly.

0
Comment actions Permalink

Hi Adam,

Thank you for sharing your solution. We'll test agent autostart on Mac OS X El Capitan and fix configs if needed.

0
Comment actions Permalink

Hi Adam,

We have tested auto server start on Mac OS X El Capitan and it works without any changes in the .plist file. For more details please see https://youtrack.jetbrains.com/issue/TW-43342.
Not sure why it does not work in your case. What errors/warnings did you see?
Sorry for the inconvenience!

0

Please sign in to leave a comment.