# Dada2 Fails: Error Log Attached

**URL:** <https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400>\
**Category:** Technical Support\
**Tags:** dada2\
**Created:** [August 16, 2023, 12:41am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400 "2023-08-16T00:41:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)\
**Post date:** [August 16, 2023, 12:41am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400/1 "2023-08-16T00:41:50Z")

</div>

Hello,

I am on an M2 macbook pro running qiime2 2023.5 in a docker container. I followed the installation process detailed in the qiime2 docs for the docker install. Qiime2 loads and works! However, in the moving pictures tutorial the following command fails:

```auto
qiime dada2 denoise-single \
  --i-demultiplexed-seqs demux.qza \
  --p-trim-left 0 \
  --p-trunc-len 120 \
  --p-n-threads 12 \
  --o-representative-sequences rep-seqs-dada2.qza \
  --o-table table-dada2.qza \
  --o-denoising-stats stats-dada2.qza

```

The output is:

> Plugin error from dada2:
> 
> An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.
> 
> Debug info has been saved to /tmp/qiime2-q2cli-err-7b5l16sn.log

Attached is the log output. I feel like this is an issue due to being on apple silicon, however, I activated the docker environment specifying linux/amd64.

This is how I start my docker qiime2 container.

```auto
docker run --platform linux/amd64 --rm -it \
    -u $(id -u):$(id -g) \
    -v $(pwd):/data \
      quay.io/qiime2/core:2023.5 \
        /bin/bash

```

Thanks in advance for your insight!

Stephan  
[qiime2-q2cli-err-nezves5p.txt](https://forum.qiime2.org/uploads/short-url/2m2XnxqVxDuio8KiOJWGHligF2H.txt) (4.1 KB)

---

<div class="post-metadata">

**Author:** ![5cr34m](https://forum.qiime2.org/user_avatar/forum.qiime2.org/5cr34m/32/16484_2.png) [@5cr34m](https://forum.qiime2.org/u/5cr34m)\
**Post date:** [August 16, 2023, 2:07am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400/2 "2023-08-16T02:07:52Z")

</div>

Hi.  
It is performance problem. See [Denoising error, names attribute must be the same length as vector - #2 by Nicholas\_Bokulich](https://forum.qiime2.org/t/denoising-error-names-attribute-must-be-the-same-length-as-vector/12058/2)  
Regards, SN

---

<div class="post-metadata">

**Author:** ![Stephan\_Bitterwolf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/stephan_bitterwolf/32/8804_2.png) [@Stephan\_Bitterwolf](https://forum.qiime2.org/u/Stephan_Bitterwolf)\
**Post date:** [August 16, 2023, 2:43am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400/3 "2023-08-16T02:43:20Z")

</div>

Thanks SN,

Oh yes, thats true for me too. It worked with 1 core but took quite a while and used less than 10% of the cpu.

This seems like a bug to me. Are there any plans for fixing it? Dada2 should at least say how many cores can work based on the data size or output an error message that says something like: "too many cores used".

Best,

Stephan

---

<div class="post-metadata">

**Author:** ![5cr34m](https://forum.qiime2.org/user_avatar/forum.qiime2.org/5cr34m/32/16484_2.png) [@5cr34m](https://forum.qiime2.org/u/5cr34m)\
**Post date:** [August 16, 2023, 3:03am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400/4 "2023-08-16T03:03:46Z")

</div>

Nice!

> [@Stephan\_Bitterwolf](#):
>
> Are there any plans for fixing it?

You can ask for it directly here [GitHub - benjjneb/dada2: Accurate sample inference from amplicon data with single nucleotide resolution](https://github.com/benjjneb/dada2/)

Regards,  
SN

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [September 16, 2023, 9:04am UTC](https://forum.qiime2.org/t/dada2-fails-error-log-attached/27400/5 "2023-09-16T09:04:35Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
