Plugin error from dada2: An error was encountered while running DADA2 in R (return code 1)

**Hi, **
Im currently running on a linux server: (qiime2-2019.1) bash-4.1$ qiime dada2 denoise-single --i-demultiplexed-seqs demux-single-end.qza --p-trim-left 0 --p-trunc-len 125 --o-representative-sequences rep-seqs-dada2.qza --o-table table-dada2.qza --o-denoising-stats stats-dada2.qza

and have encounted this error:
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 /short/dq69/js1541/tmp/qiime2-q2cli-err-3o7a9lv2.log

When looking into the log, it reads:

Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.

Command: run_dada_single.R /short/dq69/js1541/tmp/qiime2-archive-rwa2cfkv/a7728b0f-f74a-4de6-94cb-7de1a01fdbe9/data /short/dq69/js1541/tmp/tmpu498hn3e/output.tsv.biom /short/dq69/js1541/tmp/tmpu498hn3e/track.tsv /short/dq69/js1541/tmp/tmpu498hn3e 125 0 2.0 2 Inf consensus 1.0 1 1000000 NULL 16

R version 3.3.0 (2016-05-03)
Loading required package: Rcpp
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/short/dq69/miniconda3/envs/qiime2-2019.1/lib/R/library/rlang/libs/rlang.so':
/short/dq69/miniconda3/envs/qiime2-2019.1/lib/R/library/rlang/libs/rlang.so: undefined symbol: R_ExternalPtrAddrFn
Error: package or namespace load failed for ‘dada2’
Execution halted
Traceback (most recent call last):
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 152, in _denoise_single
run_commands([cmd])
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 36, in run_commands
subprocess.run(cmd, check=True)
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_single.R', '/short/dq69/js1541/tmp/qiime2-archive-rwa2cfkv/a7728b0f-f74a-4de6-94cb-7de1a01fdbe9/data', '/short/dq69/js1541/tmp/tmpu498hn3e/output.tsv.biom', '/short/dq69/js1541/tmp/tmpu498hn3e/track.tsv', '/short/dq69/js1541/tmp/tmpu498hn3e', '125', '0', '2.0', '2', 'Inf', 'consensus', '1.0', '1', '1000000', 'NULL', '16']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2cli/commands.py", line 274, in call
results = action(**arguments)
File "</short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/decorator.py:decorator-gen-440>", line 2, in denoise_single
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py", line 231, in bound_callable
output_types, provenance)
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py", line 365, in callable_executor
output_views = self._callable(**view_args)
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 187, in denoise_single
band_size='16')
File "/short/dq69/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 163, in _denoise_single
" and stderr to learn more." % e.returncode)
Exception: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.

Does this have something to do with the version of R packages available?

I am new to Qiime + Linux servers so any assistance would be greatly appreciated :slight_smile:

**Thanks in advance, **

Jordan

Hello @JordanS!

That's weird, where did your dada2 installation go?

That's weird, too! QIIME 2 2019.1 ships with R 3.4.1, not 3.3.0

So, the first thing that comes to mind here is that there is a problem with your conda environment --- if you reinstall 2019.1 (or better yet, install 2019.4), does the problem go away? If not, can you run the env command, and return the results here? Thanks! :qiime2:

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