ostreedev / ostree

Operating system and container binary deployment and upgrades
https://ostreedev.github.io/ostree/
Other
1.27k stars 291 forks source link

Retry pulls on 503 errors #2022

Open alexlarsson opened 4 years ago

alexlarsson commented 4 years ago

We're having some infrastructure issue in flathub that causes it to return 503 errors: https://github.com/flathub/flathub/issues/845 The same happened in fedora: https://pagure.io/fedora-infrastructure/issue/8710

Looking at https://github.com/ostreedev/ostree/blob/4929fc38e98a384d4f29d8710338b9e2e750f5a7/src/libostree/ostree-fetcher-util.c#L225 it seem's we're not handling 503, so we will not retry the downloads. Maybe we should add this, possibly with some backoff.

jlebon commented 4 years ago

See https://github.com/ostreedev/ostree/pull/1847

wjt commented 3 years ago

I closed my PR at #1847 because realistically I won't be able to work on it further any time soon.