2013-10-27 19 views
2

我为我的git(藏)库建立reviewboard实例访问的git(Atlassian的藏)库,但我有问题。无法从reviewboard

设置我的路径(使用克隆URL)和我的仓库类型是混帐,但我得到这个错误:[错误-5]没有与主机名关联的地址。

现在我虽然我有一个DNS问题,但我实际上能够通过使用自己的用户名或www数据(我的盒子的apache用户)手工克隆库。

检查reviewboard日志,我看到这一点:

2013-10-27 11:51:48,992 - DEBUG - - GitTool: Attempting ssh connection with host: STASH_HOST, username: MY_USERNAME 
2013-10-27 11:51:49,106 - DEBUG - - starting thread (client mode): 0x5c0b7090L 
2013-10-27 11:51:49,217 - INFO - - Connected (version 2.0, client SSHD-CORE-0.7.0-ATLASSIAN-M3) 
2013-10-27 11:51:49,217 - DEBUG - - kex algos:['diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa'] client encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc'] server encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc'] client mac:['hmac-md5', 'hmac-sha1', 'hmac-md5-96', 'hmac-sha1-96'] server mac:['hmac-md5', 'hmac-sha1', 'hmac-md5-96', 'hmac-sha1-96'] client compress:['none'] server compress:['none'] client lang:[''] server lang:[''] kex follows?False 
2013-10-27 11:51:49,218 - DEBUG - - Ciphers agreed: local=aes128-cbc, remote=aes128-cbc 
2013-10-27 11:51:49,218 - DEBUG - - using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-cbc, remote aes128-cbc; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none 
2013-10-27 11:51:49,472 - DEBUG - - Switch to new keys ... 
2013-10-27 11:51:49,774 - DEBUG - - EOF in transport thread 

认为这可能会发生,因为reviewboard不使用正确的SSH密钥?我已经手动生成它们并通过评论板(并在我的存储服务器上设置),但它没有帮助。正如我之前所说,如果我手动克隆它工作正常。

任何想法?评论版是1.7.16

谢谢!

回答

0

此消息表明审查委员会的用户无法克隆你的混帐回购协议。

登录作为评审用户

尝试git的克隆SSH://[email protected]/something.git

如果失败 - 请加/追加你的公钥对在〜/ .ssh在[email protected]

+0

你是什么意思由审查用户?我实际上试图用www-data这个apache用户来描述你所描述的,我可以手动克隆它,但是reviewboard总是返回相同的错误信息。你在谈论另一个系统用户吗?我不知道为什么reviewboard没有使用正确的SSH密钥(这些都是在GIT服务器) – Roberto

+0

请检查www数据中的〜/ .ssh/config中 – forvaidya

+0

我居然没有配置文件在那里。只是钥匙... – Roberto

1

/authorized_keys的最后,我克隆的资源库手动,曾reviewboard指向它,然后有一个cron作业,不断把所有从原产地的变化。

它现在看起来很好。