Hi, Here is my 000-gitorious.conf file:
upstream rails { server 127.0.0.1:3000; } server { root /projects/gitorious/gitorious/public; try_files \$uri/index.html @app; location @app { proxy_pass http://rails; proxy_set_header Host \$http_host; proxy_redirect off; } listen 80; # Handle tarball downloads # Gitorious will send a X-Accel-Redirect header like # X-Accel-Redirect: /tarballs/project-repo-sha.tar.gz # Which should be streamed from /tarball-cache/project-repo-sha.tar.gz location /tarballs/ { internal; alias /projects/gitorious/tarballs/; } # Handle git-over-http requests # Gitorious will send a X-Accel-Redirect header like # X-Accel-Redirect: /git-http/project/repository.git/info/refs # Which should map to /repositories/project/repository.git/info/refs location /git-http/ { internal; alias /projects/gitorious/repositories/; } } And here is the nginx.conf: user gitorious; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; } Kind Regards, Jaco On Thursday, January 17, 2013 7:33:44 PM UTC+2, Jaco Theron wrote: > > Hi Marius, > > Here is an example of an SSH push /var/log/nginx/access.log printout: > > [17/Jan/2013:19:16:48 +0200] "GET /test-4/test-4/config?username=jacot > HTTP/1.1" 502 172 "-" "-" "-" > > Here is an example of an HTTP push /var/log/nginx/access.log printout: > > [17/Jan/2013:19:30:57 +0200] "GET > /test-4/test-4.git/info/refs?service=git-upload-pack HTTP/1.1" 200 0 "-" > "JGit/2.1.0.201209190230-r" "-" > > HTTP works but not SSH, I hope this helps getting to the bottom of this. > > Kind Regards, > Jaco > > On Thursday, January 17, 2013 7:23:49 PM UTC+2, Jaco Theron wrote: >> >> Hi Marius, >> >> Do you think there is something to be done with nginx to get this working? >> >> Regards, >> Jaco >> >> On Thursday, January 17, 2013 4:44:31 PM UTC+2, Thomas Kjeldahl Nilsson >> wrote: >>> >>> Marius, you have more of a grip on the nginx setup than me so I'll punt >>> it to you. You got any ideas? :) >>> >>> cheers, >>> Thomas >>> >>> On Thursday, January 17, 2013 at 3:37 PM, Jaco Theron wrote: >>> >>> Hi, >>> >>> I renamed /etc/nginx/default.conf to /etc/nginx/default.conf.old and now >>> get this from Eclipse eGit: >>> >>> gito...@192.168.xx.xx:test-3/test-3.git: >>> == Gitorious: ========================================================== >>> Temporary error. Please try again shortly >>> ======================================================================== >>> >>> In $GITORIOUS_HOME/gitorous/log/gitorious_auth.log: >>> >>> I, [2013-01-17 16:02:57#2091] INFO -- : Connection from "192.168.XX.XX >>> 63353 22" (jacot): git-upload-pack 'test-3/test-3.git' >>> F, [2013-01-17 16:02:57#2091] FATAL -- : Connection refused querying for >>> paths/permissions >>> >>> This means I broke it maybe :-P so I reverted the name change :-) >>> >>> And now changed 000-gitorious to 000-gitorious.conf >>> >>> Now I get Eclipse eGit error: >>> >>> gito...@192.168.xx.xx:test-3/test-3.git: >>> == Gitorious: ========================================================== >>> Access denied or wrong repository path >>> ======================================================================== >>> >>> And in $GITORIOUS_HOME/gitorous/log/gitorious_auth.log: >>> >>> I, [2013-01-17 16:35:31#2104] INFO -- : Connection from "192.168.YY.YY >>> 63686 22" (jacot): git-upload-pack 'test-3/test-3.git' >>> I, [2013-01-17 16:35:31#2104] INFO -- : Access denied or bad repository >>> path for "jacot": "git-upload-pack 'test-3/test-3.git'" >>> >>> And in /var/log/nginx/error.log: >>> >>> 2013/01/17 16:35:31 [error] 1783#0: *43 upstream prematurely closed >>> connection while reading response header from upstream, client: >>> 192.168.XX.XX, server: , request: "GET /test-3/test-3/config?username=jacot >>> HTTP/1.1", upstream: " >>> http://192.168.XX.XX:3000/test-3/test-3/config?username=jacot", host: >>> "192.168.XX.XX" >>> >>> ? >>> >>> Kind Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 3:57:53 PM UTC+2, Thomas Kjeldahl Nilsson >>> wrote: >>> >>> Pushing over ssh calls a ruby script, which in case needs to ask the >>> Gitorious/Rails instance on the machine about metadata for the repo being >>> pushed to. In order to do this it pings an html endpoint for that data, >>> hence that result in the log. >>> >>> So test-3/test-3 project/repo is created and accessible in the gitorious >>> frontend? >>> >>> -- >>> Best regards, >>> Thomas Kjeldahl Nilsson, >>> Partner & Programmer, >>> Gitorious AS >>> http://gitorious.com >>> >>> On Thursday, January 17, 2013 at 2:53 PM, Jaco Theron wrote: >>> >>> Hi, >>> >>> Maybe this will help as well. Why would it look for an html page? >>> >>> *In the /var/log/nginx/access.log file I get this line:* >>> >>> 192.168.XX.XX - - [17/Jan/2013:15:43:53 +0200] "GET >>> /test-3/test-3/config?username=jacot HTTP/1.1" 404 168 "-" "-" "-" >>> >>> *and in the /var/log/nginx/error.log*: >>> >>> 2013/01/17 15:43:53 [error] 1761#0: *2 open() " >>> /usr/share/nginx/html/test-3/test-3/config" failed (2: No such file or >>> directory), client: 192.168.XX.XX, server: localhost, request: "GET >>> /test-3/test-3/config?username=jacot HTTP/1.1", host: "192.168.XX.XX" >>> >>> Thank you in advance, >>> Jaco >>> >>> On Thursday, January 17, 2013 3:42:37 PM UTC+2, Jaco Theron wrote: >>> >>> Hi, >>> >>> I am using Eclipse eGit plugin to push, the same I use currently to push >>> to an older Gitorious server >>> >>> Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 3:05:20 PM UTC+2, Thomas Kjeldahl Nilsson >>> wrote: >>> >>> >>> I´m currently out of ideas. Just curious, what is the command you run >>> in your terminal to push? (Scrolled down and didn't see what the actual >>> client side git push command looked like) >>> >>> -t >>> >>> On Thursday, January 17, 2013 at 2:01 PM, Jaco Theron wrote: >>> >>> Hi, >>> >>> I had a look at this link >>> https://groups.google.com/forum/?fromgroups=#!topic/gitorious/uJLVU85Dro8 >>> But I am not sure what to check in Gitorious 3? >>> >>> Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 2:53:37 PM UTC+2, Jaco Theron wrote: >>> >>> Hi, >>> >>> Please advise on anything I could check, I am still struggling with this >>> same issue: >>> >>> I, [2013-01-17 14:53:36#13436] INFO -- : Connection from "192.168.10.27 >>> 62826 22" (jacot): git-upload-pack 'test-3/test-3.git' >>> I, [2013-01-17 14:53:36#13436] INFO -- : Access denied or bad >>> repository path for "jacot": "git-upload-pack 'test-3/test-3.git'" >>> >>> Kind Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 12:30:05 PM UTC+2, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> It seems that somehow my $GITORIOUS_USER is cannot do some stuff on git >>> command? I am not sure >>> >>> *$GITORIOUS_USER:* >>> [gitorious@mars root]$ git jacot >>> fatal: cannot exec 'git-jacot': Permission denied >>> >>> *$ROOT_USER:* >>> [root@mars ~]# git jacot >>> git: 'jacot' is not a git command. See 'git --help'. >>> >>> Although I can check the git command for options, and do a version check: >>> >>> [gitorious@mars root]$ git --version >>> git version 1.7.1 >>> >>> Thank you in advance, >>> Jaco >>> >>> On Thursday, January 17, 2013 12:05:43 PM UTC+2, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> It seems that in this line of the /bin/gitorious file the error gets >>> thrown: >>> >>> args = client.to_git_shell_argument >>> >>> Not sure why yet. >>> >>> Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 11:17:22 AM UTC+2, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> Yes the user does own that directory and the directory is present on the >>> disk. >>> >>> Thank you in advance, >>> Jaco >>> >>> On Thursday, January 17, 2013 9:56:37 AM UTC+2, Thomas Kjeldahl Nilsson >>> wrote: >>> >>> All right - next up, does the git/gitorious user/group own not only the >>> app itself, but also the directory where the git repositories are stored on >>> disk by gitorious? (the dir configured in the"repository_base_path" >>> attribute in gitorious.yml?) And of course that directory needs to be >>> present on disk first. :) >>> >>> cheers, >>> Thomas >>> >>> On Thursday, January 17, 2013 at 8:46 AM, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> No problem :-) >>> >>> Yes, I have added an SSH key, and after page refresh the green tick is >>> visible. It is also the exact same key I still use on an old Gitorious >>> server. >>> >>> Regards, >>> Jaco >>> >>> On Thursday, January 17, 2013 9:40:29 AM UTC+2, Thomas Kjeldahl Nilsson >>> wrote: >>> >>> >>> Just checking off the most obvious possible issues, next: you've added >>> your ssh key correctly, it has the green "check" next to it in the web ui? >>> >>> -t >>> >>> On Thursday, January 17, 2013 at 8:28 AM, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> I should add that this is using the SSH push URL. I will not be using >>> git or http thus only the SSH. >>> Maybe there are some other setting for the SSH that needs to be done? >>> >>> Still getting the error: >>> >>> Access denied or bad repository path for "jacot": "git-upload-pack >>> 'test-1/test-2.git' >>> >>> Regards, >>> Jaco >>> >>> >>> On Wednesday, January 16, 2013 6:47:02 PM UTC+2, Jaco Theron wrote: >>> >>> Hi Thomas, >>> >>> No problem, yes I created it already via the web interface and it does >>> exists. The user jacot is also the creator and administrator, reviewer and >>> committer. >>> >>> Kind Regards >>> Jaco >>> >>> On Wednesday, January 16, 2013 5:27:13 PM UTC+2, Thomas Kjeldahl Nilsson >>> wrote: >>> >>> >>> Just checking something here first: there is a test-1/test-1 >>> project/repo defined in the web interface before you try to push to it, or >>> do you just push without creating the project/repo in the web frontend >>> first? >>> >>> cheers, >>> Thomas >>> >>> >>> On Wednesday, January 16, 2013 at 2:52 PM, Jaco Theron wrote: >>> >>> Hi, >>> >>> I had the wrong port in gitorious.yml for this, change to 80 and now get >>> the error: >>> >>> Access denied or bad repository path for {user} >>> >>> I, [2013-01-16 15:52:01#1968] INFO -- : Connection from "192.168.XX.XX >>> 52492 22" (jacot): git-upload-pack 'test-1/test-2.git' >>> I, [2013-01-16 15:52:01#1968] INFO -- : Access denied or bad repository >>> path for "jacot": "git-upload-pack 'test-1/test-2.git'" >>> >>> Thank you in advance, >>> Jaco T >>> >>> On Wednesday, January 16, 2013 3:28:35 PM UTC+2, Jaco Theron wrote: >>> >>> Hi, >>> >>> When I try to push a project from Eclipse eGit I get the following error: >>> >>> gito...@192.168.xx.xx:test-1/test-2.git: >>> == Gitorious: ========================================================== >>> fatal error >>> ======================================================================== >>> >>> >>> gito...@192.168.xx.xx:test-1/test-2.git: >>> == Gitorious: ========================================================== >>> fatal error >>> ======================================================================== >>> >>> >>> >>> *The log file log/gitorious_auth.log:* >>> >>> I, [2013-01-16 15:23:39#4056] INFO -- : Connection from "192.168.XX.XX >>> 52190 22" (jacot): git-upload-pack 'test-1/test-2.git' >>> F, [2013-01-16 15:23:39#4056] FATAL -- : EOFError end of file reached: >>> /usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread' >>> /usr/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill' >>> /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' >>> /usr/lib/ruby/1.8/timeout.rb:101:in `timeout' >>> /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill' >>> /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' >>> /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' >>> /usr/lib/ruby/1.8/net/http.rb:2028:in `read_status_line' >>> /usr/lib/ruby/1.8/net/http.rb:2017:in `read_new' >>> /usr/lib/ruby/1.8/net/http.rb:1051:in `request' >>> /usr/lib/ruby/1.8/net/http.rb:772:in `get' >>> /projects/gitorious/gitorious/bin/../lib/gitorious/ssh/client.rb:88:in >>> `configuration' >>> /projects/gitorious/gitorious/bin/../lib/gitorious/ssh/client.rb:62:in >>> `real_path' >>> /projects/gitorious/gitorious/bin/../lib/gitorious/ssh/client.rb:76:in >>> `to_git_shell_argument' >>> /usr/local/bin/gitorious:59 >>> >>> Thank you in advance, >>> Jaco T >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- >>> To post to this group, send email to gito...@googlegroups.com >>> To unsubscribe from this group, send email to >>> gitorious+...@googlegroups.com >>> >>> >>> -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com