or sign in with your existing account

Side Menu

Content

git repository, unable to checkout

I am unable to correctly use the git integration of OP, hopefully someone here is able to help me.

I am running OP6.1, with the up-to-date docker container and all persistent directories needed, mounted to the correct location + an extra one, to be used as the repo directory.

Running on a computer within my LAN, which has a static IP and an entry within my hosts list:
cloud
pm.cloud

This works, stable since about a week (incl. reboots) .
The repo itself was initialized, does contain the .git folder and i committed my first changes within my LAN.

From within OP, i can see the files and commits of this repo, but i am unable to checkout as OP suggests me to (ok, as I am the admin, I told myself this, by setting the Checkout URL-Präfix to be https://pm.cloud/repos )

Replies (7)

I used the GIT URL https://[my-domain]/openproject/git/[my-projectname]/ (I mean with [my-projectname] the project name how it is spelled in OP) the whole last year.
Today I tried to push new changes, but the message is, it cannot be found. Neither Eclipse nor the GIT CLI client is able to find the repo. The error message is:

https://[my-domain]/openproject/git/[my-projectname]/info/refs?service=git-receive-pack not found

But: in OpenProject, I can still review all commits and see the statistics. I noticed some changes in the apache config in the last recent updates, but I cannot determine which update. Perhaps this could be the reason.

My system is: Ubuntu 16.04.2, OpenProject CE 6.1.4

Btw: the mentioned link in the repository view like this: https://[my-domain]/openproject/git/[reponame].git/ never worked for me.

, like mentioned in the link. When it came to the question about the webserver, I didn’t skip, but answered the questionare again.

I think, the most important part is, that the file /etc/openproject/addons/apache2/includes/vhost/git_smart_http.conf was (re-)written. It handles all requests of the git part:

ProxyPass /openproject/git/ !
# see https://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html for details
# needs mod_cgi to work -> a2enmod cgi
SetEnv GIT_PROJECT_ROOT "/var/db/openproject/git"
# Allow all repositories within the root to be exported
# depending on the authorization of OpenProject
SetEnv GIT_HTTP_EXPORT_ALL
# Set the remote user based on the redirect.
# If not set, receive-pack service will be disabled by default.
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /openproject/git/ "/usr/lib/git-core/git-http-backend/"
(...)

In your case it should be similar like this: /etc/openproject/addons/nginx/includes/vhost/git_smart_http.conf

As far as I understood the tutorials and documentations I read, you’re right. You don’t have “openproject (re)configure”, because the configuration is part of the initial command line, if you create the image.

I don’t know which docker setup (or is “image” the right word!?) you use (I found several…), could you post the link to that, please? But nevertheless I have the feeling, that the docker is just providing the ruby/passenger part. The git http part is not handled by OP itself. Therefore I guess, you have to configure your nginx by your own.