ASHWANI KUMAR SINGH
11/29/2025, 6:44 AMThomas Danhorn
11/29/2025, 9:51 AMsamtools cannot be found. (If you were using containers, it would be in the container.) I think you are not setting the correct configuration for your cluster in your command.ASHWANI KUMAR SINGH
11/29/2025, 11:10 AMThomas Danhorn
11/29/2025, 5:57 PMprofile.conda = "env_nf", you would be overriding that and point to the env_nf environment, which may or may not exist and/or work. A big part of using a pipeline is that you always use the same software to make the results as reproducible as they get, which is why the pipeline provides containers and Conda environments. Running with -profile conda should activate the Conda mode and lead to downloading of the software.ASHWANI KUMAR SINGH
11/30/2025, 7:16 AMThomas Danhorn
11/30/2025, 8:59 PMtime and memory in the profile, because that would assign every process 110 GB and 20 days, which is hugely wasteful (some processes just need 1 GB and maybe 10 minutes, that's why the pipeline has several categories with `label`s that it assigns to the various processes. In my experience for RNAseq, you should almost never need more more than 48 GB of RAM (unless you build an index with multiple genomes, but even for that 70 GB should be enough most of the time), and if a single process runs for 20 days, that's crazy. I would remove those lines and leave the management to the pipeline. (If there is a specific process that needs more of something with your particular samples, you can set that using withName for just that process.) The whole pipeline typically completes in <24 h, unless you have a large number of samples and a slow system. These setting won't lead directly to a crash, but but they still don't make sense.
The accelerator directive is part of the process scope, not of resourceLimits, AFAIK, so I would assume that is being ignored (I'm also not sure what you are hoping to do with it, this normally used to request GPUs, for which which this pipeline is not set up).
If you don't have any clusterOptions that you need to provide, you can leave this line out, but it should not do any harm.
If you want, you can put all the relevant Conda-related directives into your cluster profile (so you don't need to use -profile conda), but it should work fine with profile conda,cluster.
I don't see anything obviously wrong with your setup (hope I'm not missing anything), so ideally this should work (although I recommend fixing the things mentioned above). 🤞ASHWANI KUMAR SINGH
12/06/2025, 5:41 AM.command.sh script and the .command.err file to see the exact command executed and any error messages.
Starting command was,
nextflow run nf-core/rnaseq -r 3.22.0
--input Samplesheet.csv
--outdir /
--fasta /GRCh38.primary_assembly.genome.fa
--gtf gencode.v47.primary_assembly.annotation.gtf
-profile conda,cluster
-c new.config
and, the config,
profiles {
cluster {
process {
conda.enabled=true
executor="pbs"
queue="cpu-q"
accelerator=2
retry.maxAttempt = 2
resourceLimits = [
cpus: 32,
memory: 256.GB,
time: 24.h
]
withLabel:process_low {
cpus = { 2 * task.attempt }
memory = { 14.GB * task.attempt }
time = { 6.h * task.attempt }
}
withLabel:process_medium {
cpus = { 6 * task.attempt }
memory = { 42.GB * task.attempt }
time = { 8.h * task.attempt }
}
withLabel:process_high {
cpus = { 12 * task.attempt }
memory = { 84.GB * task.attempt }
time = { 10.h * task.attempt }
}
}
}Thomas Danhorn
12/07/2025, 2:37 AM.command.run, there should be some commands that load the Conda environment -- if not, you have to find out why the pipeline is not using it (some issue with the configuration?). If an environment does get loaded, you can see which one, and you can load it manually and run samtools --version. If you get a "command not found" (or similar) error, there is something wrong with the environment, and I would reinstall it. (If you get version information from samtools, I have no idea why it is working here, but not in the pipeline.)
Any chance you can use a container engine like Apptainer/Singularity? There tend to be fewer things that can go wrong, compared to Conda.ASHWANI KUMAR SINGH
12/17/2025, 3:09 PMASHWANI KUMAR SINGH
12/17/2025, 3:14 PMThomas Danhorn
12/17/2025, 5:16 PM/pfs/application/singularity/bin/singularity exist? If not, create it. If it does exist, does it have the lock file mentioned in the error (use ls -la to look)? Ideally the container will automatically be downloaded as you run the pipeline, but you can also install the whole pipeline manually with the nf-core tool. But if the target directory does not exist, this would probably cause that type of error.ASHWANI KUMAR SINGH
12/18/2025, 7:50 AMcacheDir was present in /work/singularity/
all the images were pulled on its own
but I am facing this new error,
-[nf-core/rnaseq] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT (THP1_Untreated_3_3)'
Caused by:
Process `NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT (THP1_Untreated_3_3)` terminated with an error exit status (127)
Command executed:
fq lint \
--disable-validator P001 \
THP1_Untreated-3_S3_L002_R1_001.fastq.gz THP1_Untreated-3_S3_L002_R2_001.fastq.gz > THP1_Untreated_3_3.fq_lint.txt
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT":
fq: $(echo $(fq lint --version | sed 's/fq-lint //g'))
END_VERSIONS
Command exit status:
127
Command output:
(empty)
Command error:
env: 'singularity': No such file or directory
Work dir:
/pfs/home/ashwanikumars/crisprseq/work/05/59b23febd6c4c34c0072585e7637ef
Container:
/pfs/home/ashwanikumars/crisprseq/work/singularity/depot.galaxyproject.org-singularity-fq-0.12.0--h9ee0642_0.imgThomas Danhorn
12/18/2025, 7:55 AMsingularity installed? Do you need to load a module to use it, or something?ASHWANI KUMAR SINGH
12/18/2025, 8:17 AMASHWANI KUMAR SINGH
12/18/2025, 9:58 AMprocess {
beforeScript = """
module load singularity/3.8.3
""".stripIndent()ASHWANI KUMAR SINGH
12/18/2025, 9:59 AM-[nf-core/rnaseq] Pipeline completed with errors-
WARN: Got an interrupted exception while taking agent result | java.lang.InterruptedException
WARN: Killing running tasks (2)
ERROR ~ Error executing process > 'NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES (GRCh38.primary_assembly.genome.fa)'
Caused by:
Process `NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES (GRCh38.primary_assembly.genome.fa)` terminated with an error exit status (255)
Command executed:
samtools faidx GRCh38.primary_assembly.genome.fa
cut -f 1,2 GRCh38.primary_assembly.genome.fa.fai > GRCh38.primary_assembly.genome.fa.sizes
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES":
getchromsizes: $(echo $(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*$//')
END_VERSIONS
Command exit status:
255
Command output:
(empty)
Command error:
free(): invalid pointer
FATAL: container creation failed: mount tmpfs->/pfs/application/singularity/var/singularity/mnt/session error: while mounting tmpfs: can't mount tmpfs filesystem to /pfs/application/singularity/var/singularity/mnt/session: write unix @->@: write: broken pipe
Work dir:
/pfs/home/ashwanikumars/crisprseq/work/b6/4102c4d06938ae11fb814a22a72856
Container:
/pfs/home/ashwanikumars/crisprseq/work/singularity/depot.galaxyproject.org-singularity-samtools-1.21--h50ea8bc_0.img
Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`
-- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting
-- Check '.nextflow.log' file for details
ERROR ~ Cannot invoke "java.nio.file.Path.getFileSystem()" because "path" is null
-- Check script '/pfs/home/ashwanikumars/.nextflow/assets/nf-core/rnaseq/subworkflows/nf-core/utils_nfcore_pipeline/main.nf' at line: 82 or see '.nextflow.log' file for more details
WARN: Failed to render execution report -- see the log file for details
WARN: Failed to render execution timeline -- see the log file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting
-- Check '.nextflow.log' file for details