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

Sporadic issues with S3 minutely replica download fails (pyosmium) #1011

Closed
flohoff opened this issue Dec 6, 2023 · 2 comments
Closed

Sporadic issues with S3 minutely replica download fails (pyosmium) #1011

flohoff opened this issue Dec 6, 2023 · 2 comments

Comments

@flohoff
Copy link

flohoff commented Dec 6, 2023

Hi,
i am running osm pipelines every 30 minutes for different tasks and i update pbfs with /usr/bin/pyosmium-up-to-date from Debian Bookworm.

Since the S3 transition i have failed pipelines about 1-2 times a week.

I fetches replication minutelys - something 20-30 and then suddenly one of them fails. This machine does not have a firewall and is directly connected with a public IP. So i doubt its a client side issue with dropping a tcp/http session. I can also rule out DNS issues as one can see its valid resolvable and previous downloads work.

I am not saying AWS/OSMops is at fault. It might be that sporadic issues on AWS/S3 must be accounted for and pyosmium needs fixing.

[ ... ]
2023-12-06 00:15:26 DEBUG: Downloaded change 5857902. (3266583 kB available in download buffer)
2023-12-06 00:15:26 DEBUG: https://planet.osm.org:443 "GET /replication/minute//005/857/903.osc.gz HTTP/1.1" 302 381
2023-12-06 00:15:26 DEBUG: https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com:443 "GET /planet/replication/minute/005/857/903.osc.gz HTTP/1.1" 200 49287
2023-12-06 00:15:26 DEBUG: Downloaded change 5857903. (3266370 kB available in download buffer)
2023-12-06 00:15:26 DEBUG: https://planet.osm.org:443 "GET /replication/minute//005/857/904.osc.gz HTTP/1.1" 302 381
2023-12-06 00:15:26 DEBUG: https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com:443 "GET /planet/replication/minute/005/857/904.osc.gz HTTP/1.1" 200 19641
2023-12-06 00:15:26 DEBUG: Downloaded change 5857904. (3266293 kB available in download buffer)
2023-12-06 00:15:26 DEBUG: Resetting dropped connection: planet.osm.org
2023-12-06 00:15:26 DEBUG: https://planet.osm.org:443 "GET /replication/minute//005/857/905.osc.gz HTTP/1.1" 302 381
2023-12-06 00:15:26 DEBUG: Resetting dropped connection: osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com
2023-12-06 00:15:26 DEBUG: Error during diff download. Bailing out.
2023-12-06 00:15:26 DEBUG: https://planet.osm.org:443 "GET /replication/minute//005/857/904.state.txt HTTP/1.1" 302 384
2023-12-06 00:15:26 DEBUG: Starting new HTTPS connection (2): osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com:443
2023-12-06 00:15:26 DEBUG: https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com:443 "GET /planet/replication/minute/005/857/904.state.txt HTTP/1.1" 200 86
2023-12-06 00:15:26 DEBUG: Merging changes into OSM file.
2023-12-06 00:15:47 INFO: Downloaded until 5857904. Server has data available until 5863549.
root@m3 ~ # dpkg -l pyosmium
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-==============================================
ii  pyosmium       3.6.0-1      all          Osmium library bindings for Python - utilities
@tomhughes
Copy link
Member

You need to upgrade your pyosmium - osmcode/pyosmium#237

@pnorman
Copy link
Collaborator

pnorman commented Jan 11, 2024

Duplicate of #992

@pnorman pnorman marked this as a duplicate of #992 Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants