You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had problems getting the example to run in my own code, constantly getting error authenticating:. Checked out the project (revision 5d371ae) and ran the tests (quit after finishing the Clone tests).
Clone
✓ can clone with http (4566ms)
✓ can clone with https (4469ms)
1) can clone with ssh
✓ can clone with ssh while manually loading a key (13553ms)
✓ can clone with git (3616ms)
^C
15 passing (32s)
1 failing
1) Clone can clone with ssh:
Error: error authenticating:
This fails on both Ubuntu 14.10 and on OS X 10.10.
Hey @fatso83 I'm not entirely sure why that's failing for you. I use Linux as my primary OS and I've never had a clone test failure like that. You'll also notice we continuously test on Travis-CI which is also Linux and the tests pass fine there.
I'd look more into your system setup, since agents can be tricky to get right. I'm hesitant to blame NodeGit at this point.
@maxkorp : actually that was a good point, as I had just checked that the advertised socket was present. I thought explicitly running ssh-agent set up the environment variable for me:
printenv|grep SSH_AUTH_SOCK # gave me empty on Linux, was set on OS X
Anyway, after setting the environment variable on Linux (and checking it was present by echoing it) I got the same error message as on OS X.
1) Clone can clone with ssh:
Error: error authenticating
Any way I can check this is just my environment pulling tricks? I tried this on two different setups, so I thought I had it verified, but if the CI tests still run ...
I just pulled latest and tried again with my machine, and it works as expected. Unfortunately unless we can reproduce a bug in our CI environment, we have to chalk this up to environmental error.
Ensure you have something like this in your enivornment runtime configuration file, like .bashrc:
Activity
fatso83 commentedon Jan 30, 2015
Actually the error on Linux is more verbose:
I have made sure to start
ssh-agentand verified at socket has been created atSSH_AUTH_SOCK.tbranyen commentedon Jan 30, 2015
Hey @fatso83 I'm not entirely sure why that's failing for you. I use Linux as my primary OS and I've never had a clone test failure like that. You'll also notice we continuously test on Travis-CI which is also Linux and the tests pass fine there.
I'd look more into your system setup, since agents can be tricky to get right. I'm hesitant to blame NodeGit at this point.
maxkorp commentedon Jan 30, 2015
And you've verified that the environment variable SSH_AUTH_SOCK is set?
fatso83 commentedon Jan 30, 2015
@maxkorp : actually that was a good point, as I had just checked that the advertised socket was present. I thought explicitly running
ssh-agentset up the environment variable for me:Turned out I was wrong
Anyway, after setting the environment variable on Linux (and checking it was present by echoing it) I got the same error message as on OS X.
Any way I can check this is just my environment pulling tricks? I tried this on two different setups, so I thought I had it verified, but if the CI tests still run ...
tbranyen commentedon Feb 2, 2015
I just pulled latest and tried again with my machine, and it works as expected. Unfortunately unless we can reproduce a bug in our CI environment, we have to chalk this up to environmental error.
Ensure you have something like this in your enivornment runtime configuration file, like
.bashrc:Please open a PR with a failing test case, and we'll be happy to work with you to resolve.
threeq commentedon Jan 18, 2017
@tbranyen
perfect! It's work!
arrowing commentedon Nov 25, 2019
@tbranyen good job!