Nextflow not generating process work folder

Hello,

I’m noting that my scripts in nextflow isn’t generating a process work directory (under work) as expected. The script throws the following error:

ERROR ~ Error executing process > 'BBDUK (4)'

Caused by:
  Path value cannot be null

Looking more closely at nextflow.log, I can see the following lines, showing that the work dir is being set to null for some reason
.nextflow.log (52.6 KB)
:

Jan.-16 11:35:46.095 [Actor Thread 27] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
  task: name=BBDUK (7); work-dir=null
  error [nextflow.exception.ProcessUnrecoverableException]: Path value cannot be null

Does anyone know what is causing this?

Example script:
rna_test.nf (708 Bytes)

Hello @Jablinski. Welcome to the community forum :slight_smile:

You’ll find work-dir=null in the .nextflow.log when the work dir hasn’t been created. In your case, because the pipeline failed too soon. Inspect your channels, as you may be providing to the process something different from what it is expecting (a path, instead of null).