Re: [git-users] git-http-backend nearly works

2015-09-14 Thread Konstantin Khomoutov
On Mon, 14 Sep 2015 05:23:19 -0700 (PDT)
Niklaas Baudet von Gersdorff  wrote:

> I (nearly) successfully set up `git-http-backend`. Pulling is no
> problem but pushing hangs at this stage (just an example git push):
> 
> $ git push
> Username for '': niklaas
> Password for '': 
> Counting objects: 33, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (30/30), done.
> Writing objects: 100% (33/33), 26.34 MiB | 23.78 MiB/s, done.
> Total 33 (delta 7), reused 0 (delta 0)
> 
> So I don't get my prompt back and the only thing I can do is CTRL-C
> which aborts pushing.
[...]

What do you see on your server machine when the operation seemingly
hangs?

Does running `ps axf` (or whatever works for your platform) show
something strange like some subprocess run by the server-side Git
process?

My immediate idea is that a hook is being run upon pushing in the
server repository which hangs for some reason and so the whole thing
hangs as well.  So I'd say it's the first thing to check.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] git-http-backend nearly works

2015-09-14 Thread Niklaas Baudet von Gersdorff
Hi,

I (nearly) successfully set up `git-http-backend`. Pulling is no problem 
but pushing hangs at this stage (just an example git push):

$ git push
Username for '': niklaas
Password for '': 
Counting objects: 33, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (33/33), 26.34 MiB | 23.78 MiB/s, done.
Total 33 (delta 7), reused 0 (delta 0)

So I don't get my prompt back and the only thing I can do is CTRL-C which 
aborts pushing.

Here is my configuration of lighttpd:

$HTTP["url"] =~ "^/git" 
{   
 

cgi.assign = ("" => 
"") 
 

setenv.add-environment = 
(   

"GIT_PROJECT_ROOT" => 
"/usr/local/www/data/vhosts//htdocs/git", 
"GIT_HTTP_EXPORT_ALL" => 
""  

)   
 

auth.require = 
(   
  

  "/" => 
(   


  "method" => 
"basic",
   

  "realm" => "Git 
Access",   

  "require" => 
"valid-user"
  

 
)   



)   
 

auth.backend = 
"plain" 
  

auth.backend.plain.userfile = 
"/usr/local/etc/lighttpd/vhosts.d/.plainauth" 
}

$ pkg info | grep lighttpd
lighttpd-1.4.37Secure, fast, compliant, and flexible Web 
Server

This is from the lighttpd access log. First you can witness a working pull 
and then follows a not working push:

  - [14/Sep/2015:14:19:31 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
  - [14/Sep/2015:14:19:39 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
  niklaas [14/Sep/2015:14:19:40 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 200 339 "-" 
"git/2.1.4"
  - [14/Sep/2015:14:19:47 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
  - [14/Sep/2015:14:19:47 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
  niklaas [14/Sep/2015:14:19:48 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 200 204 "-" 
"git/2.1.4"

What am I doing wrong?

Any help is very much appreciated.

Best,

Niklaas

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.