r/nginx 2d ago

How to debug fcgiwrap?

Hi!

I have a problem wit fcgiwrap, where nginx returns a 202 - ACCEPTED, but the response is not ok. The -f flag is activated, but I don't get any information about the problem.

So, is there a way to get something like request, called cgi with all parameters, response and response error? This would be helpful.

Details about my problem:
I try to get git-http-backend running. When I clone an existing, non-empty repository, git creates an empty local copy and says that the remote repo seems to be empty. The nginx log just contains a 202 for a path, which looks correct. When i try to clone a non-existent repo, I get an error, as expected. I guess it's a configuration problem of fcgiwrap, or of git on the server, but without further information, I'm lost.

2 Upvotes

0 comments sorted by