I have installed redmine to handle a git project. I have alredy
deployed several redmines in this config, but ran the app with mongrel
or even webrick.
Now I try to run it with passenger/mod_rails and encounter a problem:
the url /repositories/show/myproject lists the last commits, but
doesn't show the repository browser.
Running the same installation with webrick, under the user redmine
used by passenger to run the app, I get the repository browser
displayed.
Anyone encountered this problem? Any hint as to which settings I
should take a look for directory access from Apache? (though the
redmine user has full access to the directory. It seems to come from
Apache)
> I have installed redmine to handle a git project. I have alredy > deployed several redmines in this config, but ran the app with mongrel > or even webrick. > Now I try to run it with passenger/mod_rails and encounter a problem: > the url /repositories/show/myproject lists the last commits, but > doesn't show the repository browser.
> Running the same installation with webrick, under the user redmine > used by passenger to run the app, I get the repository browser > displayed.
I can't quite tell from your description, but just in case -- have you considered this?
> Anyone encountered this problem? Any hint as to which settings I > should take a look for directory access from Apache? (though the > redmine user has full access to the directory. It seems to come from > Apache)
> > I have installed redmine to handle a git project. I have alredy
> > deployed several redmines in this config, but ran the app with mongrel
> > or even webrick.
> > Now I try to run it with passenger/mod_rails and encounter a problem:
> > the url /repositories/show/myproject lists the last commits, but
> > doesn't show the repository browser.
> > Running the same installation with webrick, under the user redmine
> > used by passenger to run the app, I get the repository browser
> > displayed.
> I can't quite tell from your description, but just in case -- have you
> considered this?
> That is, does the redmine user own redmine's config/environment.rb?
Hi Rhett,
thanks for the hint, but I had already looked at it:
ls -l config/environment.rb
-rw-r--r-- 1 redmine redmine 3683 2008-07-17 17:17 config/
environment.rb
I agree my description is rather vague, because I don't see where the
problem is coming from :(
> > Anyone encountered this problem? Any hint as to which settings I
> > should take a look for directory access from Apache? (though the
> > redmine user has full access to the directory. It seems to come from
> > Apache)
FYI, the problem was that redmine didn't find the git executable. I
have installed git in /usr/local/git.
The git module for redmine has a variable GIT_BIN with value 'git.
Setting the value to /usr/local/git/bin/git solved the problem.
This var is in lib/redmine/scm/adapters/git_adapter.rb
In the hope it can be useful to others.
Raph
On Jul 18, 3:32 pm, rb <raphi...@gmail.com> wrote:
> On Jul 18, 2:48 pm, Rhett Sutphin <rhett.sutp...@gmail.com> wrote:
> > Hi,
> > On Jul 18, 2008, at 6:50 AM, rb wrote:
> > > Hi!
> > > I have installedredmineto handle a git project. I have alredy
> > > deployed several redmines in this config, but ran the app with mongrel
> > > or even webrick.
> > > Now I try to run it with passenger/mod_rails and encounter a problem:
> > > the url /repositories/show/myproject lists the last commits, but
> > > doesn't show the repository browser.
> > > Running the same installation with webrick, under the userredmine
> > > used by passenger to run the app, I get the repository browser
> > > displayed.
> > I can't quite tell from your description, but just in case -- have you
> > considered this?
> > That is, does theredmineuser ownredmine'sconfig/environment.rb?
> Hi Rhett,
> thanks for the hint, but I had already looked at it:
> ls -l config/environment.rb
> -rw-r--r-- 1redmineredmine3683 2008-07-17 17:17 config/
> environment.rb
> I agree my description is rather vague, because I don't see where the
> problem is coming from :(
> Will update you if I get infor fromredminedevs.
> Cheers
> RAph
> > Rhett
> > > Anyone encountered this problem? Any hint as to which settings I
> > > should take a look for directory access from Apache? (though the
> > >redmineuser has full access to the directory. It seems to come from
> > > Apache)