Description of the bug
Issue:
The REPORT process fails with ERROR: NotFound: No such file or directory (os error 2): tmpdir when running Quarto in Singularity containers.
Related Issues
This appears to be related to known Quarto-in-Singularity compatibility issues (see quarto-cli#2559)
Cause:
Quarto requires write access to temporary directories, but the containerised environment doesn't have them pre-created.
Minimal Working Solution:
Create necessary directories and set environment variables before running Quarto in modules/local/report/main.nf:
script:
"""
# Create necessary directories for Quarto in container
export HOME="\$PWD"
mkdir -p "\$HOME/.cache"
mkdir -p "\$HOME/tmp"
export TMPDIR="\$HOME/tmp"
export TEMP="\$TMPDIR"
export TMP="\$TMPDIR"
quarto render report.qmd \\
--profile base,nanoq,quast,busco,jellyfish,merqury \\
-P nanoq:true -P quast:true -P busco:true -P jellyfish:true -P merqury:true \\
--to dashboard
...
"""
Command used and terminal output
Relevant files
No response
System information
No response
Description of the bug
Issue:
The REPORT process fails with
ERROR: NotFound: No such file or directory (os error 2): tmpdirwhen running Quarto in Singularity containers.Related Issues
This appears to be related to known Quarto-in-Singularity compatibility issues (see quarto-cli#2559)
Cause:
Quarto requires write access to temporary directories, but the containerised environment doesn't have them pre-created.
Minimal Working Solution:
Create necessary directories and set environment variables before running Quarto in
modules/local/report/main.nf:Command used and terminal output
Relevant files
No response
System information
No response