From b261b1c558dc5e328beb7b327c6a676b6b6589eb Mon Sep 17 00:00:00 2001 From: Chris Wyatt <9978862+chriswyatt1@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:59:59 +0200 Subject: [PATCH] Update ucl_myriad.md Add troubleshooting --- docs/ucl_myriad.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/ucl_myriad.md b/docs/ucl_myriad.md index 45ccbb035..2c758d970 100644 --- a/docs/ucl_myriad.md +++ b/docs/ucl_myriad.md @@ -22,6 +22,8 @@ export APPTAINER_LOCALCACHEDIR=/home//Scratch/.apptainer/localcache export APPTAINER_PULLFOLDER=/home//Scratch/.apptainer/pull ``` +**Warning**: You may need to outcomment any singularity environmental variables you have set previously. + ### Nextflow Download the latest release of nextflow. Warning: the self-update line should update to the latest version, but sometimes not, so please check which is the latest release (https://github.com/nextflow-io/nextflow/releases), you can then manually set this by entering (`NXF_VER=XX.XX.X`). @@ -40,3 +42,27 @@ Then make sure that your bin PATH is executable, by placing the following line i ```bash export PATH=$PATH:/home//bin ``` + +### Common troubleshooting issues: + +1. If your job gets terminated by SIGHUP, you should then submit your nextflow script within a job: + +`qsub -l h_rt=48:00:00 -l mem_free=40G -pe smp 1 -b y nextflow run` + +2. If a job fails due to apptainer requiring too much cpu/memory, from the `mksquashfs` process. + +Then make a sge qsub script to pull the container using apptainer, then point to the location of the resultant SIF files. + +e.g. + +```bash +#!/bin/bash -l +#$ -l h_rt=3:0:0 +#$ -l mem=50G +#$ -N Apptainer_pull +#$ -wd /home//Scratch/ +#$ -e /home//Scratch/ + +# Pull a container. +apptainer pull docker://kanghu/hite:3.2.0 +```