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

Fix Singularity container startup #52

Open
vinjana opened this issue Jul 28, 2023 · 1 comment · May be fixed by #57
Open

Fix Singularity container startup #52

vinjana opened this issue Jul 28, 2023 · 1 comment · May be fixed by #57
Labels
bug Something isn't working question Further information is requested

Comments

@vinjana
Copy link
Member

vinjana commented Jul 28, 2023

On a another workflow I got problems with running a similar container with Nextflow 22. There the Singularity container will fail to initialize the Conda environment. Not sure why this wasn't a problem in the past, but Nextflow uses singularity exec to execute the container. exec does not run the runscript section (by definition). Additionally, bash, as called by Nextflow (non-interactive, non-login) failed to load any of the initialization files (I tried even --init-file), so an initialization via /etc/bash.bashrc seemed not to be possible.

To-Do

  1. Check whether we have the same problems here.
  2. If so, see here how the fix is done for another workflow with a dedicated Singularity.def that has an %environment block.
@vinjana vinjana added bug Something isn't working question Further information is requested labels Jul 28, 2023
@vinjana
Copy link
Member Author

vinjana commented Aug 31, 2023

Add singularity.runOptions = "--no-home" to the "singularity" block in the nextflow.config. This will prevent automatic loading of the .bashrc and the Conda initialization done there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant