Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Fisheye will not connect to Bitbucket server

Marvin Mendoza January 10, 2018

Hi,

 

I am currently configuring Fisheye+Crucible and found out that Fisheye can see the repository of BitBucket but cannot create a connection. I simply went to the BitBucket server repository tab and clicked add. This can now be seen in the native repository after. I then clicked a repository and tried test connection which resulted in this error:

Could not find SSH binary on the system path. See https://confluence.atlassian.com/display/FISHEYE/Authentication

Error testing connection.
Could not find SSH binary on the system path. See https://confluence.atlassian.com/display/FISHEYE/Authentication
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)
at com.atlassian.fecru.security.SshWrapper.<init>(SshWrapper.java:19)
at com.atlassian.fisheye.dvcs.client.DvcsProcessFactory$DvcsProcessBuilder.initProcessBuilder(DvcsProcessFactory.java:92)
at com.atlassian.fisheye.git.client.GitProcessFactory$GitProcessBuilder.initProcessBuilder(GitProcessFactory.java:34)
at com.atlassian.fisheye.dvcs.client.DvcsProcessFactory$DvcsProcessBuilder.build(DvcsProcessFactory.java:76)

Connection failed.

 

Environment:

Fisheye+Curcible and Bitbucket hosted on the same server.

 

Because on this error I tried searching for solutions but was not able to resolve it.

1st possible solution : added environmental variables to path. (C:\Program Files\Git\bin;C:\Program Files\Git\cmd)

Source:

1. https://confluence.atlassian.com/fishkb/fisheye-does-not-sync-an-added-repository-from-bitbucket-server-on-windows-800298552.html

2. https://community.atlassian.com/t5/Fisheye-Crucible-questions/Attempting-to-Connect-to-Stash-from-Crucible/qaq-p/188474

2nd possible solution : went to admin -> server and added the C:\Program Files\Git\bin\git.exe

Source: https://confluence.atlassian.com/fisheye/git-client-298976877.html

 

Help would be very much appreciated. Thanks in advance.

 

1 answer

1 accepted

1 vote
Answer accepted
Nate Hansberry
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2018

Hi Marvin,

The error is caused by the fact that the OpenSSH binary is not accessible on your system for Fisheye to successfully connect and clone the repositories.

On Windows SSH is not available by default and will need to be manually installed, the way we recommend proceeding is to download and install [Git for Windows|https://git-for-windows.github.io/], as this includes OpenSSH. Be careful about the options you choose during the install:


- When asked how to adjust your PATH environment, select the option '+Run Git and included Unix tool from the Windows Command prompt+'. This will ensure that Git and its associated tools (including OPENSSH) are available to the FishEye server via the PATH environment variable.


- When asked for the SSH executable, select the option '+Use OpenSSH+'. The FishEye server doesn't work with alternatives like TortoiseHg or Putty.

Can you please confirm that this has been done? If not, please install Git once more with the selected options and let us know if this helped.

 

I hope this information is helpful!

Marvin Mendoza January 11, 2018

Hi Nathaniel,

 

You are correct. This solved the problem. It wasn't a PATH issue but an installation issue where I most probably did not install open ssh. After running the installer again and making sure that the openssh was ticked and not Putty or TortoiseHg, Fisheye can now access the Bitbucket repository.

 

Thank you very much.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events