How to connect to BitBucket from FishEye?

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

This widget could not be displayed.

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.

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

This widget could not be displayed.

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

This widget could not be displayed.

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

Cheers

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

This widget could not be displayed.

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.

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,319 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you