-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
connectivity issues with github. https silently fails but SSH works fine #390
Comments
What Git for Windows version is this? And what does |
sorry i forgot to mention it was the latest 2.5.2 release 2.
|
128 most likely means: access violation... |
well given it seems to be specific to only me and SSH is working, i'll close this. thanks for the prompt replies. |
Indeed, this is what I got: $ git version
git version 2.5.2.windows.2
$ git clone https://github.com/19379/wsh_marc2003.git test
Cloning into 'test'...
remote: Counting objects: 702, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 702 (delta 14), reused 0 (delta 0Receiving objects: 100% (702/702)), pack-reused 670
Receiving objects: 100% (702/702), 1.82 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (433/433), done.
Checking connectivity... done. However, I think it is a mistake to leave it at that. If you have that problem, so will others. This is your chance to contribute to the project. |
i must confess i forgot to mention something else rather important. before using v2.5.2, i used this package of 1.9.5. this works fine over https on the same pc/internet connection. https://github.com/sheabunge/GitPortable/releases/tag/v1.9.5-devtest.2 perhaps i could try some earlier 2.x builds and see if they work? |
And since I cannot reproduce, I fear that you will have to hunt mostly on your own. This is how I would start investigating, if I could reproduce:
At some point, I would expect that the location of the crash could be pin-pointed to one particular line. This should be sufficient information to guess the true cause of the access violation. |
right, i will try the above but it won't be for a few weeks. i don't have admin rights on the pc i use so i can't run any installer. i'm currently building my own pc but it won't be ready until the end of the month. |
Did you know that you can unpack the SDK installer with |
cool. i was simply put off by the filename. i'll give that a go tonight. edit: doh, just noticed 7z in the filename. i'll blame not being awake yet... or something. |
Very good. I will help you as much as I can, of course. If you run into troubles, just add a comment here. |
can i ask how long this takes to build? there's no way i can use the pc i have connectivity issues with because it's a thin client with the weakest CPU known to man. even browsing the web is a fairly painful experience on it!! i do have access to a decent spec pc at my local library but time there is limited and given how big this project is, i can imagine it taking some time. it has a quad core i5 if that helps. also, will i get a choice of what to build when running the make file? i only want to build the 32bit portable install. |
Hmm. Given that I cannot reproduce this issue on any machine I have access to, I am rather doubtful that you can use that machine to investigate: simply switching the machine will make the symptom go away.
IIRC it will download a fair amount of data, like around 250MB. Depending on your machine, the build may take a long time; it takes around 5-20 minutes here, I guess, I never timed it precisely. But given your account, I imagine that it will take substantially longer on your machine to build (if you can clone the Git repository itself at all).
There is no choice, but it already builds what you need: the Git executables. You do not even need a portable install. In fact, you only need a rebuilt |
i'm only intending to use the other pc to build. i'd obviously be testing it on the problematic pc.
i did notice that line near the end of the installer batch file. it's no problem for me to clone the repositories using SSH. |
That makes a lot of sense.
That should do, indeed. |
i managed to build but still no output and i get the same https://github.com/19379/git/commit/78c874a6f9eef8c84ae8490f23ba85e4ddd8c2de i just copied the new |
Okay, this establishes that it is not similar to the In addition to this change, you could also instrument the I have a hunch that it is in this line, but it could also be this one. The exit code should really be set here. |
^ i'm sorry, i don't understand what you want me to do?? also, i added a comment in reply to yours which you probably got a notification for... |
I meant to suggest instrumenting the code, like so: https://github.com/19379/git/pull/1 then rebuilding |
Did you copy the Ah, slaps-his-head, bummer! The |
That is to be expected, because you built it with debug symbols. So now we're getting somewhere! Oh, but I forgot to put in |
Also, I am pretty certain that the |
is that link right? it's pointing at a line which you've already modified. i've just built a fresh copy with fflush added but won't be able to test until i get home later. |
Bah, copy-paste error. This is the location I meant. |
is this ok?
|
Yep, I think that $ ./git-remote-https.exe
error: remote-curl.c:961: here
error: remote-curl: usage: git remote-curl <remote> [<url>] |
(Assuming that it does not start correctly, could you verify the hunch that it misses a |
this looks potentially interesting. https://cloud.githubusercontent.com/assets/12451008/9976938/08179e3c-5eed-11e5-93b4-496a5c949415.png remember earlier when i said i was running windows 7 embedded. edit: earlier in the thread, not today! |
I uploaded the picture here ;-) The problem is the For the record, this is what I get: $ ls /mingw32/libexec/git-core/*.dll
/mingw32/libexec/git-core/edit.dll*
/mingw32/libexec/git-core/libatomic-1.dll*
/mingw32/libexec/git-core/libbz2-1.dll*
/mingw32/libexec/git-core/libcares-2.dll*
/mingw32/libexec/git-core/libcharset-1.dll*
/mingw32/libexec/git-core/libcurl-4.dll*
/mingw32/libexec/git-core/libeay32.dll*
/mingw32/libexec/git-core/libexpat-1.dll*
/mingw32/libexec/git-core/libffi-6.dll*
/mingw32/libexec/git-core/libgcc_s_dw2-1.dll*
/mingw32/libexec/git-core/libgmp-10.dll*
/mingw32/libexec/git-core/libgmpxx-4.dll*
/mingw32/libexec/git-core/libgnutls-30.dll*
/mingw32/libexec/git-core/libgomp-1.dll*
/mingw32/libexec/git-core/libgomp-plugin-host_nonshm-1.dll*
/mingw32/libexec/git-core/libhogweed-4-1.dll*
/mingw32/libexec/git-core/libiconv-2.dll*
/mingw32/libexec/git-core/libidn-11.dll*
/mingw32/libexec/git-core/libintl-8.dll*
/mingw32/libexec/git-core/libminizip-1.dll*
/mingw32/libexec/git-core/libnettle-6-1.dll*
/mingw32/libexec/git-core/libp11-kit-0.dll*
/mingw32/libexec/git-core/libpcre-1.dll*
/mingw32/libexec/git-core/librtmp-1.dll*
/mingw32/libexec/git-core/libssh2-1.dll*
/mingw32/libexec/git-core/libssp-0.dll*
/mingw32/libexec/git-core/libstdc++-6.dll*
/mingw32/libexec/git-core/libsystre-0.dll*
/mingw32/libexec/git-core/libtasn1-6.dll*
/mingw32/libexec/git-core/libtre-5.dll*
/mingw32/libexec/git-core/libvtv_stubs-0.dll*
/mingw32/libexec/git-core/libvtv-0.dll*
/mingw32/libexec/git-core/libwinpthread-1.dll*
/mingw32/libexec/git-core/ssleay32.dll*
/mingw32/libexec/git-core/tcl86.dll*
/mingw32/libexec/git-core/tk86.dll*
/mingw32/libexec/git-core/zlib1.dll* after installing a fresh |
(Note in particular the presence of This is actually expected, as per these lines in |
i had 0 dlls and now i know why.... it's because i'm using a FAT32 formatted thumb drive. installing to NTFS works fine. the link or copy does not copy when the link fails. |
That's good to know, thanks! I will try to reproduce and if I can, I think I will be able to fix it. Thanks for your persistence with this ticket! |
Oops, I think I found it: the @19379 would you maybe able to test by unpacking the portable Git using 7-Zip, editing the |
yes, that fixes it. i think we can close this now! |
Not so fast ;-) The fix is not committed yet... Care to open a Pull Request? 😀 |
done. edit: just realised i could have named it better. i didn't reference the actual modified file. |
Thanks! |
@19379 no worries about the PR! It helped a lot because I only had to adjust it slightly to resolve the issue. Thank you so much! |
So what exactly is the purpose of a portable version if it requires manual "installation" steps? I used to be able to just extract the portable and deploy it everywhere, now I get things like this when starting Git bash:
If Git Portable now depends on its path or modifies files outside the Git folder, then it's not portable. If what the scripts does is the same for any path you put it in and doesn't modify files outside its own folder, then why isn't it done once, before packaging, instead of relying on users doing it? TBH what the script does it pretty much gibberish to me so if someone cares to explain, that would be helpful. I deploy Git Portable in a network share, so there's at least 3 paths where it's available: local path on the server (S:\tools\git2), network path on the server (\whatever.domain\tools\git2), and local path when synced to the workstation (X:\whatever\path\they\use\tools\git2). Besides, they're also pushed to Jenkins nodes with almost identical paths but different drive letters in some cases. These I could deploy by simply robocopy'ing them to any workstation and I obviously ain't gonna run scripts on every one of them. What do I do now? |
I fail to see the relationship with "connectivity issues with github". Wrong ticket? |
No, I don't think so. The second half is about this "post-install" thingie. But I can open a new ticket if you wish. |
Oh, come on. It is not like you are doing me a favor here. You are actually not doing yourself a favor, either, by dragging this out. How is your concern possibly related to connectivity issues with GitHub? It is not at all related to that, and you are intelligent enough to realize that. And you are also smart enough to realize that a bug tracker has to be well organized in order to be effective. Discussing unrelated things in the same ticket (even if there might be some overlap in the code that is touched by those discussions) is doing everybody a disservice. |
A simple "yes, please" will do next time. |
You still pretend that you are doing me a favor. |
Nope, I didn't consider my part a favor, the "please" part wasn't about "favors", only about human decency. I wasn't just randomly picking an issue to whine about a random thing. The release notes about 2.6.0 say "Portable Git's README is now clearer about the need to run post-install.bat when unpacking manually". This text links to pr 83, which is merely a few comments and it explains the changes by linking to this issue. So I came to this issue to explain what kind of problems this change has caused. But I even said that I can open a new ticket if it's preferable. Then you come and tell me it's not relevant (???), then 2 paragraphs of blah-blah about how I should treat you and your assaults to get a response out of your highness that's different from GTFO. Way to go, above and beyond. |
You know, between replying to your rants, I actually also do real work. And I am getting a bit annoyed, I have to admit, that you still keep doing what you are doing, despite my clear indications that it is inappropriate. |
(And yes, I also indicated what would be appropriate instead, so I was even constructive in my criticism.) |
The builds are now complaining about a trailing whitespace introduced in git-for-windows#387. Not sure how it passed those builds, but this fixes it.
the cursor flashes for a few seconds then nothing. i tried to enable GIT_TRACE but i don't think it's helping...
i can connect to github using curl...
and finally, i can clone with SSH just fine...
given SSH works i don't have any real issue but i'm really curious about no errors being reported.
just to muddy the waters a little, the pc is configured to use a proxy but that's only via group policy/Internet Explorer and a PAC file. any application configured with no proxy can access/download anything they like. although browsing in IE is restricted, github is an allowed site and because i don't have any issues with curl or SSH i don't think it's that.
OS: windows 7 embedded 32bit. maybe an issue with not having a full fat OS? i'm totally clueless about this sort of thing!!
The text was updated successfully, but these errors were encountered: