EUDAT-B2STAGE / http-api

RESTful HTTP-API for the B2STAGE service inside the EUDAT project
https://eudat-b2stage.github.io/http-api/
MIT License
7 stars 7 forks source link

Critical mixed up config values. #140

Closed merretbuurman closed 5 years ago

merretbuurman commented 5 years ago

During enabling, the data should be written into a directory on the host (e.g. on the NFS share), defined by RESOURCES_LOCALPATH.

In the ingestion.py, instead of RESOURCES_LOCALPATH, the value of SEADATA_RESOURCES_MOUNTPOINT was used. SEADATA_RESOURCES_MOUNTPOINT is the location where data is located inside the containers ( /usr/share/...), not on the host filesystem (where is it usually something like /nfs/share).

This error causes the enabling + upload to break, unless there is a link from nfs/shareto /usr/share on FS level, or they coincidentally have the same value.

Proposed fix: Use RESOURCES_LOCALPATH during any filesystem reads or writes which are outside containers (and outside irods).

merretbuurman commented 5 years ago

Hm. In my testbed, neither of both works. It used to work. I'm not sure what's the error. None of the directories is mounted into the b2stage containers, so I am not sure how this used to work. Any help is appreciated :)

mdantonio commented 5 years ago

HTTP api cannot write on a directory on the host. The host folder LOCALPATH is mounted into the container as MOUNTPOINT

Are you running with --mode production? In this case, please run with --mode seadata and everything should work

merretbuurman commented 5 years ago

Hi, thanks for the very quick reply! Yes, that makes sense, as b2stage also runs in a container. I was running it with production, will test with seadata and close the issue then.

merretbuurman commented 5 years ago

Tested in seadata mode, it works, so this issue is not an issue and needs no solving. Closing it.