Weird error from rnaseq pipeline this morning: ```...
# rnaseq
m
Weird error from rnaseq pipeline this morning:
Copy code
line 3: /mnt/workflow/5879204/84ccc8cb-36bf-8904-0e14-2c09781e4206/definition/bin/deseq2_qc.r: Permission denied
This is the only thing in the
NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM
task log
Copy code
task: name=NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM; work-dir=/mnt/workflow/5879204/84ccc8cb-36bf-8904-0e14-2c09781e4206/2f/294166a2afafb3a98af767f4289610
  error [nextflow.exception.ProcessFailedException]: Process `NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM` terminated with an error exit status (1)
Sep-29 11:00:37.249 [TaskFinalizer-3] ERROR nextflow.processor.TaskProcessor - Error executing process > 'NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM'

Caused by:
  Process `NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM` terminated with an error exit status (1)


Command executed:

  deseq2_qc.r \
      --count_file rsem.merged.gene_counts.tsv \
      --outdir ./ \
      --cores 6 \
      --outprefix deseq2 \
      --id_col 1 --sample_suffix '' --count_col 3 --vst TRUE
  
  if [ -f "R_sessionInfo.log" ]; then
      # Handle PCA files
      sed "s/deseq2_pca/star_rsem_deseq2_pca/g" <deseq2_pca_header.txt > pca_header.tmp
      sed -i -e "s/DESeq2 PCA/STAR_RSEM DESeq2 PCA/g" pca_header.tmp
      cat pca_header.tmp *.pca.vals.txt > star_rsem.pca.vals_mqc.tsv
      rm pca_header.tmp
  
      # Handle clustering files
      sed "s/deseq2_clustering/star_rsem_deseq2_clustering/g" <deseq2_clustering_header.txt > clustering_header.tmp
      sed -i -e "s/DESeq2 sample/STAR_RSEM DESeq2 sample/g" clustering_header.tmp
      cat clustering_header.tmp *.sample.dists.txt > star_rsem.sample.dists_mqc.tsv
      rm clustering_header.tmp
  fi
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM":
      r-base: $(echo $(R --version 2>&1) | sed 's/^.*R version //; s/ .*$//')
      bioconductor-deseq2: $(Rscript -e "library(DESeq2); cat(as.character(packageVersion('DESeq2')))")
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  .command.sh: line 3: /mnt/workflow/5879204/84ccc8cb-36bf-8904-0e14-2c09781e4206/definition/bin/deseq2_qc.r: Permission denied

Work dir:
  /mnt/workflow/5879204/84ccc8cb-36bf-8904-0e14-2c09781e4206/2f/294166a2afafb3a98af767f4289610

Container:
  265676937214.dkr.ecr.us-east-1.amazonaws.com/quay/biocontainers/mulled-v2-8849acf39a43cdd6c839a369a74c0adc823e2f91:ab110436faf952a33575c64dd74615a84011450b-0@sha256:d2db38b68b3ad9a4fd817d3c3cb67792ddcefff87049af5d851fe93af9a56893

Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`
Sep-29 11:00:37.253 [Actor Thread 32] WARN  nextflow.cache.OmicsCacheDB - [NFCORE_RNASEQ:RNASEQ:DESEQ2_QC_RSEM] RUN_CACHE No cache produced for task. Task definition produces no output.
Sep-29 11:00:37.254 [TaskFinalizer-3] INFO  nextflow.Session - Execution cancelled -- Finishing pending tasks before exit
Sep-29 11:00:37.261 [TaskFinalizer-3] ERROR nextflow.Nextflow - Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting
permissions for this are set in the docker image, arent they?
oh, it seems that this script is in the nf-core repo under /bin ? is this then related to how it is mounted / copied to the instance running the task?