Release/archive download throws error 500 #8

Closed
opened 2023-09-10 09:07:26 +00:00 by alexlehm · 6 comments

This issue appeared 3 weeks ago as #7 and apparently fixed itself.

Download tar/zip links on tildegit give a 500 errors, e.g.

https://tildegit.org/tildeverse/gitea-custom/archive/master.zip

Could you please take a look, it seems that some automatic scripts rely on the download urls (from other sites)

This issue appeared 3 weeks ago as #7 and apparently fixed itself. Download tar/zip links on tildegit give a 500 errors, e.g. https://tildegit.org/tildeverse/gitea-custom/archive/master.zip Could you please take a look, it seems that some automatic scripts rely on the download urls (from other sites)
Owner

just restarted the gitea process and it's still happening with this error message

2023/09/16 19:32:57 ...ers/web/repo/repo.go:419:Download() [E] archiver.Await: archiver.StartArchive: context deadline exceeded
just restarted the gitea process and it's still happening with this error message 2023/09/16 19:32:57 ...ers/web/repo/repo.go:419:Download() [E] archiver.Await: archiver.StartArchive: context deadline exceeded
Author

I think that relates to a timeout for the git archive operation, that seems to be 5 seconds which may be too short depending on how fast the filesystem is read/write the archive.

Not quite sure how this is set, I cannot find it in the source

I think that relates to a timeout for the git archive operation, that seems to be 5 seconds which may be too short depending on how fast the filesystem is read/write the archive. Not quite sure how this is set, I cannot find it in the source
Author

I assume the command that is run to create an archive file is the following, it would be interesting to see how long that takes for a specific repository:

/usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= archive --prefix=gitea-custom/ --format=zip 15d8a95d77658c34ba44ddef907620148a4c1e64 > /var/lib/gitea/data/repo-archive/1/15/15d8a95d77658c34ba44ddef907620148a4c1e64.zip

in the directory that relates to the repository, something like

/var/lib/gitea/data/gitea-repositories/tildeverse/gitea-custom.git

this should take maybe 1 second, not longer

I assume the command that is run to create an archive file is the following, it would be interesting to see how long that takes for a specific repository: /usr/bin/git -c protocol.version=2 -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= archive --prefix=gitea-custom/ --format=zip 15d8a95d77658c34ba44ddef907620148a4c1e64 > /var/lib/gitea/data/repo-archive/1/15/15d8a95d77658c34ba44ddef907620148a4c1e64.zip in the directory that relates to the repository, something like /var/lib/gitea/data/gitea-repositories/tildeverse/gitea-custom.git this should take maybe 1 second, not longer
Owner
real    0m0.015s
user    0m0.008s
sys     0m0.004s

i have no idea why this would be timing out

``` real 0m0.015s user 0m0.008s sys 0m0.004s ``` i have no idea why this would be timing out
Owner
https://github.com/go-gitea/gitea/issues/27945 upstream issue
Owner

after some more debugging on irc, i ended up on the queue management page of the admin panel and clearing out the 1500 pending items from the repo-archive queue seems to have made it work. reopen this if it happens again!

after some more debugging on irc, i ended up on the queue management page of the admin panel and clearing out the 1500 pending items from the repo-archive queue seems to have made it work. reopen this if it happens again!
ben closed this issue 2023-12-01 19:14:10 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tildeverse/gitea-custom#8
No description provided.