OpenVZ Forum


Home » General » Support » Can't get GIT tree to work
Can't get GIT tree to work [message #2659] Fri, 14 April 2006 04:26 Go to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
git-clone http://git.openvz.org/pub/linux-2.6-openvz openvz

pulls down pack....

walk 1b3f63659bd353ae460c35f5793a9fd46cc95014
walk f6df144cca19cc60dda6dcce65d236b70cc46494
walk 392e2f651c8a83484116a407a9f121e534c22b5a
walk 8d067623adf119081b7a2683cdc6ee90eb8a70b2
walk 04414013bbda644b65537e73f1dacb2821b36811
error: Couldn't get http://git.openvz.org/pub/linux-2.6-openvz/refs/tags/v2.6.15 -rc5 for tags/v2.6.15-rc5
Couldn't resolve host 'git.openvz.org'
error: Could not interpret tags/v2.6.15-rc5 as something to pull

I pulled and rebuilt my git so I am running the most current version.

If I put http://git.openvz.org/pub/linux-2.6-openvz/refs/tags/v2.6.15 -rc5 in my browser I can get the file.

Maybe some bug with http vs git transport?
Re: Can't get GIT tree to work [message #2661 is a reply to message #2659] Fri, 14 April 2006 06:49 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

does ping git.openvz.org works for you?
I wonder, how could it happen that it can't resolve it... :/
When Kir arrives I will ask him to check DNS settings.

Thanks a lot!


http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2668 is a reply to message #2661] Fri, 14 April 2006 13:39 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
I can ping without problem. I can even use the browser to get the file.

Looking at it again this morning, see the space after v2.615 and before -rc5 in the error message? I bet that's the problem.
Re: Can't get GIT tree to work [message #2670 is a reply to message #2668] Fri, 14 April 2006 16:55 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

GIT will be moved soon to a separate VPS and its resources will be increased. it most likely failed due to resource limitations.
thanks for report.


http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2671 is a reply to message #2670] Fri, 14 April 2006 17:14 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
The git daemon is supposed to use minimal resources for allowing read only access.

http://www.kernel.org/pub/software/scm/git/docs/git-daemon.h tml
Re: Can't get GIT tree to work [message #2672 is a reply to message #2671] Fri, 14 April 2006 17:20 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Yeah, sure, but it still hit the default settings which Kir set as was reported by kernel.
Now should work fine.


http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2675 is a reply to message #2672] Fri, 14 April 2006 18:07 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
Still not working with same error:
error: Couldn't get http://git.openvz.org/pub/linux-2.6-openvz/refs/tags/v2.6.13 -rc1 for tags/v2.6.13-rc1
Couldn't resolve host 'git.openvz.org'
error: Could not interpret tags/v2.6.13-rc1 as something to pull
[root@jonsmirl home]#


I also tried to pull it down as an update to the vanilla Linus tree.

[root@jonsmirl openvz]# cg update openvz
Fetching head...
Fetching objects...
error: Failed connect to git.openvz.org:80; No such file or directory (curl_result = 7, http_code = 0, sha1 = 3d7d24fd31e66c60da2cfe8cf60c5a36ac121872)
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting index for pack db73d9912f4906f547c2d358f5eac732944ebeae
Getting index for pack c5bc5e29cf46cf18c8d26406de439ef53748709b
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
error: Unable to find fbac3811dc4d8cc226d1e938c84cf8ab6b6db3c8 under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed tree fbac3811dc4d8cc226d1e938c84cf8ab6b6db3c8
while processing commit 95a3d03493ea15446b866dd4cf4c52d929266199.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/4e/3ba559 7879a1abde148b332b01c32acdedc15c
progress: 376 objects, 1643473 bytes
cg-fetch: objects fetch failed
[root@jonsmirl openvz]#
Re: Can't get GIT tree to work [message #2691 is a reply to message #2675] Mon, 17 April 2006 08:44 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

We have moved git to a separate VE; can you please try if it works now?

Although it works (and always worked) for me, so if you will still have any issues, please report and we will try to investigate that.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2702 is a reply to message #2691] Mon, 17 April 2006 14:29 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
I'm still get the same errors. This will check your repo for errors. You may have an error that is only visible on a clone and does not impact daily use.

git-fsck-objects --unreachable HEAD $(cat .git/refs/heads/*)
Re: Can't get GIT tree to work [message #2703 is a reply to message #2702] Mon, 17 April 2006 15:39 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
$ cg-clone http://git.openvz.org/pub/linux-2.6-openvz
defaulting to local storage area
Fetching head...
Fetching objects...
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting index for pack db73d9912f4906f547c2d358f5eac732944ebeae
Getting index for pack c5bc5e29cf46cf18c8d26406de439ef53748709b
Getting pack c5bc5e29cf46cf18c8d26406de439ef53748709b
which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
progress: 2279 objects, 113470727 bytes
Fetching tags...
Missing tag v2.6.11-tree... retrieved
Missing tag v2.6.11... retrieved
Missing tag v2.6.12-rc2... retrieved
Missing tag v2.6.12-rc3... retrieved
Missing tag v2.6.12-rc4... retrieved
Missing tag v2.6.12-rc5... retrieved
Missing tag v2.6.12-rc6... retrieved
Missing tag v2.6.12... retrieved
Missing tag v2.6.13-rc1... retrieved
Missing tag v2.6.13-rc2... retrieved
Missing tag v2.6.13-rc3... retrieved
Missing tag v2.6.13-rc4... retrieved
Missing tag v2.6.13-rc5... retrieved
Missing tag v2.6.13-rc6... retrieved
Missing tag v2.6.13-rc7... retrieved
Missing tag v2.6.13... retrieved
Missing tag v2.6.14-rc1... retrieved
Missing tag v2.6.14-rc2... retrieved
Missing tag v2.6.14-rc3... retrieved
Missing tag v2.6.14-rc4... retrieved
Missing tag v2.6.14-rc5... retrieved
Missing tag v2.6.14... retrieved
Missing tag v2.6.15-rc1... retrieved
Missing tag v2.6.15-rc2... retrieved
Missing tag v2.6.15-rc3... retrieved
Missing tag v2.6.15-rc4... retrieved
Missing tag v2.6.15-rc5... retrieved
Missing tag v2.6.15-rc6... retrieved
Missing tag v2.6.15-rc7... retrieved
Missing tag v2.6.15... retrieved
Missing tag v2.6.16-rc1... retrieved
Missing tag v2.6.16-rc2... retrieved
Missing tag v2.6.16-rc3... retrieved
Missing tag v2.6.16-rc4... retrieved
Missing tag v2.6.16-rc5... retrieved
Missing tag v2.6.16-rc6... retrieved
Missing tag v2.6.16... retrieved
New branch: f7d9ce846a1c641904b144e4ab2ab88adaece4ee
Cloned to linux-2.6-openvz/ (origin http://git.openvz.org/pub/linux-2.6-openvz available as branch "origin")

No errors


http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2704 is a reply to message #2702] Mon, 17 April 2006 15:40 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Indeed this command shows there are some unreachable objects -- as our git maintainer explained those are some rollbacked commits.

Still, there is no single object that you were not able to get mentioned in this list.

We will try to investigate the issue; it would be helpful if you can give the exact sequense of commands to get the same error(s) you got.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2705 is a reply to message #2703] Mon, 17 April 2006 15:42 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
git-fsck shows no objects you can not fetch... only some dangling commits I used to reset.

http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2710 is a reply to message #2703] Mon, 17 April 2006 16:42 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
I'm getting a new error now. It looks server related. One of the
URLs returned a 403 forbidden error.

[root@jonsmirl home]# cg-clone http://git.openvz.org/pub/linux-2.6-openvz
defaulting to local storage area
Fetching head...
Fetching objects...
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting index for pack db73d9912f4906f547c2d358f5eac732944ebeae
Getting index for pack c5bc5e29cf46cf18c8d26406de439ef53748709b
Getting pack c5bc5e29cf46cf18c8d26406de439ef53748709b
which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
error: The requested URL returned error: 403 (curl_result = 22, http_code = 403, sha1 = dc1f3f0394e1e5d5a6dff70484277bba004e7222)
error: Unable to find dc1f3f0394e1e5d5a6dff70484277bba004e7222 under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed tree dc1f3f0394e1e5d5a6dff70484277bba004e7222
while processing commit 5b42f09f7f0094c7b3886f31ec0aafc92b3e3ad7.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/ee/8ddbfa 3a080901e64ba57fddd079dd441affbd
progress: 20 objects, 103630203 bytes
cg-fetch: objects fetch failed
[root@jonsmirl home]#
Re: Can't get GIT tree to work [message #2714 is a reply to message #2710] Mon, 17 April 2006 23:11 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I have fixed apache configuration (some more exotic methods like PROPFIND were disabled; looks like git is using some of them), so now there should not be any "403 forbidden" errors.

As for the other stuff, let's try to reproduce and fix it. I am watching the new server and see some 404 errors; still do not have an idea where do they come from Sad


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2715 is a reply to message #2714] Mon, 17 April 2006 23:39 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
Error 400 now. Running the git-daemon is faster and avoids having to mess with Apache. kernel.org runs it.

[root@jonsmirl home]# cg-clone http://git.openvz.org/pub/linux-2.6-openvz
defaulting to local storage area
Fetching head...
Fetching objects...
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting index for pack db73d9912f4906f547c2d358f5eac732944ebeae
Getting index for pack c5bc5e29cf46cf18c8d26406de439ef53748709b
Getting pack c5bc5e29cf46cf18c8d26406de439ef53748709b
which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
error: The requested URL returned error: 400 (curl_result = 22, http_code = 400, sha1 = dc1f3f0394e1e5d5a6dff70484277bba004e7222)
error: Unable to find dc1f3f0394e1e5d5a6dff70484277bba004e7222 under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed tree dc1f3f0394e1e5d5a6dff70484277bba004e7222
while processing commit 5b42f09f7f0094c7b3886f31ec0aafc92b3e3ad7.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/ee/8ddbfa 3a080901e64ba57fddd079dd441affbd
progress: 20 objects, 103630203 bytes
cg-fetch: objects fetch failed
[root@jonsmirl home]#

[root@jonsmirl home]# git --version
git version 1.3.0.rc3.gdfdc-dirty
[root@jonsmirl home]#

Re: Can't get GIT tree to work [message #2716 is a reply to message #2715] Tue, 18 April 2006 06:56 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
jonsmirl, object #dc1f3f0394e1e5d5a6dff70484277bba004e7222 is net/ directory:
$ git-ls-tree $(cat .git/refs/heads/master)
...
040000 tree f22bc5f32e6363046fcf35611ab4361468bea2be mm
040000 tree dc1f3f0394e1e5d5a6dff70484277bba004e7222 net
040000 tree ff34b570f8f37fbbe2086f186e0d34d03d417ebc scripts
...
so try to view it via
git.openvz.org -> linux-2.6-openvz -> tree -> net

We'll probably move to git daemon, but we'd like to finish with apache problem.


http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2717 is a reply to message #2715] Tue, 18 April 2006 07:41 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I'm awfully sorry, probably the last error you got was caused by a resource shortage. I have since then increased the resource in question (privvmpages) twofold so it should work now.

I have also tried doing cg-clone and it works for me:
[kir@kir git]$ cg-clone http://git.openvz.org/pub/linux-2.6-openvz
defaulting to local storage area
Fetching head...
Fetching objects...
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting index for pack db73d9912f4906f547c2d358f5eac732944ebeae
Getting index for pack c5bc5e29cf46cf18c8d26406de439ef53748709b
Getting pack c5bc5e29cf46cf18c8d26406de439ef53748709b
 which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
progress: 2279 objects, 113498401 bytes
Fetching tags...
Missing tag 026test006... retrieved
Missing tag 026test007... retrieved
Missing tag v2.6.11... retrieved
Missing tag v2.6.11-tree... retrieved
Missing tag v2.6.12... retrieved
Missing tag v2.6.12-rc2... retrieved
Missing tag v2.6.12-rc3... retrieved
Missing tag v2.6.12-rc4... retrieved
Missing tag v2.6.12-rc5... retrieved
Missing tag v2.6.12-rc6... retrieved
Missing tag v2.6.13... retrieved
Missing tag v2.6.13-rc1... retrieved
Missing tag v2.6.13-rc2... retrieved
Missing tag v2.6.13-rc3... retrieved
Missing tag v2.6.13-rc4... retrieved
Missing tag v2.6.13-rc5... retrieved
Missing tag v2.6.13-rc6... retrieved
Missing tag v2.6.13-rc7... retrieved
Missing tag v2.6.14... retrieved
Missing tag v2.6.14-rc1... retrieved
Missing tag v2.6.14-rc2... retrieved
Missing tag v2.6.14-rc3... retrieved
Missing tag v2.6.14-rc4... retrieved
Missing tag v2.6.14-rc5... retrieved
Missing tag v2.6.15... retrieved
Missing tag v2.6.15-rc1... retrieved
Missing tag v2.6.15-rc2... retrieved
Missing tag v2.6.15-rc3... retrieved
Missing tag v2.6.15-rc4... retrieved
Missing tag v2.6.15-rc5... retrieved
Missing tag v2.6.15-rc6... retrieved
Missing tag v2.6.15-rc7... retrieved
Missing tag v2.6.16... retrieved
Missing tag v2.6.16-rc1... retrieved
Missing tag v2.6.16-rc2... retrieved
Missing tag v2.6.16-rc3... retrieved
Missing tag v2.6.16-rc4... retrieved
Missing tag v2.6.16-rc5... retrieved
Missing tag v2.6.16-rc6... retrieved
New branch: f7d9ce846a1c641904b144e4ab2ab88adaece4ee
Cloned to linux-2.6-openvz/ (origin http://git.openvz.org/pub/linux-2.6-openvz available as branch "origin")


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2726 is a reply to message #2717] Tue, 18 April 2006 12:46 Go to previous messageGo to next message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
Still getting curl errors. Maybe Apache is not freeing resources. So it works for you when first boot and then doesn't work for me later.


progress: 20 objects, 5878557 bytes, now fetching c5bc5e29cf46... (5835440 bytes progress: 20 objects, 6076933 bytes, now fetching c5bc5e29cf46... (6033816 bytes progress: 20 objects, 6281101 bytes, now fetching c5bc5e29cf46... (6237984 bytes which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
error: The requested URL returned error: 400 (curl_result = 22, http_code = 400, sha1 = dc1f3f0394e1e5d5a6dff70484 277bba004e7222)
error: Unable to find dc1f3f0394e1e5d5a6dff70484277bba004e7222 under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed tree dc1f3f0394e1e5d5a6dff70484277bba004e7222
while processing commit 5b42f09f7f0094c7b3886f31ec0aafc92b3e3ad7.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/ee/8ddbfa 3a080901e64ba57fddd079dd441affbd
progress: 20 objects, 103630538 bytes
cg-fetch: objects fetch failed
[root@jonsmirl home]# s
bash: s: command not found
[root@jonsmirl home]# ls
apps b cvsco.log cvsco.log.old good jj jonsmirl linus linux-2.6-openvz lost+found mozilla save svn
[root@jonsmirl home]# cd linux-2.6-openvz
[root@jonsmirl linux-2.6-openvz]# cg update
Recovering from a previously interrupted initial clone...
Fetching head...
Fetching objects...
error: Failed connect to git.openvz.org:80; Bad file descriptor (curl_result = 7, http_code = 0, sha1 = 43351964b4 efe37985f27f994e520d0e17ec12ce)
Getting pack list for http://git.openvz.org/pub/linux-2.6-openvz/
Getting alternates list for http://git.openvz.org/pub/linux-2.6-openvz/
error: Unable to find 472318205236162eaca67da28be8b3ece20b50bc under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed blob 472318205236162eaca67da28be8b3ece20b50bc
while processing commit 44083a7d33fa3f2cbe1389fc13c32aef53fd001f.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/a4/333a82 669fb82269a4a553ae3fec4c4541b9d7
progress: 230 objects, 1062913 bytes
cg-fetch: objects fetch failed
[root@jonsmirl linux-2.6-openvz]#
Re: Can't get GIT tree to work [message #2727 is a reply to message #2717] Tue, 18 April 2006 13:41 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
Try one more time. We've fixed one issue with git. May be it is related to your problem somehow.

http://static.openvz.org/userbars/openvz-developer.png
Re: Can't get GIT tree to work [message #2728 is a reply to message #2727] Tue, 18 April 2006 13:51 Go to previous message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
Still get the same error.


progress: 20 objects, 2471413 bytes, now fetching c5bc5e29cf46... (2428296 bytes progress: 20 objects, 2678477 bytes, now fetching c5bc5e29cf46... (2635360 bytes progress: 20 objects, 2836309 bytes, now fetching c5bc5e29cf46... (2793192 bytes which contains 3f8fb686b59ce6d3c9439232d9ade24f108ea65d
error: The requested URL returned error: 400 (curl_result = 22, http_code = 400, sha1 = dc1f3f0394e1e5d5a6dff70484277bba004e7222)
error: Unable to find dc1f3f0394e1e5d5a6dff70484277bba004e7222 under http://git.openvz.org/pub/linux-2.6-openvz/
Cannot obtain needed tree dc1f3f0394e1e5d5a6dff70484277bba004e7222
while processing commit 5b42f09f7f0094c7b3886f31ec0aafc92b3e3ad7.
Waiting for http://git.openvz.org/pub/linux-2.6-openvz/objects/ee/8ddbfa 3a080901e64ba57fddd079dd441affbd
progress: 20 objects, 103630538 bytes
cg-fetch: objects fetch failed
[root@jonsmirl home]#
Previous Topic: unix domain sockets between VPS
Next Topic: Mount a vps in another vps
Goto Forum:
  


Current Time: Sat May 11 07:58:18 GMT 2024

Total time taken to generate the page: 0.01668 seconds