"Download repository as zip" doesn't work most of the time. #104563

Closed
opened 2023-09-24 14:47:54 +02:00 by Andrew Stevenson · 3 comments

When trying to download this repository as a zip file, most of the time, the server doesn't respond and nothing happens:
image

Rarely, the file will download instantly, and sometimes it will start downloading after a couple of minutes.
Going to the zip url directly gives a time-out error:

image

Occurs on both Chrome and Firefox.
I'm working on an addon to view the manual directly in Blender, so being able to reliably download the zip file for different versions would be valuable.

Edit:

It seems that after waiting a couple of minutes to download initially, subsequent downloads will begin immediately. I assume this is caused by the zip file being built from scratch the first time, and then cached after that.
It seems that the cache isn't persistent though, as I downloaded the 3.6 zip a while ago (which hasn't changed since), but I still had to wait for it to download today.

Any chance the zip cache could be rebuilt automatically with each commit, at least for important branches? (assuming that this is the problem)

When trying to download this repository as a zip file, most of the time, the server doesn't respond and nothing happens: ![image](/attachments/342f5454-56e2-467f-9dda-3b44fcb36b18) Rarely, the file will download instantly, and sometimes it will start downloading after a couple of minutes. Going to the zip url directly gives a time-out error: ![image](/attachments/419e2292-9058-4b29-a38f-086490c6721f) Occurs on both Chrome and Firefox. I'm working on an addon to view the manual directly in Blender, so being able to reliably download the zip file for different versions would be valuable. Edit: It seems that after waiting a couple of minutes to download initially, subsequent downloads will begin immediately. I assume this is caused by the zip file being built from scratch the first time, and then cached after that. It seems that the cache isn't persistent though, as I downloaded the 3.6 zip a while ago (which hasn't changed since), but I still had to wait for it to download today. Any chance the zip cache could be rebuilt automatically with each commit, at least for important branches? (assuming that this is the problem)
8.5 KiB
119 KiB
Andrew Stevenson added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-09-24 14:47:54 +02:00
Andrew Stevenson changed title from Download repository as zip doesn't work most of the time. to "Download repository as zip" doesn't work most of the time. 2023-09-24 14:48:10 +02:00
Member
Moved issue here: https://projects.blender.org/infrastructure/blender-projects-platform/issues/72
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-12-13 04:29:03 +01:00

Hopefully this is fixed now.

Though for your use case, I would recommend using the git repository instead of zip file. The zip does not include images, because they are stored in LFS. This is a limitation of Gitea, though even if it was supported I don't think that we'd want to enable it since it's not efficient for the server to deal with such big archives.

Hopefully this is fixed now. Though for your use case, I would recommend using the git repository instead of zip file. The zip does not include images, because they are stored in LFS. This is a limitation of Gitea, though even if it was supported I don't think that we'd want to enable it since it's not efficient for the server to deal with such big archives.

Great, thanks for that!

About using git instead of the zip; I think for my use case, the zip is better, and not having the images bundled is quite useful. Instead of downloading the images beforehand, the addon only downloads each of the images when they are needed, which helps keep the initial size small, and since each image is only a few hundred kilobytes they load quite quickly. Along with that, there are also issues with not all systems having git installed. (I hope that's reasonable, otherwise please say 😅)

Thanks!

Great, thanks for that! About using git instead of the zip; I think for my use case, the zip is better, and not having the images bundled is quite useful. Instead of downloading the images beforehand, the addon only downloads each of the images when they are needed, which helps keep the initial size small, and since each image is only a few hundred kilobytes they load quite quickly. Along with that, there are also issues with not all systems having git installed. (I hope that's reasonable, otherwise please say 😅) Thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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: blender/blender-manual#104563
No description provided.