How to connect to BitBucket from FishEye?

Borek Bernard February 7, 2012

I'd like to use FishEye / Crucible over our BitBucket repository but the connection is simply not working. What I have done:

  1. Installed Crucible with FishEye evaluation
  2. I run the whole thing as a Windows service
  3. I went to admistritation, clicked Add existing repository, selected Git, then enter URL of my private repository like ssh://git@bitbucket.org:myaccount/myprivaterepo.git
  4. I've selected "generate key pair for SSH" as an authentication method, clicked Generate and copied the public key to my BitBucket account

Now when I click "test connectino", I get this:

Fisheye is using 'C:\Program Files (x86)\Git\bin\ssh.exe' to authenticate with SSH authenticated repositories.

Error testing connection.
Error talking to repository:

ssh.exe": bitbucket.org:myaccount: no address associated with name
fatal: The remote end hung up unexpectedly

at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:162)
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:450)
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Connection failed.

What does this mean? if that's of any importanct, the generated public key ends with "MyProject on FishEye at http://mydomain.com", not an email address as usual. Can it be the issue? If so, what do I change so that the generated key contains an email address? Or is it some other problem?

5 answers

1 accepted

0 votes
Answer accepted
Borek Bernard February 8, 2012

According to this page, SSH URL as provided by BitBucket is not one of the supported formats, or it may be that this line from the documentation applies:

FishEye does not directly support the ssh protocol for Git repositories. To use ssh, launch FishEye within the context of ssh-agent, to which the appropriate ssh keys have been added.

So at the moment, one has to use HTTPS.

Borek Bernard February 8, 2012

FishEye's UI should be updated to reflect this reality, IMO.

1 vote
Adam Parrish May 11, 2015

Hi guys,

For the record, you can use the SSH link shown at the top of your bitbucket repo HOWEVER, you will still require Git to be installed on the server for the request to work. (I am adding this here as I always seem to forget this step when re-deploying). 

So, you should end up with something like this.

 

If you forgot git it will say ssh is invalid or fails. 

FishEye_and_Crucible__Administration.png Just make sure you have also added the Private Key pair to your bit bucket account, which can be found under the repo https://bitbucket.org/<companyName>/<repoName>/admin/deploy-keys

0 votes
Zacharias Beckman March 2, 2015

Same problem here... did you find a solution?

0 votes
Fred Mastropasqua November 19, 2013

Borek Bernard, How did you do this? Because when I try and use https link FishEye says, "You must not use http(s) with SSH key authentication, use ssh instead" and none of the other authentication methods are working to conenct to BitBucket.

0 votes
Sten Pittet
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2012

Is the server running FishEye capable of pinging bitbucket.org? Could you try and tell what happens?

Cheers

Borek Bernard February 8, 2012

It appears that FishEye can't connect to BitBucket's SSH URL, I had to use HTTPS.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events