{"thread":{"id":"5357","subject":"HELP: GIT Cloning failed","startedAt":"2006-08-22T19:25:23Z","lastAt":"2006-08-22T21:08:09Z","messageCount":4,"participants":["Ju, Seokmann","Sean","Phillip Susi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"25758","messageId":"890BF3111FB9484E9526987D912B261932E35B@NAMAIL3.ad.lsil.com","threadId":"5357","inReplyTo":null,"subject":"HELP: GIT Cloning failed","fromName":"Ju, Seokmann","fromEmail":"seokmann.ju@lsil.com","sentAt":"2006-08-22T19:25:23Z","receivedAt":"2006-08-22T19:25:23Z","isPatch":false,"sender":{"key":"seokmann.ju@lsil.com","avatar":null},"body":"Hi,\n\nRecently, I found that cloning from GIT server has been failed.\nI'm using following script for it.\n---\n...\nrm -r /home/git/kernels/2.4/linux-2.4.git\ncg-clone\nhttp://www.kernel.org/pub/scm/linux/kernel/git/marcelo/linux-2.4.git/\n/home/git/kernels/2.4/linux-2.4.git/\nsync\nrm -r /home/git/kernels/2.4/linux-2.6.git\ncg-clone\nhttp://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/\n/home/git/kernels/2.4/linux-2.6.git/\nsync\nrm -r /home/git/kernels/2.4/scsi-misc-2.6.git\ncg-clone\nhttp://www.kernel.org/pub/scm/linux/kernel/git/marcelo/scsi-misc-2.6.git\n/home/git/kernels/2.4/scsi-misc-2.6.git\nsync\n...\n---\n\nIn the script, I'm cloning 3 different sources. First two sources\ngetting successfully cloned, however, last one is getting failed with\nfollowing error messages,\n---\nFetching head...\nFetching objects...\nGetting alternates list for\nhttp://www.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git\nAlso look at http://www.kernel.or\nError: The requested URL returned error: 502 (curl_result = 22,\nhttp_code = 502, sha1 = 1039f0760e...)\nGetting pack list for\nhttp://www.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git/\nGetting pack list for http://www.kernel.or\nError: The requested URL returned error: 502\nError: Unable to find 27fd37621... Under\nhttp://www.kernel.org/pub/scsm/linux/kernel/git/jejb/scsi-misc-2.6.git/\nCannot obtain needed blob 27fd37621...\nWhile processing commit 4041b9cd87...\nProgress: 8 objects, 13120 bytes\nCg-fetch: objects fetch failed\n---\n\nAbove script worked without any problem when I started several months\nago and I'm not sure when did it stop working.\nI'm using _cron_ utility on my Linux box for scheduled execution of the\nscript.\n\nAny comment would be appreciated.\n\nThank you,\n\nSeokmann\n"},{"id":"25761","messageId":"BAYC1-PASMTP03D3DD61899A6464D26765AE460@CEZ.ICE","threadId":"5357","inReplyTo":"890BF3111FB9484E9526987D912B261932E35B@NAMAIL3.ad.lsil.com","subject":"Re: HELP: GIT Cloning failed","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2006-08-22T20:08:22Z","receivedAt":"2006-08-22T20:08:22Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Tue, 22 Aug 2006 13:25:23 -0600\n\"Ju, Seokmann\" <Seokmann.Ju@lsil.com> wrote:\n\nJu,\n\n> Above script worked without any problem when I started several months\n> ago and I'm not sure when did it stop working.\n> I'm using _cron_ utility on my Linux box for scheduled execution of the\n> script.\n> \n> Any comment would be appreciated.\n\nIt looks like the jejb scsi-misc archive might not have been\nconfigured properly for http transfers.  There's a script below\nwhich just uses git commands (not cogito) and the native git\nprotocol which tests out okay here.\n\nA few comments though:\n\n - Apparently the scsi misc tree you want is actually under \"jejb\"\n   rather than \"marcelo\" which you had in your script.\n\n - It's better to use the native git protocol when possible\n   (well, the benefits are less on initial clone, but it's still\n   a good practice)\n\n - You're causing a lot of unnecessary traffic for kernel.org by\n   cloning a fresh copy of all these trees, it would be much better\n   to clone just _once_ and then simply \"git pull\" in any updates.\n\n - Two of the trees you're cloning are very close in content to\n   each other (linux-2.6 & scsi-misc-2.6) so you can use the git\n   \"--reference\" option to share local objects saving disk space\n   (and reducing bandwidth needs even further)\n\nCheers,\nSean\n\n#!/bin/sh\ncd /home/git/kernels/2.4 || exit\nBASE=\"git://www.kernel.org/pub/scm/linux/kernel/git\"\nrm -rf linux-2.4 linux-2.6 scsi-misc-2.6\ngit clone $BASE/marcelo/linux-2.4\ngit clone $BASE/torvalds/linux-2.6\ngit clone --reference linux-2.6 $BASE/jejb/scsi-misc-2.6\n"},{"id":"25762","messageId":"20060822160822.b112421a.seanlkml__6732.01446556977$1156277346$gmane$org@sympatico.ca","threadId":"5357","inReplyTo":"890BF3111FB9484E9526987D912B261932E35B@NAMAIL3.ad.lsil.com","subject":"Re: HELP: GIT Cloning failed","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2006-08-22T20:08:22Z","receivedAt":"2006-08-22T20:08:22Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Tue, 22 Aug 2006 13:25:23 -0600\n\"Ju, Seokmann\" <Seokmann.Ju@lsil.com> wrote:\n\nJu,\n\n> Above script worked without any problem when I started several months\n> ago and I'm not sure when did it stop working.\n> I'm using _cron_ utility on my Linux box for scheduled execution of the\n> script.\n> \n> Any comment would be appreciated.\n\nIt looks like the jejb scsi-misc archive might not have been\nconfigured properly for http transfers.  There's a script below\nwhich just uses git commands (not cogito) and the native git\nprotocol which tests out okay here.\n\nA few comments though:\n\n - Apparently the scsi misc tree you want is actually under \"jejb\"\n   rather than \"marcelo\" which you had in your script.\n\n - It's better to use the native git protocol when possible\n   (well, the benefits are less on initial clone, but it's still\n   a good practice)\n\n - You're causing a lot of unnecessary traffic for kernel.org by\n   cloning a fresh copy of all these trees, it would be much better\n   to clone just _once_ and then simply \"git pull\" in any updates.\n\n - Two of the trees you're cloning are very close in content to\n   each other (linux-2.6 & scsi-misc-2.6) so you can use the git\n   \"--reference\" option to share local objects saving disk space\n   (and reducing bandwidth needs even further)\n\nCheers,\nSean\n\n#!/bin/sh\ncd /home/git/kernels/2.4 || exit\nBASE=\"git://www.kernel.org/pub/scm/linux/kernel/git\"\nrm -rf linux-2.4 linux-2.6 scsi-misc-2.6\ngit clone $BASE/marcelo/linux-2.4\ngit clone $BASE/torvalds/linux-2.6\ngit clone --reference linux-2.6 $BASE/jejb/scsi-misc-2.6\n"},{"id":"25764","messageId":"44EB7239.50105@cfl.rr.com","threadId":"5357","inReplyTo":"890BF3111FB9484E9526987D912B261932E35B@NAMAIL3.ad.lsil.com","subject":"Re: HELP: GIT Cloning failed","fromName":"Phillip Susi","fromEmail":"psusi@cfl.rr.com","sentAt":"2006-08-22T21:08:09Z","receivedAt":"2006-08-22T21:08:09Z","isPatch":false,"sender":{"key":"psusi@cfl.rr.com","avatar":null},"body":"Is there a reason that you regularly delete and re-download the entire \nrepository, rather than simply doing a git pull to update your existing \nclone?\n\nJu, Seokmann wrote:\n> Hi,\n> \n> Recently, I found that cloning from GIT server has been failed.\n> I'm using following script for it.\n> ---\n> ...\n> rm -r /home/git/kernels/2.4/linux-2.4.git\n> cg-clone\n> http://www.kernel.org/pub/scm/linux/kernel/git/marcelo/linux-2.4.git/\n> /home/git/kernels/2.4/linux-2.4.git/\n> sync\n> rm -r /home/git/kernels/2.4/linux-2.6.git\n> cg-clone\n> http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/\n> /home/git/kernels/2.4/linux-2.6.git/\n> sync\n> rm -r /home/git/kernels/2.4/scsi-misc-2.6.git\n> cg-clone\n> http://www.kernel.org/pub/scm/linux/kernel/git/marcelo/scsi-misc-2.6.git\n> /home/git/kernels/2.4/scsi-misc-2.6.git\n> sync\n> ...\n> ---\n> \n> In the script, I'm cloning 3 different sources. First two sources\n> getting successfully cloned, however, last one is getting failed with\n> following error messages,\n> ---\n> Fetching head...\n> Fetching objects...\n> Getting alternates list for\n> http://www.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git\n> Also look at http://www.kernel.or\n> Error: The requested URL returned error: 502 (curl_result = 22,\n> http_code = 502, sha1 = 1039f0760e...)\n> Getting pack list for\n> http://www.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git/\n> Getting pack list for http://www.kernel.or\n> Error: The requested URL returned error: 502\n> Error: Unable to find 27fd37621... Under\n> http://www.kernel.org/pub/scsm/linux/kernel/git/jejb/scsi-misc-2.6.git/\n> Cannot obtain needed blob 27fd37621...\n> While processing commit 4041b9cd87...\n> Progress: 8 objects, 13120 bytes\n> Cg-fetch: objects fetch failed\n> ---\n> \n> Above script worked without any problem when I started several months\n> ago and I'm not sure when did it stop working.\n> I'm using _cron_ utility on my Linux box for scheduled execution of the\n> script.\n> \n> Any comment would be appreciated.\n> \n> Thank you,\n> \n> Seokmann\n"}]}