Project

General

Profile

Connecting to Gitlab repository

Added by Jan Verhoek almost 11 years ago

Hi, I have an old server installation (server 1) with Redmine and an old Gitlab version running. To connect a Redmine project to a GIT repository I can enter the following path:
/home/git/repositories/project1.git. This is all working fine.

I have a new server (server 2) with similar infrastructure, with Redmine but with the new version of Gitlab. This new version works with namespaces. So my repositories are now like:

/home/git/repositories/user1/project1.git

The Redmine user has been added to access the /home/git/repositories folder. But when I request the Repository tab of the project in Redmine I get a 404-redmine error_scm_not_found message (but than in correct Dutch language).

Should there be anything else to specify? Any clues as how to solve this? Does anybody uses this combination?

Thanks!


Replies (3)

RE: Connecting to Gitlab repository - Added by To She almost 11 years ago

make sure your ruby server is running with a group that has access to the git repositories. If you're using passenger this is a bit tricky, check this thread http://www.redmine.org/boards/2/topics/19606

RE: Connecting to Gitlab repository - Added by Jan Verhoek almost 11 years ago

No, unfortunately not. But I'm glad to see I'm not the only one...

RE: Connecting to Gitlab repository - Added by To She almost 11 years ago

It sounds like a permissions issue. Again make sure that the redmine user can access all the subdirectories, even the git home folder and it's repositories subdir. Maybe you need to change the default UMASK in gitlab.yml to provide access to group members as well. 750 should be sufficient in that case. just SSH to your server and try to access the repository files with your redmine user. If it's not a permission issue than .ake sure that the ruby server is running with the right group.

    (1-3/3)