FIX: extend read/execute permissions to all files used by BIBSnet #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #132
Fixes #133
Since the devs are already giving all users read+execute permissions to all files in
/home/bibsnet/src
, I am assuming that it is okay with the devs to extend this to/home/bibsnet/data
and/opt/nnUNet
Long story:
Both of the linked issues arose from file permission issues, specifically for
users
who are in theothers
permission group (i.e. not in theuser
orgroup
groups).For example, on
main
, if you enter into the docker container with:docker run -it --entrypoint /bin/bash dcanumn/bibsnet:latest
OR
singularity shell --nv --cleanenv --no-home /home/path/to/bibsnet.sif
These are the permissions for
/home/bibsnet/data
:models.csv
is unreadable for users in theothers
permission group. This causes bibsnet to crash: Permissions error using singularity with latest image (3.4.x) #132And:
In the docker image I get:
But in the singularity image I get:
d????????? ? ? ? ? ? Task540
others
permission group. This causes BIBSnet to crash with an error message that was hard to interpret:RuntimeError: Could not find a task with the ID 541.
: RuntimeError: Could not find a task with the ID (540) #133This was a really nasty one to debug.... I think it might be worth including a test that asserts that all files needed by BIBSnet give read+execute permissions to all users, to avoid a code regression in the future.