it´s not work for me, and it´s driving me crazy... i have done all the things that you all said, and still the same problem on push i go deeper and figured out in the gitorious script that fails at this particular line
if client.assure_user_can_write! then it fails... PLZZ SOME ONE HELP ME... THXXXX On Jan 13, 6:20 pm, Telmo <[email protected]> wrote: > Woah.. how could I have missed that.. thanks a lot, works like a charm > now! > > On Jan 13, 3:06 pm, "Johan Sørensen" <[email protected]> wrote: > > > Hi, > > > On Tue, Jan 13, 2009 at 9:01 PM, Telmo <[email protected]> wrote: > > > I put gitorious on debug mode and then run my push: > > > > robertos-mac-pro:gitorious roberto$ git push origin master > > > original_command: "git-receive-pack 'gitorious-configuration/ > > > mainline.git'" > > > user: "Roberto" > > > Errno::ECONNREFUSED Connection refused - connect(2) > > > /usr/lib/ruby/1.8/net/http.rb:560:in `initialize' > > > /usr/lib/ruby/1.8/net/http.rb:560:in `open' > > > /usr/lib/ruby/1.8/net/http.rb:560:in `connect' > > > /usr/lib/ruby/1.8/timeout.rb:53:in `timeout' > > > /usr/lib/ruby/1.8/timeout.rb:93:in `timeout' > > > /usr/lib/ruby/1.8/net/http.rb:560:in `connect' > > > /usr/lib/ruby/1.8/net/http.rb:553:in `do_start' > > > /usr/lib/ruby/1.8/net/http.rb:548:in `start' > > > /usr/lib/ruby/1.8/net/http.rb:440:in `start' > > > /opt/comcast/Gitorious/script/../lib/gitorious/ssh/client.rb:60:in > > > `connection' > > > /opt/comcast/Gitorious/script/../lib/gitorious/ssh/client.rb:35:in > > > `writable_by_user?' > > > /opt/comcast/Gitorious/script/../lib/gitorious/ssh/client.rb:40:in > > > `assure_user_can_write!' > > > /bin/gitorious:50 > > > fatal error > > > fatal: The remote end hung up unexpectedly > > > robertos-mac-pro:gitorious roberto$ > > > > I have verified again the permissions on /repositories/ and it is > > > owned by git. I am not sure where the "Errno::ECONNREFUSED Connection > > > refused - connect(2)" is coming from. > > > When the gitorious binary is invoked (through the key entry in > > authorized_keys) it calls out to the gitorious web application asking > > basically "can this particular user push to this particular repo?" in > > the config/gitorious.yml file there's the following keys: > > # Port the ./script/gitorious script should use: > > gitorious_client_port: 3000 > > # Host the ./script/gitorious script should use: > > gitorious_client_host: localhost > > > Change those two to your hostname/ip and port that the app is running > > on respectively and it'll talk to the right app. > > > JS > > > > On Jan 13, 2:10 pm, Telmo <[email protected]> wrote: > > >> more info: I changed my origin from git:// to git@ since I've read in > > >> a couple of places and was told in the IRC channel that git:// can't > > >> be used for push. > > > >> So I did a : > > > >> robertos-mac-pro:gitorious roberto$ git push [email protected]:/ > > >> repositories/gitorious-configuration/mainline.git > > >> Access denied or bad command > > >> fatal: The remote end hung up unexpectedly > > >> robertos-mac-pro:gitorious roberto$ > > > >> gitorious_auth.log shows: > > > >> I, [2009-01-13 14:10:09#25248] INFO -- : Connection from > > >> "172.24.3.200 52542 22" (Roberto): git-receive-pack '/repositories/ > > >> gitorious-configuration/mainline.git' > > > >> On Jan 13, 11:14 am, Telmo <[email protected]> wrote: > > > >> > other info that may be important: > > > >> > robertos-mac-pro: roberto$ ssh [email protected] > > >> > PTY allocation request failed on channel 0 > > >> > Need SSH_ORIGINAL_COMMAND > > >> > Connection to 172.24.89.110 closed. > > >> > robertos-mac-pro: roberto$ > > > >> > I believe this is the correct behavior when the authorized_keys are > > >> > working. > > > >> > robertos-mac-pro:gitorious roberto$ cat .git/config > > >> > [core] > > >> > repositoryformatversion = 0 > > >> > filemode = true > > >> > bare = false > > >> > logallrefupdates = true > > >> > ignorecase = true > > >> > [remote "origin"] > > >> > url = [email protected]:gitorious-configuration/mainline.git > > >> > fetch = +refs/heads/*:refs/remotes/origin/* > > >> > robertos-mac-pro:gitorious roberto$ > > > >> > On Jan 13, 10:48 am, Telmo <[email protected]> wrote: > > > >> > > Hello, > > > >> > > I am setting up Gitorious for out internal source repository, I've > > >> > > had > > >> > > some issues that so far I've been able to resolve but this one seems > > >> > > to be a difficult one. It seems that I am unable to push to a > > >> > > project. > > > >> > > I have the project created (gitorious-configuration) and I've > > >> > > verified > > >> > > that the directory and files exists and are owned by the user git: > > > >> > > [r...@proteus mainline.git]# ls -la > > >> > > total 32 > > >> > > drwxr-x--- 5 git git 4096 2005-06-14 17:14 . > > >> > > drwxr-x--- 3 git git 4096 2005-06-14 17:14 .. > > >> > > -rw-r--r-- 1 git git 66 2005-06-14 17:14 config > > >> > > -rw-r--r-- 1 git git 9 2005-06-14 17:14 description > > >> > > -rw-r--r-- 1 git git 0 2005-06-14 17:14 git-daemon-export-ok > > >> > > -rw-r--r-- 1 git git 23 2005-06-14 17:14 HEAD > > >> > > lrwxrwxrwx 1 git git 12 2005-06-14 17:14 hooks -> ../../.hooks > > >> > > drwxr-xr-x 2 git git 4096 2005-06-14 17:14 info > > >> > > drwxr-xr-x 4 git git 4096 2005-06-14 17:14 objects > > >> > > drwxr-xr-x 4 git git 4096 2005-06-14 17:14 refs > > > >> > > I have git-deamon running (not in deamon mode for debugging > > >> > > purpouses) > > > >> > > [...@proteus Gitorious]$ RAILS_ENV=production script/git-daemon > > >> > > 2005-06-14 17:27:04 [22654] Listening on 0.0.0.0:9418... > > >> > > Invalid request from 172.24.3.200: \q > > > >> > > I did set up the remote repo: > > > >> > > git remote add origin [email protected]:gitorious-configuration/ > > >> > > mainline.git > > > >> > > but when I try a push I get: > > > >> > > robertos-mac-pro:gitorious roberto$ git push origin master > > >> > > fatal error > > >> > > fatal: The remote end hung up unexpectedly > > >> > > robertos-mac-pro:gitorious roberto$ > > > >> > > curious thing is that I don't see the connection to the git-daemon > > >> > > but > > >> > > the daemon is listening: > > > >> > > robertos-mac-pro:gitorious roberto$ telnet 172.24.89.110 9418 > > >> > > Trying 172.24.89.110... > > >> > > Connected to 172.24.89.110. > > >> > > Escape character is '^]'. > > >> > > \q > > >> > > Connection closed by foreign host. > > > >> > > Can someone point me in the right direction as to how to > > >> > > troubleshoot/ > > >> > > fix this issue? > > > >> > > Thank you very much. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Gitorious" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gitorious?hl=en -~----------~----~----~----~------~----~------~--~---
