WebFaction
Community site: login faq
0
1

I have tried following the instructions in the docs and looking through all of the questions and answers here, but it is not working.

From the docs (http://docs.webfaction.com/software/git.html):

  1. I created a git application through the web interface, called "gitprojects".
  2. I then created a new repository (let's call it "clientwebsite.git" for this example).
  3. I added $HOME/webapps/gitprojects/bin to my .bashrc PATH (and logged out and logged back in and verified that it's working by doing "echo $PATH" on the command line and it's in there).
  4. On my local machine, I ran this command: "git clone myusername@myusername.webfactional.com:webapps/gitprojects/repos/clientwebsite.git"

At this point I was prompted for a password, and I entered my SSH password, but I got this error:

Cloning into clientwebsite...
fatal: The remote end hung up unexpectedly

(I also tried the git "default user password" that I entered when I created the app via the web interface, but I know that's not right because authentication failed).

Then I tried doing it through http, so I added a subdomain via the web interface: "gitprojects.myusername.webfactional.com", then I added a website through the web interface that uses the gitprojects app and that domain I set up. I entered "/" for the path. I am now able to access the repo via a web browser (at http://gitprojects.myusername.webfactional.com/clientwebsite.git) -- although it's weird because that url shows me all of the repos I have, not just the "clientwebsite.git" one. Regardless, I went back to the command line on my local machine and tried cloning the repo again, for example:

  • git clone myusername@gitprojects.myusername.webfactional.com:webapps/clientwebsite.git
  • git clone myusername@gitprojects.myusername.webfactional.com:webapps/repos/clientwebsite.git
  • git clone myusername@gitprojects.myusername.webfactional.com:webapps/gitprojects/repos/clientwebsite.git
  • git clone myusername@myusername.webfactional.com:webapps/clientwebsite.git
  • git clone myusername@myusername.webfactional.com:webapps/repos/clientwebsite.git
  • git clone myusername@myusername.webfactional.com:webapps/gitprojects/repos/clientwebsite.git

For all of those except the last one, I got this error:

fatal: <url>/info/refs not found: did you run git update-server-info on the server?

(the <url> in there is whatever url I entered into the git clone command).

The last one, though, gave me this error instead:

Cloning into ....
fatal: The remote end hung up unexpectedly

Ugh... can anyone tell me if I missed a step here? I don't care if I use ssh or http, whichever works (although I'd prefer to use ssh with ssh-keys, but I couldn't find any docs about setting that up so I want to take it one step at a time and get it working normally first).

Thank you.

asked 14 Mar '11, 20:29

jordanlev
2037
accept rate: 100%

Which version of git are you using locally? Both of these should work:

git clone http://gitprojects.username.webfactional.com/clientwebsite.git

git clone username.webfactional.com:webapps/gitprojects/repos/clientwebsite.git

(14 Mar '11, 21:08) ryans ♦♦

Ugh, I am such an idiot -- I mis-spelled the repo name on the server. They both worked -- thank you so much.

(14 Mar '11, 21:22) jordanlev

Yes; you can use the normal SSH-key procedure as described here:

http://docs.webfaction.com/user-guide/access.html#using-ssh-keys

It is also possible to have "passwordless" push-pull over http(s) using a ~/.netrc file:

http://www.mavetju.org/unix/netrc.php

(14 Mar '11, 22:05) ryans ♦♦

Make sure you have the correct spelling of the repository.

As per ryans's comment, the correct commands are:

  • [for HTTP]: git clone http://gitprojects.username.webfactional.com/clientwebsite.git
  • [for SSH]: git clone username.webfactional.com:webapps/gitprojects/repos/clientwebsite.git
permanent link

answered 14 Mar '11, 21:44

jordanlev
2037
accept rate: 100%

edited 14 Mar '11, 22:06

ryans ♦♦
5.0k103960

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

question asked: 14 Mar '11, 20:29

question was seen: 6,678 times

last updated: 15 Mar '11, 01:53

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 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