Ed Simons's picture

Hi,

I have cloned the helloworld example, made a few commits to it and am trying but failing to push my changes. Hopefully the following info is useful.

esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ git push -v origin master
Pushing to git://192.168.100.141/git/helloworld.git
fatal: unable to connect to 192.168.100.141:
192.168.100.141[0: 192.168.100.141]: errno=No error

esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ git remote -v
origin  git://192.168.100.141/git/helloworld.git (fetch)
origin  git://192.168.100.141/git/helloworld.git (push)

Should it report the following instead?

origin ssh://192.168.100.141/git/helloworld.git (push)

I have started ssh on my revision-control appliance and can sometimes ssh into it, but I do not get consistent results.

esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ ssh ed-simons@192.168.100.141:22
ssh: connect to host 192.168.100.141:22 port 22: Bad file number

esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ ping 192.168.100.141

Pinging 192.168.100.141 with 32 bytes of data:
Reply from 192.168.100.141: bytes=32 time=139ms TTL=255
Reply from 192.168.100.141: bytes=32 time=148ms TTL=255
Reply from 192.168.100.141: bytes=32 time=159ms TTL=255
Reply from 192.168.100.141: bytes=32 time=176ms TTL=255

Ping statistics for 192.168.100.141:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 139ms, Maximum = 176ms, Average = 155ms

I am running the appliance on VMWare Player on my laptop and also using the MINGW32 Bash shell on Windows for the same laptop. I'm doing this as a practice run before rolling out git on to a dedicated server and training other software developers on how to use git.

So far, this is the only problem I have run into.

Regards,

Ed

Forum: 
Jeremy Davis's picture

And while better late than never, I'm not sure in this instance... I don't have much experience with git other than using GitHub so have no idea really.

But from reading your post, before anything else I'd be wondering why SSH connection is so flakey!? I'd be trying to fix that first because otherwise you might spend heaps of time mucking around with git only to find it is some basic networking issue!? Not usre if it's likely but perhaps try VirtualBox as your VM host instead and see whether that respolves the issue. 

Ed Simons's picture

Hi,

Thanks for replying. I solved the problem quite a while ago now so can't quite remember the details. It might have been that I was trying to push to a repository using the git protocol. Once I started using ssh everything started workking properly.

Regards,

Ed


Add new comment