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
Getting a 500 when using the newest version of Rasterio (1.0.22) #139
Comments
I think to make a proper bug report upstream we will need the offending raster, preferably in a public S3 bucket. |
Yes. I think @vlro is trying to find out the exact Rasterio version that introduced this error, so we can make a nicer upstream report. |
Tests are still passing, so this is probably going to be something weird... |
Uh oh... 😄 |
@mrpgraae Looks like the error was introduced in 1.0.15, has been broken since. Works fine with 1.0.13 and 1.0.14 |
Rest of the environment looks like:
|
Almost nothing changed between 1.0.14 and 1.0.15: https://github.com/mapbox/rasterio/compare/1.0.14..1.0.15 I think we'll definitely need access to the offending raster to investigate what's going on. |
Maybe we can get |
We already know which tile is failing:
You should try and serve it locally, but it seems to me like it is related to GDAL's S3 driver. |
Speaking of GDAL - could the different versions of |
They definitely could. It's also my best guess for where this comes from all of a sudden. |
@j08lue do you install rasterio from wheels ? If yes, gdal version for rasterio >= 1 is build with https://github.com/sgillies/rasterio-wheels and GDAL shipped with it is 2.4.0 (since January 22nd - rasterio ~1.14.0) |
@vlro could you put the raster in a public S3 bucket and paste the url here? |
@vincentsarago We do install from wheels. From @vlro's findings, it seems to work with rasterio 1.0.14 but not 1.0.15, so it would have made more sense if the GDAL version changed in 1.0.15. |
1.0.14 and later is shipped with GDAL 2.4.0, 1.0.13 is shipped with GDAL 2.3.2 |
I've uploaded the raster here: |
Could not reproduce this on my machine with rasterio 1.0.22 and GDAL 2.4.0. Here's a database file with the test raster ingested if someone else wants to give it a shot: |
Small update on this. I'm seeing quite a few changes to |
@dionhaefner Did you ever manage to reproduce this? |
No. Could be anything at this point... Network issues of the workers, full disk, full memory. To properly investigate this we would need a hacked version of Terracotta that dumps some system diagnostics upon failure. |
Okay. The reason I'm asking is that I wasn't able to reproduce it using the preview app (with the same lambda deployment as our front-end) 1 hour ago, despite trying for a long time. So I was about to say that I also couldn't reproduce it. But now it's bugging out like crazy again 🤷♂ |
This didn't work, Usually Zappa downloads a manylinux wheel rather than using the Rasterio installed in the venv and I had to use some trickery to get around that, but it seems like it actually has to be a manylinux wheel to work. EDIT: nevermind, the problem was that the gdal libs weren't packaged into the wheel. |
Just did a quick check with |
New insights. We can get rid of the issue with We now tried The Whether the change from |
When deploying a Lambda function through Zappa, using the newest version of Rasterio (1.0.22), we get a 500 for some tiles, while others load fine.
When reverting back to Rasterio 1.0.13 everything works fine.
zappa tail
gives the following:The text was updated successfully, but these errors were encountered: