Bitbucket Repo Add Generates Unlisted Error

64 views
Skip to first unread message

Benn Bollay

unread,
Aug 29, 2013, 1:44:34 PM8/29/13
to revie...@googlegroups.com
Hello folks -

First, vital stats:
RB 1.7.13
SSH OpenSSH_5_9.p1
Ubuntu 12.04
Private repository hosted on bitbucket with both ssh keys added for the user, and a custom user created for reviewboard.

I try to go to add the repository:
I set the hosting service to bitbucket, and set the "Repository name" to 'repo'

This generates an error at the top with "Please correct the error below", and then an empty <li></li> below it where error text should be.  Nothing shows up in the logs.

If I try 'https://us...@bitbucket.org/team/repo' or 'ssh://h...@bitbucket.org/team/repo', the same thing occurs.  No output in the logfile (it's set to debug), and no errors listed.

If I set it to 'Custom repostitory' and put the 'ssh' line in as the location, I get this output in the debug log:

2013-08-29 17:42:12,311 - DEBUG -  - HgTool: Attempting ssh connection with host: bitbucket.org, username: hg
2013-08-29 17:42:12,311 - DEBUG -  - HgTool: Attempting ssh connection with host: bitbucket.org, username: hg
2013-08-29 17:42:12,409 - DEBUG -  - starting thread (client mode): 0x9c4db050L
2013-08-29 17:42:12,409 - DEBUG -  - starting thread (client mode): 0x9c4db050L
2013-08-29 17:42:12,498 - INFO -  - Connected (version 2.0, client OpenSSH_5.3)
2013-08-29 17:42:12,498 - INFO -  - Connected (version 2.0, client OpenSSH_5.3)
2013-08-29 17:42:12,502 - DEBUG -  - kex algos:['diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijnda...@lysator.liu.se'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijnda...@lysator.liu.se'] client mac:['hmac-md5', 'hmac-sha1', 'uma...@openssh.com', 'hmac-ripemd160', 'hmac-ri...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'uma...@openssh.com', 'hmac-ripemd160', 'hmac-ri...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', 'zl...@openssh.com'] server compress:['none', 'zl...@openssh.com'] client lang:[''] server lang:[''] kex follows?False
2013-08-29 17:42:12,502 - DEBUG -  - kex algos:['diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijnda...@lysator.liu.se'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijnda...@lysator.liu.se'] client mac:['hmac-md5', 'hmac-sha1', 'uma...@openssh.com', 'hmac-ripemd160', 'hmac-ri...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'uma...@openssh.com', 'hmac-ripemd160', 'hmac-ri...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', 'zl...@openssh.com'] server compress:['none', 'zl...@openssh.com'] client lang:[''] server lang:[''] kex follows?False
2013-08-29 17:42:12,502 - DEBUG -  - Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
2013-08-29 17:42:12,502 - DEBUG -  - Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
2013-08-29 17:42:12,503 - DEBUG -  - using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
2013-08-29 17:42:12,503 - DEBUG -  - using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
2013-08-29 17:42:12,744 - DEBUG -  - Switch to new keys ...
2013-08-29 17:42:12,744 - DEBUG -  - Switch to new keys ...
2013-08-29 17:42:12,747 - DEBUG -  - Trying SSH key <...>
2013-08-29 17:42:12,747 - DEBUG -  - Trying SSH key <...>
2013-08-29 17:42:12,945 - DEBUG -  - userauth is OK
2013-08-29 17:42:12,945 - DEBUG -  - userauth is OK
2013-08-29 17:42:13,124 - DEBUG -  - Debug msg: Forced command: conq username:user
2013-08-29 17:42:13,124 - DEBUG -  - Debug msg: Forced command: conq username:user
2013-08-29 17:42:13,125 - DEBUG -  - Debug msg: Port forwarding disabled.
2013-08-29 17:42:13,125 - DEBUG -  - Debug msg: Port forwarding disabled.
2013-08-29 17:42:13,126 - DEBUG -  - Debug msg: X11 forwarding disabled.
2013-08-29 17:42:13,126 - DEBUG -  - Debug msg: X11 forwarding disabled.
2013-08-29 17:42:13,127 - DEBUG -  - Debug msg: Agent forwarding disabled.
2013-08-29 17:42:13,127 - DEBUG -  - Debug msg: Agent forwarding disabled.
2013-08-29 17:42:13,128 - DEBUG -  - Debug msg: Pty allocation disabled.
2013-08-29 17:42:13,128 - DEBUG -  - Debug msg: Pty allocation disabled.
2013-08-29 17:42:13,130 - INFO -  - Authentication (publickey) successful!
2013-08-29 17:42:13,130 - INFO -  - Authentication (publickey) successful!
2013-08-29 17:42:13,231 - DEBUG -  - EOF in transport thread
2013-08-29 17:42:13,231 - DEBUG -  - EOF in transport thread
2013-08-29 17:42:13,246 - DEBUG -  - Using rbssh for mercurial
2013-08-29 17:42:13,246 - DEBUG -  - Using rbssh for mercurial
2013-08-29 17:42:13,262 - ERROR -  - Error connecting to Mercurial repository ssh://h...@bitbucket.org/team/repo: no suitable response from remote hg
2013-08-29 17:42:13,262 - ERROR -  - Error connecting to Mercurial repository ssh://h...@bitbucket.org/team/repo: no suitable response from remote hg

Any ideas, suggestions, thoughts?

Cheers,
--B

Christian Hammond

unread,
Aug 29, 2013, 4:10:20 PM8/29/13
to revie...@googlegroups.com
Hi Benn,

Can you verify that cloning the repo manually, with that address and SSH key, works fine?

1.7.13 changed how we verify Bitbucket repositories, so perhaps something is broken there. I'll take a look and see if I hit the same problem.

Also, would you mind privately e-mailing me a screenshot of the failed error page when using the Bitbucket hosting service option?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Benn Bollay

unread,
Aug 29, 2013, 4:45:57 PM8/29/13
to revie...@googlegroups.com, chi...@chipx86.com
Hi Chris -

Screenshot emailed.  I wasn't able to do an hg clone with the auto-generated keys, despite having copied the public key into bitbucket, but I did "ssh-keygen -t dsa" and was able to correctly use that to do an hg clone with the expected URL.  I validated with ssh -vvv that it was using the expected key using this command:
ssh -vvv h...@bitbucket.org "hg -R team/repo serve --stdio"

HTH,
--B
To unsubscribe from this group, send email to reviewboard+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.

Benn Bollay

unread,
Aug 29, 2013, 4:56:08 PM8/29/13
to revie...@googlegroups.com, chi...@chipx86.com
I will note that even re-uploading the new id_dsa key several times, the file at /var/www/reviewboard/data/.ssh/id_dsa never matches the keyfile I am uploading.  Copying the actual keyfile on top of that one produces no change.

Christian Hammond

unread,
Aug 29, 2013, 5:00:53 PM8/29/13
to revie...@googlegroups.com
I haven't received the screenshot yet, it seems.

Can you verify that your data and data/.ssh directories, and the id_dsa within, are writable by your web server?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


To unsubscribe from this group, send email to reviewboard...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.

Benn Bollay

unread,
Aug 29, 2013, 5:39:41 PM8/29/13
to revie...@googlegroups.com
Yes - in fact, the data/.ssh/id_dsa file gets created anew when I upload a new private key into reviewboard.  It's just not the same id_dsa file that is in ~/.ssh/id_dsa.


You received this message because you are subscribed to a topic in the Google Groups "reviewboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/NAr7CIwMaSw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.

Kapil Anand

unread,
Jan 8, 2014, 11:03:40 AM1/8/14
to revie...@googlegroups.com
Hi,

I am also facing the same issue while linking my private bitbuket repo to Review Board. Is there a workaround to this issue?

Thanks

--Kapil

Christian Hammond

unread,
Jan 8, 2014, 3:35:02 PM1/8/14
to revie...@googlegroups.com
Can you tell me what version of Review Board you're using? We made some fixes to BitBucket support a couple releases ago.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---

Happy user? Let us know at http://www.reviewboard.org/users/

Kapil Anand

unread,
Jan 8, 2014, 4:09:46 PM1/8/14
to revie...@googlegroups.com
I am using ReviewBoard 1.7.20 , I installed using following command on ubuntu 12.04

easy_install reviewboard.

Thanks.

--Kapil


You received this message because you are subscribed to a topic in the Google Groups "reviewboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/NAr7CIwMaSw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.

Christian Hammond

unread,
Jan 8, 2014, 4:25:05 PM1/8/14
to revie...@googlegroups.com
Okay. Please show me the repository configuration you're using, and any relevant log entries.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org


Kapil Anand

unread,
Jan 8, 2014, 4:43:46 PM1/8/14
to revie...@googlegroups.com
I use following configurations

Name: repo
Hosting Service: bitbucket
Account: ka...@umd.edu
Repo Type: Mercurial
Repo Plan: Personal
Repo Name: https://ka...@bitbucket.org/kapil/test-reviewboard ( I have tried remove the bitbucket syntax here)
BugTracker: No
Access Control: kapil

Trying to capture the log file.


Christian Hammond

unread,
Jan 8, 2014, 4:51:06 PM1/8/14
to revie...@googlegroups.com
The Repo Name needs to be "test-reviewboard" in this case.

Account needs to be whatever your username is (which may or may not be your e-mail address) that you use when logging into Bitbucket.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


Reply all
Reply to author
Forward
0 new messages