2014-10-25 9 views
60

После создания нового хранилища на моем Xcode Server, я не могу получить доступ к этому SSH, но я могу выполнить как git clone команду и команду git push с помощью https протокол.Боты не может быть создан из Xcode сервера организовано хранилище

Кроме того я сталкиваюсь следующее сообщение об ошибке при попытке создать 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} 

Когда я пытаюсь выполнить git clone команду размещенного хранилища в Terminal.app, возникает другая ошибка:

larryhou:repo larryhou$ git clone ssh://[email protected]/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 [email protected] from 127.0.0.1:62481 for krbtgt/[email protected] 
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 [email protected] from 127.0.0.1:58943 for krbtgt/[email protected] 
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 -- [email protected] 
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 [email protected] from 127.0.0.1:60555 for host/[email protected] [canonicalize, forwardable] 
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ [email protected] from 127.0.0.1:59504 for host/[email protected] [forwardable] 
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ [email protected] from 127.0.0.1:49478 for ldap/[email protected] [canonicalize, forwardable] 
Oct 25 12:25:17 mokii.com kdc[380]: TGS-REQ [email protected] from 127.0.0.1:58173 for ldap/[email protected] [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 
+0

У меня такая же проблема. Пока не удалось найти решение этой проблемы. К сожалению, ссылка на форум apple dev содержит только ответы. С этой проблемой сервер xcode в значительной степени становится бесполезным :( – gyurisc

+0

Я столкнулся с этой проблемой несколько раз, но так как я перешел на https, я смог проверить, просто не нажал. Я использовал этот пост в блоге, чтобы получить меня некоторые из моих проблем, возможно, это поможет вам также http://papaanton.com/setting-up-xcode-6-and-apple-server-4-0-for-continues-integration-with-cocoapods/ – bolnad

+0

Git проблемы в основном связаны с проблемами SSH или SSL. Чтобы сделать работу с git-клоном, вам может потребоваться заменить ссылку git: // ссылкой https. – Prav

ответ

1

У вас неверный URL-адрес SSH. Вы не можете использовать SSH просто, заменив протокол и оставив URL в той же форме, что и HTTPS. Вот шаг за шагом руководство по использованию SSH с Git на XCode сервере и настройке ботов:

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

еще один, который немного новее и может быть более точным:

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

 Смежные вопросы

  • Нет связанных вопросов^_^