Jonas S
03/04/2024, 3:51 PMuserEmulation has been depricated:
I traced down weird errors when running mhcquant with singularity profile
Command error:
FATAL: While checking container encryption: could not open image /scratch/11088655/nxf.NWeFRUPFPK/61946: failed to retrieve path for /scratch/11088655/nxf.NWeFRUPFPK/61946: lstat /scratch/11088655/nxf.NWeFRUPFPK
/61946: no such file or directory
The error was introduced here by setting
https://github.com/nf-core/mhcquant/pull/302/files
withName: 'MS2RESCORE' {
containerOptions = '-u $(id -u) -e "HOME=${HOME}" -v /etc/passwd:/etc/passwd:ro -v /etc/shadow:/etc/shadow:ro -v /etc/group:/etc/group:ro -v $HOME:$HOME'
in modules.config and
docker {
...
process.containerOptions = '-u $(id -u):$(id -g)'
}
in nextflow.config
Initially I naively thought that containerOptions is only applied with docker profile, but that is not the case facepalm .
Solution (in local module):
containerOptions = (workflow.containerEngine == 'docker') ? '-u $(id -u) -e "HOME=${HOME}" -v /etc/passwd:/etc/passwd:ro -v /etc/shadow:/etc/shadow:ro -v /etc/group:/etc/group:ro -v $HOME:$HOME' : ''
Long story short: Can I get a review for the fix? 😄 https://github.com/nf-core/mhcquant/pull/314Jonas S
03/04/2024, 3:53 PMMahesh Binzer-Panchal
03/04/2024, 4:03 PMdocker.runOptionsMaxime Garcia
03/04/2024, 4:08 PMAnders Sune Pedersen
03/04/2024, 4:19 PMRike Hanssen
03/04/2024, 4:47 PMRike Hanssen
03/04/2024, 4:48 PMMaxime Garcia
03/04/2024, 4:52 PMAnders Sune Pedersen
03/04/2024, 5:02 PM