Defect #8619
closedGit: 404 just for looking at the "repository" tab
0%
Description
I have a project using a Git repo. Clicking the repository tab used to work; now I just get a 404. I'd point you there but it's password-protected. How can I debug this?
Updated by Toshi MARUYAMA over 13 years ago
- Subject changed from 404 just for looking at the "repository" tab to Git: 404 just for looking at the "repository" tab
- Category set to SCM
Updated by Jean-Baptiste Barth over 13 years ago
Etienne Massip wrote:
Have a look at
production.log
?
+1
Plus you should try to go to the local directory where your git repo is :- if it's a normal repo (working copy), try a
git status
and see if any error is returned - if it's a bare repo, I presume you synchronize it from an other server. Check the output of your sync script/command (usually a
git pull
ofgit fetch
)
Updated by Dave Abrahams over 13 years ago
Jean-Baptiste Barth wrote:
Etienne Massip wrote:
Have a look at
production.log
?+1
Here's what I get:
Processing RepositoriesController#show (for 207.172.223.249 at 2011-06-19 19:21:12) [GET] Parameters: {"action"=>"show", "id"=>"xxxx", "controller"=>"repositories"} Rendering template within layouts/base Rendering common/error (404) Completed in 95ms (View: 49, DB: 3) | 404 Not Found [https://hub.boostpro.com/projects/xxxx/repository]
- if it's a bare repo, I presume you synchronize it from an other server.
No, this happens to be the server with the "master" bare repository, so I'm just pointed at it. No sync to check. And I can clone the bare repo locally and do git checkout without complaints.
Updated by Jean-Baptiste Barth over 13 years ago
Then maybe it could be because the user running Redmine doesn't have enough permissions on the .git/
directory. And check you're actually pointing to the .git/
directory and not the root of the working copy.
Updated by Dave Abrahams over 13 years ago
Jean-Baptiste Barth wrote:
Then maybe it could be because the user running Redmine doesn't have enough permissions on the
.git/
directory. And check you're actually pointing to the.git/
directory and not the root of the working copy.
Again, it's a bare repository. Also, I can clone the repository and do git status both as the redmine and the webserver users. Also, this was working before I upgraded...
...wait a second: my redmine configuration is showing some exclamation marks. It says I need to edit configuration.yml to set up the SCM command. OK, that fixed it. But...
What's configuration.yml? Is this a new thing? Everything worked before I upgraded redmine. Shouldn't the upgrade instructions have mentioned this?
Updated by Etienne Massip over 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Dave Abrahams wrote:
What's configuration.yml? Is this a new thing? Everything worked before I upgraded redmine. Shouldn't the upgrade instructions have mentioned this?
New since 1.2.0.
I just made some update to RedmineInstall and RedmineRepositories to include this file.