Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error 503 Response object too large from Gentoo git server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
piggy
n00b
n00b


Joined: 28 Sep 2015
Posts: 26

PostPosted: Thu Jul 18, 2024 10:25 pm    Post subject: Error 503 Response object too large from Gentoo git server Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22364

PostPosted: Thu Jul 18, 2024 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20329

PostPosted: Fri Jul 19, 2024 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message
piggy
n00b
n00b


Joined: 28 Sep 2015
Posts: 26

PostPosted: Fri Jul 19, 2024 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1618
Location: Germany

PostPosted: Fri Jul 19, 2024 10:21 am    Post subject: Reply with quote

as far as I can tell, it should be this feature: https://git-scm.com/docs/gitweb.conf#Documentation/gitweb.conf.txt-snapshot

So a better way would be to clone the project from https://gitweb.gentoo.org/repo/gentoo.git/ or https://github.com/gentoo-mirror/gentoo and produce your own snapshot https://stackoverflow.com/questions/615816/git-how-to-get-a-snapshot-of-a-git-repository

But cloning it localy makes the need of the snapshop rather obsolete. What exactly do you want to achive?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
piggy
n00b
n00b


Joined: 28 Sep 2015
Posts: 26

PostPosted: Fri Jul 19, 2024 11:33 am    Post subject: Reply with quote

Banana wrote:
as far as I can tell, it should be this feature: https://git-scm.com/docs/gitweb.conf#Documentation/gitweb.conf.txt-snapshot

So a better way would be to clone the project from https://gitweb.gentoo.org/repo/gentoo.git/ or https://github.com/gentoo-mirror/gentoo and produce your own snapshot https://stackoverflow.com/questions/615816/git-how-to-get-a-snapshot-of-a-git-repository

But cloning it localy makes the need of the snapshop rather obsolete. What exactly do you want to achive?

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22364

PostPosted: Fri Jul 19, 2024 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message
piggy
n00b
n00b


Joined: 28 Sep 2015
Posts: 26

PostPosted: Fri Jul 19, 2024 11:57 am    Post subject: Reply with quote

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. :P
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22364

PostPosted: Fri Jul 19, 2024 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1618
Location: Germany

PostPosted: Fri Jul 19, 2024 12:26 pm    Post subject: Reply with quote

Quote:
Simply get the gentoo-sources-6.6.22, not present in the Gentoo package website page.

There you would only get the ebuild and not the sources. It looks like there wasn't a 6.6.22 ebuild anyway: https://gitweb.gentoo.org/repo/gentoo.git/log/sys-kernel/gentoo-sources

if you really want to use the 6.6.22, you need to do it manually: https://lore.kernel.org/linux-kernel-announce/20240315192541.release-6.6.22@kdist.linux.kernel.org/T/
But be aware, the gentoo patches and stuff will be missing.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20329

PostPosted: Fri Jul 19, 2024 4:03 pm    Post subject: Reply with quote

piggy wrote:
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.
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
View user's profile Send private message
piggy
n00b
n00b


Joined: 28 Sep 2015
Posts: 26

PostPosted: Fri Jul 19, 2024 8:35 pm    Post subject: Reply with quote

pjp wrote:
piggy wrote:
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.
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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20329

PostPosted: Fri Jul 19, 2024 9:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22364

PostPosted: Fri Jul 19, 2024 9:50 pm    Post subject: Reply with quote

OP appears to have reported this as https://bugzilla.kernel.org/show_bug.cgi?id=219061. OP was then directed to e-mail it to LKML. I cannot find that mail, but I see what appears to be the first response to that mail at https://lkml.org/lkml/2024/7/19/397.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum