WebFaction
Community site: login faq

Hi,

I'm trying to set up a Git application that will be accessible through http. I carefully followed the instructions I found at http://docs.webfaction.com/software/git.html (several times), but here is what I'm getting when I'm trying to clone over HTTP:

git clone http://<username>@git.<username>.webfactional.com/<repo_name>.git

error: The requested URL returned error: 500 while accessing http://<username>@git.<username>.webfactional.com/<repo_name>.git/info/refs

fatal: HTTP Request failed

I get the same error whatever <repo name=""> value I use. I can access my repository through gitweb, so the application/website setup seems fine. The cloning works fine over ssh.

Every time I am attempting to clone, this line appears twice in logs/frontend/error_git_php.log:

[Wed Apr 06 11:18:30 2011] [error] [client XX.XX.XX.XX] Premature end of script headers: git.cgi

What's wrong?

asked 06 Apr '11, 11:42

Dominique Eav
1112
accept rate: 0%

edited 07 Apr '11, 04:22

This usually happens when 'git.cgi' is running with the wrong permissions.

Could you try:

chmod 711 /path/to/git.cgi
(06 Apr '11, 11:46) David L ♦♦

The permissions were ok, this is not my problem. I'm trying again from scratch with a fresh mind.

Yep, still the same error. Does anyone have a clue?

(07 Apr '11, 02:45) Dominique Eav

The webfaction support team found out what the problem was: blank lines had been inserted before the "#!/bin/bash".

I don't know where those blank lines came from (most certainly from the git install template, since I tried reinstalling from scratch several times), but my setup now works fine.

permanent link

answered 07 Apr '11, 04:53

Dominique Eav
1112
accept rate: 0%

edited 07 Apr '11, 04:53

Turned out to be a buggy install template. Webfaction just fixed it.

(07 Apr '11, 07:22) Dominique Eav

Try

git clone http://git.username.webfactional.com/repo_name.git

(without username@)

permanent link

answered 23 Oct '12, 08:05

Idream
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×108
×27
×19

question asked: 06 Apr '11, 11:42

question was seen: 14,723 times

last updated: 23 Oct '12, 08:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM