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

ldpaths error when using prepare.yaml conda env #20

Open
aryarm opened this issue Oct 23, 2020 · 1 comment
Open

ldpaths error when using prepare.yaml conda env #20

aryarm opened this issue Oct 23, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@aryarm
Copy link
Owner

aryarm commented Oct 23, 2020

When running the prepare subworkflow, users of VarCA might occasionally run into the following error:

$CONDA_PREFIX/lib/R/bin/R: line 238: $CONDA_PREFIX/lib/R/etc/ldpaths: No such file or directory

This error can happen when Snakemake activates the prepare conda environment from two different processes at the same time on an NFS file system. This is usually a rare occurrence unless you are running many samples through the pipeline simultaneously. The problem (and some potential solutions) is discussed at length in this Github issue.

If this error happens to you, it is essentially because of bad luck. Because the issue leads to a corrupted R installation within the prepare conda environment that Snakemake created, we recommend deleting the prepare conda environment, so that Snakemake can automatically recreate it afresh. You can determine where the prepare conda environment was created by running snakemake --list-conda-envs and then delete it using rm -r.
To reduce your chances of running into this problem in the future, you can limit the number of jobs that run simultaneously by passing a smaller number of cores to Snakemake via the -j parameter in the run.bash script. The tradeoff of this approach is that VarCA may take longer to finish executing.

There are currently no plans for us to resolve this issue, since it is a bug within conda-forge and not within VarCA. But feel free to let us know below if you have any suggestions.

@aryarm aryarm added bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on and removed help wanted Extra attention is needed labels Oct 23, 2020
@aryarm
Copy link
Owner Author

aryarm commented Jul 3, 2021

In the interim, one solution that I've seen is to find the conda environment and just call the Rscript within it, rather than activating the environment itself. In all honesty, this seems to me like a sketchy hack that would be difficult to implement properly, but I figured I would I would include it in this thread for the record. It's a solution we could possibly try.

@aryarm aryarm added the help wanted Extra attention is needed label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant