Xcode 9 enable Server fails because "xcsd" keychain password

2.3k Views Asked by At

I currently try to setup an Xcode Server with Xcode 9 but I stuck with this Keychain Password request. I guess it has something to do with the previous Xcode/OS X Server Installation as there Xcode Server was part of OS X Server.

But how do I get rid of this?

EDIT: As it came up in the comments: Neither the password of a the system/admin-user nor the one of the dedicated account for the Xcode Server is accepted.

Keychain password request for xcsd

4

There are 4 best solutions below

3
Davide On BEST ANSWER

Only working solution for me:

  • Backup the folder /Library/Developer/XcodeServer/
  • Remove it
  • Activate Xcode Server

Keep in mind that the new Xcode server doesn't have hosted repositories anymore, so if used them, they are in the HostedRepositories folder. You have to move them to a different service (eg. github).

1
Tony.Y On

I had the same problem, and after a few hours of try and error. I think I kind of got the solution... I went to keychain access, and selected the xcsd keychain, then went to menu - edit - delete keychain 'xcsd', then after restart the issue of asking for that mystery password was fixed.

0
h.w.powers On

I tried all of the above... however the only thing that worked for me was resetting the entire server with this command. Open terminal and try:

sudo /Applications/Xcode.app/Contents/Developer/usr/bin/xcscontrol --reset

This command saved me from giving up!!

0
alex da franca On

I deleted "xcsd.crt", "xcsd.key", "xcsnginx.crt", "xcsnginx.key" and "xcsnginx.pass" from: /Library/Developer/XcodeServer/Certificates

and "xcsd.keychain" and "xcsnginx.keychain" from: /Library/Developer/XcodeServer/Keychains

And then was able to start the Xcode server. (It might very well be the case, that the xcsd.xxx files would have been enough, but I can not try it out now that the error is gone)