I’ve just setup a new sub-server that’s dedicated to serving GIT repositories and I’m having difficulty getting them to work.
Firstly the sub-server was created with the “Git repositories” feature enabled and I created an initial repo by going to Services -> Git Repo and granted access to a new dedicated user I’d also setup.
Here’s where the trouble starts and I encounter two separate issues.
Browse Repository (gitweb))
Clicking on the “Browse Repository” button for the newly created repo opens a new page asking for credentials. Logging in with the dedicated account I’d granted access to previously, I’m then presented with the dreaded Internal Server Error message.
The Apache error_log file for this host contains the following (unhelpful) error message:
[Sun Apr 26 15:08:10.720292 2020] [cgid:error] [pid 6931:tid 139920127534848] [client IP:50391] End of script output before headers: gitweb.cgi
There’s been no configuration changes made in this newly created virtual sub-server, so I’m not sure where to go with this.
Can someone provide any insight please?
GIT Checkout issues
My second issue here is when trying to interact with the repo using git itself.
If I leave the option Redirect all requests to SSL site? enabled (which is the default for all servers hosted here), then attempting to checkout the repo with either of the following commands (not sure which one of the two is correct, so I tried both):
The following error is displayed:
SSL certificate problem: unable to get local issuer certificate
The sites SSL is provided by the top-level virtual servers SSL certificate which is a wildcard Lets Encrypt certificate.
Browsers show no issues with the SSL certificate when navigating to the site, so I’m not sure why git is having issues.
If I disable the option Redirect all requests to SSL site? for this sub-server, I’m presented with a different error from git complaining it can’t find the repo.
fatal: repository ‘http://git.mydomain.co.uk/SAT.git/’ not found
Could someone please help?