Hi,
I have installed Git 1.7.11 which worked fine with Stash until today. An hour ago I restarted Tomcat and now I get the message below. My path is correct and there is no other version on my server (Ubuntu)
Has anybody an idea?
Rolf
The following problem occurred which prevents Atlassian Stash from starting correctly:
Rolf,
Probably the easiest, and most guaranteed way to fix this is to tell Stash explicitly where your git is installed, rather than having it search the path to try and find it.
To do so, in your stash.home, create stash-config.properties (or edit the current one if it already exists) and add the following line:
plugin.stash-scm-git.path.executable=/usr/bin/git
This will configure Stash to use /usr/bin/git always, rather than allowing it to try and detect the one to use.
For our reference, did you upgrade your Stash version while you were restarting? Is that why you restarted? If so, which version of Stash are you running now?
Bryan,
thanks for the hint. I tried it and it worked - but not very long. After the next restart I had the same problem again.
The fault was that I run several Atlassian applications in one Tomcat. Tyler from Atlassian gave me the hint that this causes problems.
Now I started stash in an own tomcat and it seems to work now.
Anyway thanks for your help.
Rolf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works if you have to use RHEL 6.3 and are unable to upgrade git from 1.7.1. Install a newer version of GIT from source (http://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source), and use this method to tell Stash to not use the installed version. Thank You @Bryan Turner ! Adam Martin - Isos Technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
type this in the terminal:
which git
It should produce something like that:
/usr/bin/git
If not, try
locate git |grep bin
or:
find / -name git |grep bin
You'll find the git executable.
next you may print out PATH
echo $PATH
Probably this is a problem, you have no path of git executable in $PATH.
edit /etc/profile and add:
export PATH=$PATH:/usr/bin/
If the result of which git is the /usr/bin/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and probably you'll have to do:
source /etc/profile
and then re-run stash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which git
brings "/usr/bin/git" as result.
/usr/bin/git --version has the result "git version 1.7.11.4" which is the same as git --version. And I have only one version of git installed.
The command "source
/etc/profile" and a restart of tomcat had also no result.
:-((
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
The command source/etc/profile shoud have a space between source and the path to /etc/profile.
Also you can remove the old version of git from the server with:
sudo apt-get remove git git-svn sudo apt-get build-dep git-core
and install only the up to date on using the steps found on http://blog.jasonmeridth.com/2012/07/11/using-latest-version-of-git-on-ubuntu.html.
Please give it a try and let me know how it goes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.