Nextflow docker: Error response from daemon
0
0
Entering edit mode
6 months ago
Peter Chung ▴ 210

hello I have an error when I ran the nextflow sarek pipeline:

nextflow -bg run nf-core/sarek -r 3.4.0 -params-file params_samplesheet_F52_3.json -profile docker &

Workflow execution completed unsuccessfully!
The exit status of the task that caused the workflow execution to fail was: 125.

The full error message was:

Error executing process > 'NFCORE_SAREK:SAREK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR (120236)'

Caused by:
  Process `NFCORE_SAREK:SAREK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR (120236)` terminated with an error exit status 
(125)

Command executed:

  gatk --java-options "-Xmx3276M -XX:-UsePerfData" \
      BaseRecalibrator  \
      --input 120236.converted.cram \
      --output 120236_chr1_122026460-124977944.recal.table \
      --reference Homo_sapiens_assembly38.fasta \
      --intervals chr1_122026460-124977944.bed \
      --known-sites dbsnp_146.hg38.vcf.gz --known-sites Mills_and_1000G_gold_standard.indels.hg38.vcf.gz --known-sites 
Homo_sapiens_assembly38.known_indels.vcf.gz \
      --tmp-dir . \


  cat <<-END_VERSIONS > versions.yml
  "NFCORE_SAREK:SAREK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR":
      gatk4: $(echo $(gatk --version 2>&1) | sed 's/^.*(GATK) v//; s/ .*$//')
  END_VERSIONS

Command exit status:
  125

Command output:
  (empty)

Command error:
  docker: Error response from daemon: failed to create endpoint nxf-02MAUnCuusW7YHwLnsBbzWSA on network bridge: failed to add the host 
(vethe58dde8) <=> sandbox (veth83d3dac) pair interfaces: cannot allocate memory.
  time="2024-05-21T11:53:49+08:00" level=error msg="error waiting for container: context canceled"

Work dir:
  /data/hhgphk/runF52/work/00/8748af7adb7ffb4cbacc79d0fedbca

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`

I tried to add the memory limit to docker file:

sudo nano /etc/default/docker
DOCKER_OPTS="--default-memory-limit=32768m --default-memory-swap=65536m"

My docker and nextflow version: Docker version 20.10.24, build 297e128

  N E X T F L O W
  version 23.10.0 build 5889
  created 15-10-2023 15:07 UTC (23:07 HKST)
  cite doi:10.1038/nbt.3820
  http://nextflow.io

But it still does not work. I am new to nextflow, can anyone give me advice. Thanks.

sarek gatk4 docker nextflow • 336 views
ADD COMMENT
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 1518 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6