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

Cannot open files via host mounted Network File System volume. #12

Open
Ouwen opened this issue Mar 17, 2018 · 1 comment
Open

Cannot open files via host mounted Network File System volume. #12

Ouwen opened this issue Mar 17, 2018 · 1 comment

Comments

@Ouwen
Copy link

Ouwen commented Mar 17, 2018

I am trying to run this volume mounted docker container on top of a host which has an NFS. However, whenever I use the python gdal.Open command on a file that exists, it will hang indefinitely.

Here are the commands to reproduce the issue using amazon EFS

  1. Spin up a machine and mount the EFS file system.
mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 <your-fs-id>.efs.<your-region.amazonaws.com:/ /mnt/efs
  1. Run the container and mount the NFS volume
sudo docker run -it -v /mnt/efs:/mnt/efs geodata/gdal /bin/bash
  1. Run the gdal.Open command in python
from osgeo import gdal
gdal.Open("/mnt/efs/<file>")

Interestingly I can run os level commands on files in the EFS no problem. For example if I copy the /mnt/efs/<file> into a local directory. The gdal command works fine on the local file.

@JohanMollevik
Copy link

I have a similar issue
When I run gdal on a file in /root/volume which is a folder mounted as a docker volume from the root filesystem gdal fails with ERROR 4
When i move that file to /tmp the gdla commands work

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

2 participants