|
[Sponsors] |
July 5, 2010, 11:28 |
OpenFOAM 1.7.x git problem
|
#1 |
Member
Oliver Lauer
Join Date: Mar 2009
Location: Coburg
Posts: 57
Rep Power: 17 |
Hello guys,
as 1.7.x now is available as git source (see http://www.openfoam.com/download/git.php ) I tried to get source files from there. But my result is: git clone http://github.com/OpenCFD/OpenFOAM-1.7.x.git Initialized empty Git repository in /home/OpenFOAM/OpenFOAM-1.7.x/.git/ got 28a9bc1de4a03eeda021adb6c528c4ca755a804a walk 28a9bc1de4a03eeda021adb6c528c4ca755a804a got aff6cfa058687c5827c80b4aa4f7ed2d6ca83d5e got 1f3faad7168d9bc63331e9a320a1575ecba1543c walk 1f3faad7168d9bc63331e9a320a1575ecba1543c Getting alternates list for http://github.com/OpenCFD/OpenFOAM-1.7.x.git Getting pack list for http://github.com/OpenCFD/OpenFOAM-1.7.x.git Getting index for pack dd4ad2b185c4f91aeba18b3b1ac3fedd57bbd70c Getting index for pack 2758df1ccc1415152fa9b4bcb7b9a081c6c03cf6 Getting pack dd4ad2b185c4f91aeba18b3b1ac3fedd57bbd70c which contains 2798a1bcf4bd2fde806d6d7ff29d4b448aadf137 error: Unable to get pack file http://github.com/OpenCFD/OpenFOAM-1...d57bbd70c.pack transfer closed with 46747107 bytes remaining to read error: Unable to find 2798a1bcf4bd2fde806d6d7ff29d4b448aadf137 under http://github.com/OpenCFD/OpenFOAM-1.7.x.git Cannot obtain needed blob 2798a1bcf4bd2fde806d6d7ff29d4b448aadf137 while processing commit 1f3faad7168d9bc63331e9a320a1575ecba1543c. fatal: Fetch failed. It seems that there is something missing somewhere. Any ideas what I could do? Thanks for any help Oliver |
|
July 6, 2010, 03:46 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
If you can use the git:// protocol (at least for your initial fetch) this problem should not occur. If you can't use the git protocol due to a corporate firewall, you'll need a ssh tunnel. Otherwise we might need to figure out yet another way for you to get at the source. |
||
July 6, 2010, 05:13 |
|
#3 |
Member
Oliver Lauer
Join Date: Mar 2009
Location: Coburg
Posts: 57
Rep Power: 17 |
Hello Mark,
thank you for your quick response. GIT protocol is blocked by the corporate firewall but SSH could be an option. Port 22 is also blocked but I can connect to github.com on port 443. Is there anything else I need to know? In the moment git clone git+ssh://github.com/OpenCFD/OpenFOAM-1.7.x.git ends with ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly .ssh/config contains Host github.com User git HostName github.com Port 443 Thank you for any further help Best regards Oliver |
|
July 6, 2010, 05:51 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
I have this, Host github-git Port 2203 HostName localhost But still redirect via port 22: ssh -N -L 2203:github.com:9418 someMachine AFAIK you don't need the "User git" in the .ssh/config if you are simply fetching from another git repository, only if you are pushing to your own. In the .git/config, the corresponding entry looks like this: [remote "github-git"] url = git://localhost:2203/OpenCFD/OpenFOAM-1.7.x.git fetch = +refs/heads/*:refs/remotes/github-git/* I hope any of this help further. If nothing else works, you can fetch from somewhere else (eg, at home) and move across a bundle via usb-stick. Another alternative could be to have the repo.or.cz site simply mirror the github repo. The OpenFOAM-1.7.x would be a fork from OpenFOAM-1.6.x, and then set to mirror the github. |
||
July 6, 2010, 06:44 |
|
#5 |
Member
Oliver Lauer
Join Date: Mar 2009
Location: Coburg
Posts: 57
Rep Power: 17 |
Hmm, it seems that ssh works only if you are a registered git user as you need a ssh code pair. Anonymous read access (git clone) only works with git or http protocol .
So I will try to get it at home with a live linux cd, but I think I won't be the only one having this problem behind a corporate firewall. |
|
July 15, 2010, 07:15 |
|
#6 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
||
July 15, 2010, 08:10 |
|
#7 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
This issue seems to be related: http://support.github.com/discussion...-with-git-1642 |
||
July 15, 2010, 08:45 |
|
#8 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
thanks for this hint. Using a newer git might be be possible. I have to check this. Regards Bastian |
||
July 16, 2010, 03:09 |
|
#9 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
This is indeed the solution. Starting somewhere fresh: Code:
$ mkdir /tmp/git-test $ cd /tmp/git-test $ git init $ git remote add github http://github.com/OpenCFD/OpenFOAM-1.7.x.git Code:
$ git --version git version 1.6.4.2 $ git fetch github walk a7b9d1f5aedf70324c6147577ead05068c415d9a walk 16e22e94a9df524af03f4f75c097ff3a19abc821 Getting alternates list for http://github.com/OpenCFD/OpenFOAM-1.7.x.git Getting pack list for http://github.com/OpenCFD/OpenFOAM-1.7.x.git Getting index for pack dd4ad2b185c4f91aeba18b3b1ac3fedd57bbd70c Getting index for pack 2758df1ccc1415152fa9b4bcb7b9a081c6c03cf6 Getting index for pack e0edc0ec1b175dfec482c608e13cbf44db2e4526 Getting index for pack e9fc5e4f1a4de529d3a709982cff59d9918cd18d Getting pack dd4ad2b185c4f91aeba18b3b1ac3fedd57bbd70c which contains 2798a1bcf4bd2fde806d6d7ff29d4b448aadf137 ^C On my openSUSE system, I added the corresponding download repository (http://download.opensuse.org/reposit...l:/tools:/scm/) and updated my git. With the newer git Code:
$ git --version git version 1.7.1 $ git fetch github remote: Counting objects: 36653, done. remote: Compressing objects: 100% (13535/13535), done. remote: Total 36653 (delta 22741), reused 36315 (delta 22441) Receiving objects: 100% (36653/36653), 45.40 MiB | 3.44 MiB/s, done. Resolving deltas: 100% (22741/22741), done. From http://github.com/OpenCFD/OpenFOAM-1.7.x * [new branch] master -> github/master My conclusion: upgrading to a new git should solve your problems. |
||
July 17, 2010, 02:56 |
|
#10 |
New Member
pop
Join Date: Feb 2010
Posts: 13
Rep Power: 16 |
Mark.
Thank you very much. I had the same problems of Olauer, but it now was resloved by using Git 1.7.1. |
|
July 27, 2010, 11:50 |
|
#11 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Our admin now did an update to git here, too:
Code:
user@host:/home/user> git --version git version 1.7.2 Code:
user@host:/home/user> git clone http://github.com/OpenCFD/OpenFOAM-1.7.x.git Cloning into OpenFOAM-1.7.x... remote: Counting objects: 36766, done. remote: Compressing objects: 100% (13611/13611), done. error: RPC failed; result=18, HTTP code = 200MiB | 152 KiB/s Regards Bastian |
|
July 27, 2010, 19:32 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Uhm, has anyone tried to simply download the git version directly from github via web browser? This link will give you a choice to either download as zip or tar.gz: http://github.com/OpenCFD/OpenFOAM-1...rchives/master Then, if you really need to use git for posterior minor updates, I suppose that adapting the tutorial that Olesen wrote for merging OpenFOAM git versions should do the trick! Best regards, Bruno
__________________
|
|
July 28, 2010, 12:33 |
|
#13 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Regards Bastian |
||
July 28, 2010, 16:43 |
|
#14 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
|
||
July 28, 2010, 16:56 |
|
#15 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
One machineA without any firewall issues (eg, at home): Code:
git clone --no-checkout git://github.com/OpenCFD/OpenFOAM-1.7.x.git Then tar/zip it onto USB stick and transport elsewhere. On machineB that has the firewall issues: Untar the file. Get everything out of the git repo: Code:
git checkout -f HEAD Either add in the http:// protocol as a second remote and fetch it: Code:
git remote add github http://github.com/OpenCFD/OpenFOAM-1.7.x.git git fetch github OR else: simply change the transport protocol for the previously fetched 'origin' by editing the .git/config file in the OpenFOAM-1.7.x directory and then re-fetch again. Also note that the 1.7.x repository shares history with 1.6.x, so you can also recycle most of the git contents from there. |
||
July 29, 2010, 03:47 |
|
#16 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Thanks Mark,
I will try your proposal. However, I still don't understand the problems that github has in combination with http checkout....? Regards Bastian |
|
July 29, 2010, 04:43 |
|
#17 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Note that the workaround only works when the total size of packs that you fetch later is still relatively small (without anyone actually knowing how small it has to be). |
||
July 29, 2010, 06:59 |
|
#18 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Edit I simply did it: Use http://repo.or.cz/r/OpenFOAM-1.7.x.git to checkout using http. This is just a mirror of git://github.com/OpenCFD/OpenFOAM-1.7.x.git. It worked fine for me. Regards Bastian Last edited by bastil; July 29, 2010 at 08:09. |
||
July 29, 2010, 07:36 |
|
#19 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
git pull problem | openfoam_user | OpenFOAM Installation | 1 | March 9, 2010 03:37 |
Urgent Git problem updating OF15x | thomasduerr | OpenFOAM Bugs | 4 | July 8, 2009 08:07 |
Urgent Git problem updating OF15x | thomasduerr | OpenFOAM | 0 | July 7, 2009 12:36 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
Problem running paraFoam on OpenFOAM 1.5 | sonny | OpenFOAM | 3 | June 6, 2009 21:24 |