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/ start.
I have created the /Library/LaunchDaemons/jetbrains.teamcity.server.plist file with content from TeamCity normally strat under root account.
But after adding UserName key: <key>UserName</key><string>Server</string> server will not run.
What is wrong?

Comment actions Permalink

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

I have found similar question on stackoverflow:

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..

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" "">

<plist version="1.0">


























The bold part is different than before.

That allowed me to start it properly.

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.

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
Not sure why it does not work in your case. What errors/warnings did you see?
Sorry for the inconvenience!


Please sign in to leave a comment.