Maybe sharing this is useful for people having mor...
# configs
j
Maybe sharing this is useful for people having more issues since
userEmulation
has been depricated: I traced down weird errors when running mhcquant with singularity profile
Copy code
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
Copy code
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
Copy code
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):
Copy code
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/314
👀 1
✅ 1
I guess the lint error is going to resolve itself: https://nfcore.slack.com/archives/CE5LG7WMB/p1709540643099659
m
You might be better off adding that to the
docker.runOptions
m
@pontus @Anders Sune Pedersen @Rike Hanssen does that remind you of something?
🤔 1
👀 1
a
@Jonas S: Thanks for sharing. We have been dealing with similar issues in Sarek.
r
yeah thats why I told Jonas to also post here 😉
🤣 2
I was actually thinking that this could be a work around to only apply it to the spark containers and not all (and not use the if-else we currently have)
👍 1
m
Yeah, did had time to work on that, sorry
a
I think I can make a PR on that later this evening.