# error while running fragment-insertion

**URL:** https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804
**Category:** Technical Support
**Tags:** fragment-insertion
**Created:** [September 28, 2023, 3:54pm UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804 "2023-09-28T15:54:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![salma\_M](https://forum.qiime2.org/user_avatar/forum.qiime2.org/salma_m/32/14180_2.png) [@salma\_M](https://forum.qiime2.org/u/salma_M)
#### Post date: [September 28, 2023, 3:54pm UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804/1 "2023-09-28T15:54:10Z")

</div>

Hello,

I have same problem; I had done PICRUST2 analysis before on a group of my data using qiime2-2022.2 version few months a go using virtual box and everything went very well. Now it seems that qiime does not support running analysis using virtual box, so I installed Ubuntu and then Qiime2 2023.7 and picrust2 on my new laptop with 16 GB of RAM, however checking on the terminal show free space around 7GB ...  
"(qiime2-2023.7) wsl@Salma:~/picrust2-combined-cecum-feces$ free  
total used free shared buff/cache available  
Mem: 7975196 560708 139064 3196 7275424 7111140  
Swap: 2097152 0 2097152"  
Unfortunately I am stuck at the Fragment insertion step when trying to run this command;  
qiime fragment-insertion sepp --i-representative-sequences Combined-Cecum-Feces-rep-seqs.qza --i-reference-database picrust2\_default\_sepp\_ref.qza --output-dir sepp\_output --p-threads 1 --p-debug --verbose  
Plugin error from fragment-insertion:

Command '['run-sepp.sh', '/tmp/qiime2/wsl/data/935d1ae2-7ea5-4f7c-bcf8-9b8d5eaba6fa/data/dna-sequences.fasta', 'q2-fragment-insertion', '-x', '1', '-A', '1000', '-P', '5000', '-a', '/tmp/qiime2/wsl/data/2028ee20-c65b-470e-9cf5-80e2b4e28d0d/data/aligned-dna-sequences.fasta', '-t', '/tmp/qiime2/wsl/data/2028ee20-c65b-470e-9cf5-80e2b4e28d0d/data/tree.nwk', '-r', '/tmp/qiime2/wsl/data/2028ee20-c65b-470e-9cf5-80e2b4e28d0d/data/raxml-info.txt', '-b', '1']' returned non-zero exit status 1.

See above for debug info. (The debug info is very long but I can save it and send it to you if it may help)  
, and I keep getting this error Plugin error from fragment-insertion after 30-40 minutes or more:

So this is my question, could this error be related to a bug for the most updated qiime2 version? I tried to downgrade the install qiime but again I could not run this step, and got an error on rep.seqs.qza showing that it is generated on qiime2. 2023.7 version and it was not compatible for this picrust2 fragment insertion step. Please keep me posted. Thank you.

---

<div class="post-metadata">

### Author: ![Oddant1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/oddant1/32/17130_2.png) [@Oddant1](https://forum.qiime2.org/u/Oddant1)
#### Post date: [September 28, 2023, 10:38pm UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804/3 "2023-09-28T22:38:53Z")

</div>

Hello @salma_M. If your laptop is meant to have 16gigs, this could mean that it has 2 8gig sticks and one isn't being recognized for some reason which would explain why your `free` command is only showing 8gigs of RAM. If you open up your system info screen, how much RAM does it say you have? Additionally, did you dual boot Ubuntu alongside Windows or another OS? If so, you can check how much RAM that OS shows.

If you run your QIIME 2 command then in another terminal. If you run `/usr/bin/time -v {your_command}` the output will show, among other things, the maximum amount of memory your command used. It seems likely you are running out.

---

<div class="post-metadata">

### Author: ![salma\_M](https://forum.qiime2.org/user_avatar/forum.qiime2.org/salma_m/32/14180_2.png) [@salma\_M](https://forum.qiime2.org/u/salma_M)
#### Post date: [September 30, 2023, 12:28am UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804/5 "2023-09-30T00:28:18Z")

</div>

Hello @Oddant1 ;

Thank you for the reply. The system shows 16 GB of installed RAM with 15.7 GB of usable RAM. However, for an unknown reason, the system information shows only 8 GB of available physical memory. I assume that no more than half of the total system RAM would be available for such analysis. I have not dual-booted Ubuntu alongside Windows, but I am using it on WSL. I'm not sure if WSL behaves the same way or not.

Initially, I thought there might be a problem with the fragment insertion step in the latest version of Qiime2. But, as you mentioned, it is likely a RAM issue since my current analysis involves double the number of samples compared to the ones I did before. I may need to acquire external RAM. Thank you for your help.

Salma

---

<div class="post-metadata">

### Author: ![Oddant1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/oddant1/32/17130_2.png) [@Oddant1](https://forum.qiime2.org/u/Oddant1)
#### Post date: [October 2, 2023, 4:38pm UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804/6 "2023-10-02T16:38:07Z")

</div>

Yeah that makes sense WSL only has access to half your RAM. It does sound like you will need to run your analysis on a system with more RAM.

---

<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: [November 2, 2023, 10:38pm UTC](https://forum.qiime2.org/t/error-while-running-fragment-insertion/27804/7 "2023-11-02T22:38:57Z")

</div>

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