com.cenqua.fisheye.config.ConfigException: Unable to get git version
Asked by rahuldanwade:

upgraded to latest version FeCru 3.6.3 facing error while starting server

2015-01-15 16:05:44,891 WARN - Problem starting repository Flap-Adserver

com.cenqua.fisheye.config.ConfigException: Unable to get git version

at com.atlassian.fisheye.git.client.GitContext.determineGitVersion(GitCo

ntext.java:92)

at com.atlassian.fisheye.git.client.GitContext.determineGitVersion(GitCo

ntext.java:69)

at com.atlassian.fisheye.git.GitRepositoryEngine.ensureCorrectScmVersion

(GitRepositoryEngine.java:47)

at com.cenqua.fisheye.rep.BaseRepositoryEngine.doStart(BaseRepositoryEng

ine.java:56)

at com.cenqua.fisheye.rep.RepositoryEngine.start(RepositoryEngine.java:2

05)

at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:394

)

at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(Defa

ultRepositoryManager.java:353)

at com.cenqua.fisheye.config.DefaultRepositoryManager$3$1.call(DefaultRe

positoryManager.java:404)

at com.cenqua.fisheye.config.DefaultRepositoryManager$3$1.call(DefaultRe

positoryManager.java:400)

at com.cenqua.fisheye.util.NamedExecution.call(NamedExecution.java:35)

at com.cenqua.fisheye.config.DefaultRepositoryManager$3.call(DefaultRepo

sitoryManager.java:400)

at com.cenqua.fisheye.config.DefaultRepositoryManager$3.call(DefaultRepo

sitoryManager.java:396)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.

java:1146)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

.java:615)

at java.lang.Thread.run(Thread.java:701)

Caused by: com.atlassian.utils.process.ProcessNotStartedException: git could not

be started

at com.atlassian.utils.process.ExternalProcessImpl.start(ExternalProcess

Impl.java:256)

at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProce

ssImpl.java:377)

@

65,2-9 0%


Answers:
author: Piotr Swiecicki
body: Hi Rahul,

This stack trace doesn't look like it was generated by FeCru 3.6.3, this particular exception would be thrown by GitContext.java:88 in this version. Ensure you have FISHEYE_INST and FISHEYE_HOME folders separate, otherwise you may be experiencing problems with conflicting jars after upgrade.

Anyway, this particular problem seems to be related with FishEye struggling to locate git binary. Please ensure it is available in the system path or you provide exact path to git binary, see <https://confluence.atlassian.com/display/FISHEYE/Git+client> for more details.

Ensure also you have supported version of git, as of 3.6 FishEye supported versions listed here: <https://confluence.atlassian.com/display/FISHEYE036/Supported+platforms> Consider upgrading FishEye to 3.7, we started supporting newer versions of git in this release.

Kind regards,  
Piotr

comments: author: rahuldanwade
body: Hi Piotr,fisheye server running on linux.Does it require git executable to be set in fisheye???


author: Piotr Swiecicki
body: Yes, it does, see <https://confluence.atlassian.com/display/FISHEYE/Git>


author: rahuldanwade
body: thanksHow can I configure it to the git.exe???


author: rahuldanwade
body: because we dont have .exe in linuxso up-to which directory I should configure git executable??


author: Piotr Swiecicki
body: Ensure you have git binary on your system first, by running git --version from command line. If you don't find it install it, depending on your linux distribution using appropiate command. E.g. apt-get install git, yum install git, etc.Once you have it find out where does it live by running which git, it should return full path to git executable, e.g. /usr/local/bin/git. When you have it, follow <https://confluence.atlassian.com/display/FISHEYE/Git+client> guide: go to admin / Global Settings / Server, click Edit details under Git Executable and enter the path you learned.Hope that helps,


Tags: fisheye-crucible-administration