Error testing connection. Error talking to repository - occurs when trying to connect to a Git repository
Problem
When trying to connect to a Git repository the following appears in the Testing Connection dialog:
The following error is also written in the atlassian-fisheye-YYYY-MM-DD.log
:
2015-05-25 19:52:42,693 ERROR [qtp1128132589-563 ection-1432554762648] fisheye RepositoryAdminRpcServiceImpl-testRepositoryConnection - Error testing connection.
com.atlassian.fisheye.spi.admin.services.RepositoryConfigException: com.cenqua.fisheye.config.ConfigException: Error talking to repository:
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:864)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
...
Caused by: com.cenqua.fisheye.config.ConfigException: Error talking to repository:
at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:120)
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:443)
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:862)
... 161 more
2015-05-25 19:52:42,697 ERROR [qtp1128132589-563 ection-1432554762648] fisheye RepositoryAdminRpcServiceImpl-testRepositoryConnection - Connection failed.
Cause
Cause #1 - Git executable not available
Fisheye was not able to detect where Git executable (git.exe for a Windows Server) is located.
Cause #2 - Repository details are incorrect
At least one of the following things is incorrect:
- The Git URL
- The authentication type selected
- The credentials specified
Resolution
Resolution for Cause #1 - Git executable not available
Set the absolute Git executable path by going to FishEye Administration > Global Settings > Server > Git executable > Edit Details
. The Git executable file is usually located in the bin
directory found inside the directory into which Git is installed, typically C:\Program Files\Git\bin\git.exe
in Windows environments.
FE-4543 - Getting issue details... STATUS is a request to provide a clearer message when the Git executable is not available.
Resolution for Cause #2 - Repository details are incorrect
Make sure that the Git URL, the authentication type and the provided credentials are correct.
You can test the expected Git URL by running:
git config --get remote.origin.url