xcode - 无法从 Xcode Server 托管存储库创建机器人

标签 xcode git ssh xcode-bots xcode-server

在我的 Xcode Server 上创建了一个新的存储库后,我无法通过 ssh 访问它,但是我可以同时执行 git clone 命令和 git push 命令使用 https 协议(protocol)。

此外,当我尝试创建一个 Xcode Bot 时遇到以下错误:

Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSCheckoutIntegrationStep.m:160 [XCSCheckoutIntegrationStep logUnderlyingErrorForError:]
    [SourceControl, Error] SSL error: received early EOF (-1)
Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSCheckoutIntegrationStep.m:119 [XCSCheckoutIntegrationStep enqueueOperations]
    [SourceControl, Error] Error checkout/clone Error Domain=com.apple.dt.SourceControlErrorDomain Code=-1 "SSL error: received early EOF (-1)" UserInfo=0x7fcf244d3cd0 {com.apple.dt.sourcecontrol.UnderlyingErrorString=SSL error: received early EOF (-1), NSLocalizedDescription=SSL error: received early EOF (-1)}
Oct 25 12:43:46 mokii.com xcsbuildd[99898]: XCSIntegrationExecutor.m:229 [XCSIntegrationExecutor integrationStep:didFinishWithError:result:]
    [BuildService, Error] XCSCheckoutIntegrationStep finished integration with an error: Error Domain=com.apple.dt.SourceControlErrorDomain Code=-1 "SSL error: received early EOF (-1)" UserInfo=0x7fcf23e117f0 {com.apple.dt.sourcecontrol.UnderlyingErrorString=SSL error: received early EOF (-1), NSLocalizedDescription=SSL error: received early EOF (-1), XCSErrorFixItType=scm-failure}

当我尝试对 Terminal.app 中的托管存储库执行 git clone 命令时,出现另一个错误:

larryhou:repo larryhou$ git clone ssh://jason@mokii.com/git/HostedRepo.git
Cloning into 'HostedRepo'...
Password:
fatal: '/git/HostedRepo.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我可以在 Console.app 中找到更多信息:

 Marker - Oct 25, 2014, 12:25:13 PM
Oct 25 12:25:15 --- last message repeated 1 time ---
Oct 25 12:25:15 mokii com.apple.xpc.launchd[1] (com.openssh.sshd.4EA7979A-127B-452C-832D-3A9A7FCB5A04): Service instances do not support events yet.
Oct 25 12:25:16 mokii.com kdc[380]: AS-REQ jason@MOKII.COM from 127.0.0.1:62481 for krbtgt/MOKII.COM@MOKII.COM
Oct 25 12:25:16 --- last message repeated 1 time ---
Oct 25 12:25:16 mokii.com kdc[380]: Client sent patypes: REQ-ENC-PA-REP
Oct 25 12:25:16 mokii.com kdc[380]: user has no SRP keys
Oct 25 12:25:16 mokii.com kdc[380]: Need to use PA-ENC-TIMESTAMP/PA-PK-AS-REQ
Oct 25 12:25:16 mokii.com kdc[380]: AS-REQ jason@MOKII.COM from 127.0.0.1:58943 for krbtgt/MOKII.COM@MOKII.COM
Oct 25 12:25:16 --- last message repeated 1 time ---
Oct 25 12:25:16 mokii.com kdc[380]: Client sent patypes: ENC-TS, REQ-ENC-PA-REP
Oct 25 12:25:16 mokii.com sandboxd[508] ([380]): kdc(380) deny file-read-data /private/etc/krb5.conf
Oct 25 12:25:16 mokii.com kdc[380]: ENC-TS pre-authentication succeeded -- jason@MOKII.COM
Oct 25 12:25:16 mokii.com kdc[380]: DSUpdateLoginStatus: Unable to synchronize login time for jason: 77009 
Oct 25 12:25:17 mokii.com kdc[380]: Client supported enctypes: aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1, arcfour-hmac-md5, using aes256-cts-hmac-sha1-96/aes256-cts-hmac-sha1-96
Oct 25 12:25:17 mokii.com kdc[380]: Requested flags: forwardable
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ jason@MOKII.COM from 127.0.0.1:60555 for host/mokii.com@MOKII.COM [canonicalize, forwardable]
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ jason@MOKII.COM from 127.0.0.1:59504 for host/mokii.com@MOKII.COM [forwardable]
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ jason@MOKII.COM from 127.0.0.1:49478 for ldap/mokii.com@MOKII.COM [canonicalize, forwardable]
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ jason@MOKII.COM from 127.0.0.1:58173 for ldap/mokii.com@MOKII.COM [forwardable]
Oct 25 12:25:17 mokii.com sshd[61715]: Accepted keyboard-interactive/pam for jason from 192.168.2.3 port 58668 ssh2
Oct 25 12:25:17 mokii.com sshd[61722]: Received disconnect from 192.168.2.3: 11: disconnected by user
Oct 25 12:25:17 mokii com.apple.xpc.launchd[1] (com.openssh.sshd.4EA7979A-127B-452C-832D-3A9A7FCB5A04[61715]): Service exited with abnormal code: 255

最佳答案

您的 SSH URL 完全错误。您不能简单地通过替换协议(protocol)并以与 HTTPS 相同的形式保留 URL 来使用 SSH。以下是在 XCode 服务器上使用 SSH 和 Git 并设置机器人的分步指南:

http://ikennd.ac/blog/2013/10/xcode-bots-common-problems-and-workarounds/

还有一个更新一点,可能更准确:

https://honzadvorsky.com/articles/2015-08-04-xcs_tutorials_1_getting_started/

关于xcode - 无法从 Xcode Server 托管存储库创建机器人,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26559486/

相关文章:

git - 从 Master 分支但包括来自另一个未 merge 分支的更改

Java 属性元素

macos - 如何使用 SSH 将 IntelliJ 连接到 GitHub

Xcode 选项卡总是在代码之间变化

Xcode:如何编译 i386、armv7、armv7s 和 arm64?

iphone - iOS - 其他 View 中的 View

git - .gitignore : Ignore one specific directory and that one only

git:将当前分支中正在进行的未提交工作提交到新分支

ios - xcode:更改文件路径后缺少文件xcdatamodeld

linux - 将文件从 ssh 服务器复制到 mac?