【问题标题】:Xcode Server impossible to startXcode Server 无法启动
【发布时间】:2015-02-02 15:42:24
【问题描述】:

我在使用这个 Xcode 服务器时遇到了困难,已经在上面浪费了好几天时间......我在优胜美地,一切都是最新的。上周一切正常,除了每次我必须重新启动我的 mac mini 服务器时,我必须通过 VNC 登录以重新启动 Xcode 服务器,而且我一直在经历选择 Xcode.app 的痛苦过程。

这停止了工作,当我选择 Xcode.app 时,我有一个无限的等待时间,当点击取消时,他告诉我同意 Xcode 的用户许可......

我找到了重新启动服务器的命令行并得到了结果:

polarios:~ nicky$ sudo xcrun xcscontrol --restart
2015-02-02 16:34:46.006 xcscontrol[3197:22247] I am xcscontrol (version 2.0 from /Applications/Xcode.app)
2015-02-02 16:34:46.006 xcscontrol[3197:22247] Arguments: (
    "/Applications/Xcode.app/Contents/Developer/usr/bin/xcscontrol",
    "--restart"
)
2015-02-02 16:34:46.264 xcscontrol[3197:22247] Xcode version: 6.1.1 (6A2008a) (OS X SDK 13F26, iOS SDK 12B411)
2015-02-02 16:34:46.267 xcscontrol[3197:22247] Server version: 4.0.3 (14S350)
2015-02-02 16:34:46.267 xcscontrol[3197:22247] OS X version: 10.10.1 (14B25)
2015-02-02 16:34:46.269 xcscontrol[3197:22247] Launching task: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xcsd.plist
2015-02-02 16:34:46.341 xcscontrol[3197:22247] Launching task: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xcscouch.plist
2015-02-02 16:34:46.411 xcscontrol[3197:22247] Launching task: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xcsredis.plist
2015-02-02 16:34:46.479 xcscontrol[3197:22247] Launching task: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xcscontrol.plist
2015-02-02 16:34:46.560 xcscontrol[3197:22247] Launching task: /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.xcscouch.plist
2015-02-02 16:34:47.876 xcscontrol[3197:22247] Launching task: /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.xcsredis.plist
2015-02-02 16:34:47.950 xcscontrol[3197:22247] Launching task: /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.xcsd.plist
2015-02-02 16:34:48.019 xcscontrol[3197:22247] Launching task: /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.xcscontrol.plist
2015-02-02 16:34:48.414 xcscontrol[3197:22250] [XCSHTTPResponse] Received an unexpected error: -1004 (Could not connect to the server.) - GET https://127.0.0.1:20344/api/ping
2015-02-02 16:34:50.785 xcscontrol[3197:22250] [XCSHTTPResponse] Received an unexpected error: -1004 (Could not connect to the server.) - GET https://127.0.0.1:20344/api/ping
2015-02-02 16:34:52.773 xcscontrol[3197:22259] [XCSHTTPResponse] Received an unexpected error: -1004 (Could not connect to the server.) - GET https://127.0.0.1:20344/api/ping
2015-02-02 16:34:54.632 xcscontrol[3197:22250] [XCSHTTPResponse] Received an unexpected error: -1004 (Could not connect to the server.) - GET https://127.0.0.1:20344/api/ping

我在使用服务器应用程序 3.2 的 Maverick 上遇到了这个问题,我无法解决,除非它因为这个原因更新到 Yosemite。

【问题讨论】:

    标签: ios xcode osx-server xcode-server


    【解决方案1】:

    经过几个小时的搜索,我终于找到了问题所在。我在控制台的日志中深入挖掘。在 Xcode 服务器问题之前,我发现一些关于 QuickLook 的错误的提及。错误是说 QuickLook 由于缺少 /tmp 而无法启动。我查看并意识到符号链接 /tmp 指向不存在的 /private/tmp。然后我创建了该目录并授予 777 权限。一切都恢复了!

    我认为这与我上周试图在 /tmp/mysql.sock 上打开一个套接字的 MySQL 安装有关。

    对于有类似问题的人,我的建议是深入查看服务器日志,搜索xcscontrol,然后查看发生了什么样的错误。

    【讨论】:

    • 好发现!拯救我的一天
    猜你喜欢
    • 1970-01-01
    • 2013-01-27
    • 2011-03-13
    • 2015-12-21
    • 2015-03-31
    • 2018-09-14
    • 1970-01-01
    • 1970-01-01
    • 2017-02-27
    相关资源
    最近更新 更多