繁体   English   中英

无法从评论板访问git(Atlassian Stash)存储库

[英]Cannot access git (atlassian stash) repository from reviewboard

我正在为git(stash)存储库设置一个reviewboard实例,但是遇到了问题。

我设置了路径(使用克隆URL),并且存储库类型为git,但出现此错误:[Errno -5]没有与主机名关联的地址。

现在,尽管我遇到了dns问题,但实际上我可以使用我的用户名或www-data(我的盒子的Apache用户)手动克隆存储库。

查看审阅板日志,我看到以下内容:

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

谢谢!

最终,我手动克隆了该存储库,让它指向了审阅板,然后执行了一项cron作业,以不断地从源中提取所有更改。

看起来现在可以正常工作了。

此消息表明复审委员会用户无法克隆您的git repo。

以评论用户身份登录

尝试git clone ssh://gitadmin@example.com/something.git

如果失败,请在gitadmin@example.com的〜/ .ssh / authorized_keys中添加/附加您的公共密钥对。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM