[openstreetmap/openstreetmap-website] GPX uploads fail with 503 for users on slow connections (Issue #7230)
Ruben L. Mendoza
notifications at github.com
Wed Jul 15 16:30:15 UTC 2026
Rub21 left a comment (openstreetmap/openstreetmap-website#7230)
Some ideas that could help.
- Increase the timeout in [chef](https://github.com/openstreetmap/chef/blob/master/cookbooks/web/templates/default/apache.frontend.erb#L45), for example body=20,MinRate=500 (no hard cap) or a higher cap like body=20-600. but the downside it that slow uploads hold Apache workers open much longer.
- Compress the file in the browser before upload, using the [CompressionStream API](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream) to send it as .gpx.gz. The server already accepts this format, so no backend change. Uploads get 4-5x smaller. This also fits well with https://github.com/openstreetmap/openstreetmap-website/pull/7124
- [Upload directly](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) the file to object storage with a presigned URL, so the file skips the Apache timeout, rails would still import the points from S3 in the background job, same as today.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7230#issuecomment-4982940287
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/7230/4982940287 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260715/297f4a96/attachment.htm>
More information about the rails-dev
mailing list