Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Archive URL for mirrors #1410

Open
AlexeiKlimenko opened this issue Dec 18, 2024 · 5 comments
Open

Multiple Archive URL for mirrors #1410

AlexeiKlimenko opened this issue Dec 18, 2024 · 5 comments
Assignees
Labels
please confirm resolved We believe the issue is resolved ! if so, please close the issue, thanks ;-)

Comments

@AlexeiKlimenko
Copy link

Good day.

Sometimes (and very often) during aptly mirror update processing we're facing with various issues such as EOF, timeout, unexpected length etc. It leads that updating of mirror is gonna to be failed.
Have you got any ideas/suggestions how to define multiple URL for Archive URL as a endpoints for balancing? Mean, than we face again with issue try to use another URL for this mirror (another backend)?

@neolynx
Copy link
Member

neolynx commented Dec 19, 2024

what version of aptly are you using?

for unstable connections, the grab downloader is recommended, and you can set the download retry attempts. what downloader is configured in your aptly.conf ?

@AlexeiKlimenko
Copy link
Author

aptly version: 1.4.0

Part of config:
"downloadConcurrency": 200, "downloadSpeedLimit": 0, "downloadRetries": 0, "databaseOpenAttempts": -1,

We'd prefer to use multiple endpoints instead of specific one and looking for the way how to implement it.

@neolynx
Copy link
Member

neolynx commented Dec 21, 2024

I see your point for having multiple/backup URLs, but implementing this would require a lot of cross checking (Release, Package files, signatures).. so I think this would be difficult.

However, we solved such kind of problems by using the grab downloader, which is more robust in retrying and continuing downloading.

could you check if the behavior improved by setting downloader: "grab" and "downloadRetries": 10 ?

@AlexeiKlimenko
Copy link
Author

Our current version aptly (version: 1.4.0) knows nothing about this type of downloader. We've implemented nginx for using upstreams for mirrors and redefined archive URL referring to nginx. After that every time receive this error on any mirror:
STDOUT: ERROR: unable to update: could not determine length of http://xxx/debian/dists/bookworm/main/installer-arm64/current/images/netboot/debian-installer/arm64/grub/arm64-efi/fdt.lst

@neolynx
Copy link
Member

neolynx commented Jan 11, 2025

Aptly 1.6.0 has been releassed: #1414

Could you try the grab downloader with this version ?

I did not fully understand how you implemented the nginx proxy... is this related to mirror downloads, i.e. caching aptly requests ?
for caching apt repositories, I had better experience with a dedicated apt cacher. I would suggest to try aptly 1.6.0 with direct downloads, and grab configured with retries.

if the error persists, please share some aptly logs to analyze...

@neolynx neolynx self-assigned this Jan 11, 2025
@neolynx neolynx added the please confirm resolved We believe the issue is resolved ! if so, please close the issue, thanks ;-) label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please confirm resolved We believe the issue is resolved ! if so, please close the issue, thanks ;-)
Projects
None yet
Development

No branches or pull requests

2 participants