Jon,
This issue is probably related to https://github.com/OSGeo/gdal/issues/1244
and was fixed in 2.4.4

--
Thomas

Le lun. 24 févr. 2020 à 05:46, Jon Seymour <j...@upowr.com.au> a écrit :

> G'day,
>
> I am trying to get to the bottom of some errors I have been experiencing
> with gdal 2.4.2 + Python 3 running in a long-running debian container on
> AWS ECS. The files I am trying to load are VRT (actually named .tif) that
> reference actual .tif files hosted in the same S3 bucket.
>
> Most of the time the access works, the symptom is that if the container
> has been running for a long time, then the gdal.Open() returns null and
> logs an ERROR 4 to the stderr. For example:
>
> ERROR 4: `/vsis3/acme-foo-bar/baz/quux.tif' not recognized as a supported
> file format
> If the container is restarted, then the access works as expected. Indeed,
> if I call gdal.VsiCurlClearCache(), then the access works as expected, so
> the issue is not the AWS credentials. Indeed, verbose vsicurl logging
> indicates that there are no 4xx or 5xx errors on any request (almost all
> the requests return.a 206 Partial Response response code).
>
> I was initially using gdal 2.4.0 with IAM role-based credentials and
> discovered this issue (https://github.com/OSGeo/gdal/issues/1593) that
> looked very similar to the issue I was having.
>
> However, I have since upgraded the library to gdal-2.4.2 and an issue with
> identical symptoms persists - occasionally. I have even stopped using IAM
> role based credentials and switched to using explicitly managed
> AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables but the
> issue persists - occasionally. By occasionally, I mean that I can't
> reproduce the problem at will even with files for which it happens
> initially. The fact that I do not see any 4xx or 5xx errors indicates to me
> that this is not a AWS credentials issue.
>
> I have enabled vsicurl verbose logging and have observed that I get a 206
> response of the correct length (1985, in my case), indicating that the
> request to AWS S3 has not actually failed and probably has returned the
> expected response.
>
> It does seem suspicious to me that a call to gdal.VsiCurlClearCache()
> appears to resolve the issue immediately, but it isn't clear why that works
> or what the root cause of the underlying issue is.
>
> Any suggestions about how I could debug this would be gratefully accepted.
>
> jon.
>
>
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to