Julia Griese
05/13/2025, 3:37 PMCommand error:
INFO: Environment variable SINGULARITYENV_TMPDIR is set, but APPTAINERENV_TMPDIR is preferred
INFO: Environment variable SINGULARITYENV_NXF_TASK_WORKDIR is set, but APPTAINERENV_NXF_TASK_WORKDIR is preferred
INFO: Environment variable SINGULARITYENV_NXF_DEBUG is set, but APPTAINERENV_NXF_DEBUG is preferred
INFO: Environment variable SINGULARITYENV_SNIC_TMP is set, but APPTAINERENV_SNIC_TMP is preferred
/bin/bash: line 9: .command.run: Permission denied
Guessing that I need to change my script then, how exactly?Julia Griese
05/13/2025, 3:38 PMpontus
05/13/2025, 4:57 PMpontus
05/13/2025, 5:00 PM-resume flag which can be really useful to get a run through despite random failures)?Julia Griese
05/13/2025, 5:07 PMpontus
05/13/2025, 5:08 PMpontus
05/13/2025, 5:08 PMJulia Griese
05/13/2025, 5:08 PMdrwxrwsr-xJulia Griese
05/13/2025, 5:09 PMJulia Griese
05/13/2025, 5:12 PMJulia Griese
05/13/2025, 5:12 PMpontus
05/13/2025, 5:17 PMpontus
05/13/2025, 5:18 PMls -la from a problematic work directory? It should list .command.run, `.command.sh`and so on.Julia Griese
05/13/2025, 5:22 PMJulia Griese
05/13/2025, 5:24 PM[julgr393@rackham1 griese_xj-4128]$ cd work/f6/5b5ad90eef02f293aa451577f03c20
[julgr393@rackham1 5b5ad90eef02f293aa451577f03c20]$ ls -la
total 40
drwxrwsr-x 2 julgr393 p_griese_xj-4128 4096 May 13 16:31 .
drwxrwsr-x 3 julgr393 p_griese_xj-4128 4096 May 13 16:31 ..
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 0 May 13 16:31 .command.begin
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 534 May 13 16:31 .command.err
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 598 May 13 16:31 .command.log
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 0 May 13 16:31 .command.out
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 12434 May 13 16:31 .command.run
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 867 May 13 16:31 .command.sh
-rw-rw-r-- 1 julgr393 p_griese_xj-4128 3 May 13 16:31 .exitcodeJulia Griese
05/13/2025, 5:24 PMpontus
05/13/2025, 5:25 PMJulia Griese
05/13/2025, 5:26 PMpontus
05/13/2025, 5:30 PMJulia Griese
05/13/2025, 5:53 PMJulia Griese
05/14/2025, 11:37 AMJulia Griese
05/14/2025, 11:37 AM-- Check script '/proj/griese_xj-4128/assets/nf-core/rnaseq/subworkflows/nf-core/utils_nfcore_pipeline/main.nf' at line: 97 or see '.nextflow.log' file for more detailsJulia Griese
05/14/2025, 11:38 AM// Get software versions for pipeline
//
def processVersionsFromYAML(yaml_file) {
def yaml = new org.yaml.snakeyaml.Yaml()
def versions = yaml.load(yaml_file).collectEntries { k, v -> [k.tokenize(':')[-1], v] }
return yaml.dumpAsMap(versions).trim()Julia Griese
05/14/2025, 11:38 AMpontus
05/14/2025, 1:12 PM.command.shPavlin Mitev
05/14/2025, 1:16 PMJulia Griese
05/14/2025, 1:17 PMPavlin Mitev
05/14/2025, 1:19 PMJulia Griese
05/14/2025, 1:19 PMpontus
05/14/2025, 1:20 PMsacct -u YOURUSERNAME should show that if I remember correctly.
Always the same ask - check the logs for recent failures and see if it is the same process that fails.
Possibly change to the one of the work directories where it failed, apptainer shell the corresponding image (e.g. /proj/griese_xj-4128/SINGULARITY_CACHEDIR/depot.galaxyproject.org-singularity-fq-0.12.0--h9ee0642_0.img) and execute bash .command.shpontus
05/14/2025, 1:21 PMpontus
05/14/2025, 1:21 PMJulia Griese
05/14/2025, 1:24 PMJulia Griese
05/14/2025, 1:25 PMsacct -u should show which nodes were used, it does not. I just ran 2 more attempts just to see and they were both on r35.Julia Griese
05/14/2025, 1:27 PMpontus
05/14/2025, 1:27 PMnextflow run nf-core/rnaseq -r 3.18.0 -profile uppmax,test --outdir somedir might be instructive (possibly test_full instead).Julia Griese
05/14/2025, 1:31 PMPavlin Mitev
05/14/2025, 1:35 PMpontus
05/14/2025, 1:36 PMPavlin Mitev
05/14/2025, 1:51 PMpontus
05/14/2025, 1:52 PMcontainer bit in the process is missing, and it's relying on the installed stuff because of that that's another thing.)Pavlin Mitev
05/14/2025, 1:53 PMPavlin Mitev
05/14/2025, 1:58 PMPavlin Mitev
05/14/2025, 2:04 PMpontus
05/14/2025, 2:04 PMpontus
05/14/2025, 2:05 PMpontus
05/14/2025, 2:06 PMPavlin Mitev
05/14/2025, 2:06 PMpontus
05/14/2025, 2:06 PMbash broken, but I don't think that would go undetected for multiple.pontus
05/14/2025, 2:07 PMPavlin Mitev
05/14/2025, 2:08 PMPavlin Mitev
05/14/2025, 2:09 PMJulia Griese
05/14/2025, 2:09 PMpontus
05/14/2025, 2:11 PMPavlin Mitev
05/14/2025, 2:11 PMpontus
05/14/2025, 2:12 PMpontus
05/14/2025, 2:13 PMAdrien Coulier
05/14/2025, 2:29 PMNXF_CHDIR line in .command.run .
It works fine with NXF_VER=24.10.6 though
I've sent a ticket to support@uppmax.uu.se with the detailsPavlin Mitev
05/14/2025, 2:29 PMPavlin Mitev
05/14/2025, 2:39 PMPavlin Mitev
05/14/2025, 2:40 PMPavlin Mitev
05/14/2025, 2:50 PMPavlin Mitev
05/14/2025, 2:52 PMPavlin Mitev
05/14/2025, 2:54 PMMatthias Zepper
05/14/2025, 3:54 PMMatthias Zepper
05/14/2025, 4:00 PMWARN: Directive `process.shell` cannot contain new-line characters - offending value: [bash
Thus the issue might be related to https://github.com/nextflow-io/nextflow/issues/5686Matthias Zepper
05/14/2025, 4:25 PMprocess.shell shipping with the pipeline template could fix it, I presume.
Basically create a custom config nextflow run -c process_shell_fix.conf …
Inside that custom config, this fixed definition
// Set bash options
process.shell = [
"bash",
"-C", // No clobber - prevent output redirection from overwriting files.
"-e", // Exit if a tool returns a non-zero status/exit code
"-u", // Treat unset variables and parameters as an error
"-o", // Returns the status of the last command to exit..
"pipefail" // ..with a non-zero status or zero if all successfully execute
]
would override the faulty definition in the pipeline template.
But that is only an assumption and untested so far (because I lack a good testing environment at the moment)Julia Griese
05/14/2025, 5:15 PMpontus
05/15/2025, 4:34 AMPavlin Mitev
05/15/2025, 6:13 AMmodule load bioinfo-tools
module load Nextflow/latest
export NXF_VER=24.10.6
cd /proj/XXXXX
nextflow run nf-core/rnaseq -r 3.18.0 -profile uppmax,test_full --outdir output --project XXXXXMatthias Zepper
05/15/2025, 6:29 AMBut for my understanding; Julia got hit by this because there was an upgrade that wasn't noticed and going back to earlier versions should be the fastest resolution to get runs through?Yes, downgrading the Nextflow version should do the trick as well. But it feels strange to stay: Hey, all nf-core pipelines of 2024 are incompatible with the latest Nextflow, even though it seems that is exactly what happened.
Pavlin Mitev
05/15/2025, 6:37 AMMatthias Zepper
05/15/2025, 6:43 AMprocess.shell cannot contain new-line characters warning` that I pointed out, then it would be due to an unfortunate config entry that was included in the nf-core pipeline template for a while.
Some pipeline authors fixed it manually before the change was rolled out in the template, because a CI test failed, but we must assume that most nf-core pipeline versions released in 2024 and early 2025 are shipping with that faulty process.shell config entry that breaks with Nextflow 25 versions, because they ignored that the Nextflow latest CI test was failing at the time.
See the pretty comprehensive discussion around the fixing PR here:
https://github.com/nf-core/tools/pull/3416pontus
05/15/2025, 6:44 AMexport NXF_VER=24.10.6) probably makes them a lot happier than troubleshooting stuff. But @Julia Griese might be a beter judge of that 🙂pontus
05/15/2025, 6:47 AMPavlin Mitev
05/15/2025, 6:48 AMPavlin Mitev
05/15/2025, 6:49 AMPhil Ewels
05/15/2025, 9:50 AMJulia Griese
05/15/2025, 3:45 PMexport NXF_VER=24.10.6) ☺️ Thank you!Pavlin Mitev
05/15/2025, 3:46 PMPhil Ewels
05/15/2025, 3:47 PMPhil Ewels
05/15/2025, 3:47 PM