[FIX] Cross-device hard links exception #33
Merged
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.
I just had the same problem #17 with my resource.
The error happens when accessing the output of another job from the same process, in the same resource. So the command binds -B
/work/<process>/<job>
and tries to hard-link e.g./work/<process>/<another job>
From what I could investigate, by binding the job directory, it considers to be in another device even if one is a subtree of another (
-B /work/<process> -B /work/<process>/<job>
):One solution would be to not bind anything. However it will rely on the cluster Singularity configuration, which is not ideal.
Another solution would be to only bind the process directory (in this case
62b2095ae0370ed92af3a543
). This will allow access to the output from the jobs within the same process, in the same machine.In the solution here, I implement the binding change. It is now working on my resource.