我正在为我的 git (stash) 存储库设置一个评论板实例,但我遇到了问题。
我设置了我的路径(使用克隆 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
谢谢!