The problem was insufficient policy for the IAM of the EC2, it had no rights for the objects in the bucket.

Ari Jolma kirjoitti 12.10.2021 klo 12.40:
This works:

ari@xps:~/lahde$ ogrinfo -ro /vsis3/lahde-test-test/kuviot01102021.gdb
INFO: Open of `/vsis3/lahde-test-test/kuviot01102021.gdb'
      using driver `OpenFileGDB' successful.
1: kuviot (Multi Polygon)
2: invpsto_osite (None)
ari@xps:~/lahde$ ogrinfo --version
GDAL 3.3.2, released 2021/09/01

but with an older version (apt install gdal-bin in an ec2 machine)

ubuntu@ip-10-23-5-253:~$ ogrinfo -ro /vsis3/lahde-test-test/kuviot01102021.gdb
ERROR 1: Error occurred in filegdbtable.cpp at line 696
FAILURE:
Unable to open datasource `/vsis3/lahde-test-test/kuviot01102021.gdb' with the following drivers.


filegdbtable.cpp:696 is

   returnErrorIf(VSIFReadL( abyHeader, 40, 1, fpTable ) != 1 );

What might be the issue?

Ari


_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to