Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Windows with cygwin/msysgit #21

Open
bkniffler opened this issue Sep 22, 2014 · 2 comments
Open

Running on Windows with cygwin/msysgit #21

bkniffler opened this issue Sep 22, 2014 · 2 comments

Comments

@bkniffler
Copy link

Hi,

I've been running this module on my dev machine (mac OS) without an issue. But when trying to run it on my windows production machine, I'm running in to problems.

Basically, I've tried this with msysgit (1.9.4) and cygwin (1.8.1.2). With cygwin, I've set the path env variable to the cygwin bin dir, so all necessary executables were available. With msysgit, I've set env paths to msysgit/bin and msysgit/libexec/git-core dirs. The results were always the same.

Also, I've tried versions 0.2.1 and 0.2.0 of this module, with the same results.

Git pull is not an issue, this works great. But as soon as i push, I'm getting this (using longjohn for extended stack trace):

Server:

LOG:  Got a PUSH call for myrepo.git
LOG:  demo is trying to push on repo: myrepo ...
LOG:  demo Successfully did a push on myrepo

D:\node\AppHost2\node_modules\longjohn\dist\long
        throw e;
              ^
Error: read ECONNRESET
    at errnoException (net.js:904:11)
    at onread (net.js:558:19)

    at fireErrorCallbacks (net.js:439:15)
    at Socket._destroy (net.js:475:3)
    at onread (net.js:558:10)

Client:

Pushing to http://demo:demo@xxx.com:7000/myrepo.git
POST git-receive-pack (658 bytes)
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I've no clue what to try now. Have you successfully run this module on a windows environment? Do you have any idea?

@bkniffler bkniffler changed the title Running on windows Running on Windows with cygwin/msysgit Sep 22, 2014
@flamz3d
Copy link

flamz3d commented Nov 24, 2014

had the same issue, and temporarly resolved it by catching the exception with :

process.on('uncaughtException', function (err) {
console.log(err);
});

@Pat-Relentless
Copy link

Also having the same issue on Windows... Same error except I am getting an HTTP code of 401. I've been able to debug and the error coming from 'onread' is an EOF exception, it's trying to read past the bytes available in the stream. Why and how to fix I don't know...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants