upgrade xcode server hangs

I updated Xcode to version 10.1 (10B61) (and the Server app got updated before that too).
Now, I want to use my integration bots.
As there are none visible in the report navigator of Xcode (where they are normally listed),

I clicked "Xcode Server... " in the Xcode menu.

It showed this alert:


Upgrade Xcode Server
Your computer is configured to run Xcode Server with an older version of Xcode.
If you want to upgrade your bots to use this version of Xcode, click Upgrade… below.
You cannot undo this operation
But when I click on upgrade and it starts the process and does a few things, then when the process gets to "starting Apache", it hangs.

Below it, it says:

An unexpected error occurred when configuring Xcode Server
Failed to connect to the helper application.

I tried a few things. Among others, I ran the following command,

but the results are similar to above (just more detailed). The end of the output is this:

*** (22/28) [START] Upgrading Xcode Server data

(22/28) [END - 5.45s] Upgrading Xcode Server data

*** (23/28) [START] Starting API server

(23/28) [END - 7.29s] Starting API server

*** (24/28) [START] Starting Apache

2018-12-12 18:33:11.735 xcscontrol[10372:44518] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'

*** First throw call stack:

(

0 CoreFoundation 0x00007fff3cd7d571 __exceptionPreprocess + 256

1 libobjc.A.dylib 0x00007fff68d2fefb objc_exception_throw + 48

2 CoreFoundation 0x00007fff3cd7d3a3 +[NSException raise:format:] + 193

3 Foundation 0x00007fff3f087f27 -[NSConcreteTask launchWithDictionary:error:] + 1306

4 XCSAdministration 0x000000010f7c90ab $S17XCSAdministration21DefaultProcessServiceC7executeyAA0C15ExecutionResultCAA0C11DescriptionCKFTf4nd_n + 891

5 XCSAdministration 0x000000010f7c7ddf $S17XCSAdministration21DefaultProcessServiceC7executeyAA0C15ExecutionResultCAA0C11DescriptionCKFTo + 47

6 XCSAdministration 0x000000010f762034 -[XCSStartApacheOperation run] + 1320

7 XCSAdministration 0x000000010f784539 -[XCSInitializationOperation main] + 245

8 Foundation 0x00007fff3f050f7a -[__NSOperationInternal _start:] + 686

9 Foundation 0x00007fff3f07b67f __NSOQSchedule_f + 227

10 libdispatch.dylib 0x00007fff69da6d4f _dispatch_call_block_and_release + 12

11 libdispatch.dylib 0x00007fff69da7dcb _dispatch_client_callout + 8

12 libdispatch.dylib 0x00007fff69daa5d8 _dispatch_continuation_pop + 427

13 libdispatch.dylib 0x00007fff69da9c7a _dispatch_async_redirect_invoke + 718

14 libdispatch.dylib 0x00007fff69db5d1a _dispatch_root_queue_drain + 325

15 libdispatch.dylib 0x00007fff69db64b1 _dispatch_worker_thread2 + 90

16 libsystem_pthread.dylib 0x00007fff69fe76ee _pthread_wqthread + 619

17 libsystem_pthread.dylib 0x00007fff69fe7415 start_wqthread + 13

)

libc++abi.dylib: terminating with uncaught exception of type NSException

Abort trap: 6
When I open the Server app and look at the log, I see these lines repeating:

com.apple.xpc.launchd[1] (com.apple.xcsd): This service is defined to be constantly running and is inherently inefficient.

com.apple.xpc.launchd[1] (com.apple.xcsd.worker): This service is defined to be constantly running and is inherently inefficient.

com.apple.xpc.launchd[1] (org.apache.httpd): Please switch away from OnDemand to KeepAlive.

com.apple.xpc.launchd[1] (com.apple.serviceproxy[10437]): Service exited with abnormal code: 1

com.apple.xpc.launchd[1] (com.apple.serviceproxy): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

Some hours ago it was only (org.apache.httpd), which repaetedly apperad, as exiting with abnormal code 1 and having been run for 0 seconds and pushing respawn out by 10 seconds.


Any ideas how to fix this?

Replies

Do you maybe have the Server.app installed?

https://stackoverflow.com/questions/52721218/unable-to-update-xcode-server-from-xcode-9-4-1-to-xcode-10