View previous topic :: View next topic |
Author |
Message |
piggy n00b
Joined: 28 Sep 2015 Posts: 26
|
Posted: Thu Jul 18, 2024 10:25 pm Post subject: Error 503 Response object too large from Gentoo git server |
|
|
Sorry if this is the wrong section, then I want to understand if I'm wrong somewhere or the Gentoo Git server has some limitations or something or if it is even a bug.
I need this:
https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-kernel/gentoo-sources?id=9028ce75da8404b77d0f92df381941a36119277f
and I get this:
Code: | Error 503 Response object too large
Response object too large
Error 54113
Details: cache-lin1730065-LIN 1721226157 1375299816
Varnish cache server |
why this? isn't supposed it should serve me the requested file? If the answer is yes, why it act like this?
If it's me, sorry for not understanding something.
Moderator note: Fixed code block --Banana |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22602
|
Posted: Thu Jul 18, 2024 10:53 pm Post subject: |
|
|
Gitweb is a convenience to let you browse the git history without needing to download it locally. While it can return some git objects, you should not use it to download arbitrary large blobs. If you need a substantial portion of the git history, you should git clone the relevant repository and extract the objects locally.
That link works fine for me. It is just a removal of one ebuild. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jul 19, 2024 12:02 am Post subject: |
|
|
The page loads fine for me. What is it you're trying to do / get?
I have on occasion received an error when trying to search for something. I can't say it is a 503 error, but it might be. I have presumed the search was taking too long. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
piggy n00b
Joined: 28 Sep 2015 Posts: 26
|
Posted: Fri Jul 19, 2024 10:09 am Post subject: |
|
|
pjp wrote: | The page loads fine for me. What is it you're trying to do / get?
I have on occasion received an error when trying to search for something. I can't say it is a 503 error, but it might be. I have presumed the search was taking too long. |
Thank you both for your reply and my fault, I attached the wrong link. This is the file I needed few days ago and it still NOT work (even if I don't need it anymore):
https://gitweb.gentoo.org/repo/gentoo.git/snapshot/gentoo-9028ce75da8404b77d0f92df381941a36119277f.tar.gz
If I understand well, do I need to clone the whole repository to just get a single file? It makes no sense to me. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1712 Location: Germany
|
|
Back to top |
|
|
piggy n00b
Joined: 28 Sep 2015 Posts: 26
|
Posted: Fri Jul 19, 2024 11:33 am Post subject: |
|
|
Simply get the gentoo-sources-6.6.22, not present in the Gentoo package website page.
Now I don't need it anymore then I was surprised about how complicated it is to get old ebuilds source files.
Put it simple, it was just a simple request to download a specific file.
As I said, not needed anymore. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22602
|
Posted: Fri Jul 19, 2024 11:53 am Post subject: |
|
|
If I interpret this right, you were not trying to get a single file. You were trying to get all files in the repository as of that commit, since you requested a snapshot of that commit. If I am right, that would explain why it was too big to serve to you. If you only want one file, you should download that file, raw. If you want a snapshot of that directory, you should focus your snapshot request on the relevant tree. |
|
Back to top |
|
|
piggy n00b
Joined: 28 Sep 2015 Posts: 26
|
Posted: Fri Jul 19, 2024 11:57 am Post subject: |
|
|
Hu wrote: | If I interpret this right, you were not trying to get a single file. You were trying to get all files in the repository as of that commit, since you requested a snapshot of that commit. If I am right, that would explain why it was too big to serve to you. If you only want one file, you should download that file, raw. If you want a snapshot of that directory, you should focus your snapshot request on the relevant tree. |
I tried the link I posted. Needed A SINGLE FILE (gz compressed few megs), like I said.
Think I'm new to this. And probably I will access it again in ten years time. Just to understand. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22602
|
Posted: Fri Jul 19, 2024 12:13 pm Post subject: |
|
|
The link you posted requests that the server generate an archive of all the files in that commit, compress the archive, and serve it to you. Hence, I said you were trying to get all files in the repository as of that commit (>100k files). A test locally says that when I archive that commit and compress it with gzip, I get a 37M result. That does not seem huge, but since it is dynamically generated, I can see that the server administrators might have set a fairly low limit on maximum object size. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1712 Location: Germany
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jul 19, 2024 4:03 pm Post subject: |
|
|
piggy wrote: | Simply get the gentoo-sources-6.6.22, not present in the Gentoo package website page. | That tar.gz file is NOT the gentoo-sources-6.6.22 file. That's what others have been trying to explain. To get and build gentoo-sources, you would need the ebuild file. The ebuild is used by portage to fetch what it needs from upstream or mirrors.
That's why in my description I mentioned downloading the ebuild file and putting it in a local repository. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
piggy n00b
Joined: 28 Sep 2015 Posts: 26
|
Posted: Fri Jul 19, 2024 8:35 pm Post subject: |
|
|
pjp wrote: | piggy wrote: | Simply get the gentoo-sources-6.6.22, not present in the Gentoo package website page. | That tar.gz file is NOT the gentoo-sources-6.6.22 file. That's what others have been trying to explain. To get and build gentoo-sources, you would need the ebuild file. The ebuild is used by portage to fetch what it needs from upstream or mirrors.
That's why in my description I mentioned downloading the ebuild file and putting it in a local repository. |
Ok, now I understand.
I always get the ebuild after you explained it to me. Then going to Gentoo Package page related to gentoo-sources, I found I could click on a link and in the page there was this files to download.
Now I understand I need a local repository to work/get old files from gentoo ebuilds.
Not very convenient IMHO, then I don't want to discuss that considering it will not happen to me very soon.
I asked just to try to understand the whole process.
Even if I missed the Gentoo patches, it was a lot more easy to work with kernel.org kernel sources. This was also requested to fill a bugzilla and it was straightforward. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jul 19, 2024 9:31 pm Post subject: |
|
|
piggy wrote: | Now I understand I need a local repository to work/get old files from gentoo ebuilds.
Not very convenient IMHO, then I don't want to discuss that considering it will not happen to me very soon. | Excellent! I like that portage handles the dirty work and I don't have to do any setup or cleanup, etc.
Good luck with your kernel issue. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22602
|
|
Back to top |
|
|
|