# Metaphlan 3 md5 error

**URL:** <https://forum.biobakery.org/t/metaphlan-3-md5-error/484>\
**Category:** MetaPhlAn\
**Created:** [May 15, 2020, 6:56pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484 "2020-05-15T18:56:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![barichd](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@barichd](https://forum.biobakery.org/u/barichd)\
**Post date:** [May 15, 2020, 6:56pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/1 "2020-05-15T18:56:52Z")

</div>

I’ve tried running metaphlan 3 on our data multiple times, but I keep getting repeated errors like this one. Clearing the metaphlan database directory as instructed doesn’t fix the problem.

Downloading MetaPhlAn database  
Please note due to the size this might take a few minutes

File /opt/anaconda/lib/python3.7/site-packages/metaphlan/metaphlan\_databases/file\_list.txt already present!

File /opt/anaconda/lib/python3.7/site-packages/metaphlan/metaphlan\_databases/mpa\_v30\_CHOCOPhlAn\_201901.tar already present!

File /opt/anaconda/lib/python3.7/site-packages/metaphlan/metaphlan\_databases/mpa\_v30\_CHOCOPhlAn\_201901.md5 already present!  
MD5 checksums do not correspond! If this happens again, you should remove the database files and rerun MetaPhlAn so they are re-downloaded

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [May 16, 2020, 2:02pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/2 "2020-05-16T14:02:22Z")

</div>

Have you removed also the tar and the md5 file? I have run `metaphlan --install` from a clean install and the checksum is OK

---

<div class="post-metadata">

**Author:** ![jfessler](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jfessler](https://forum.biobakery.org/u/jfessler)\
**Post date:** [May 22, 2020, 1:41pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/3 "2020-05-22T13:41:35Z")

</div>

Hi, I am having the same issue with metaphlan2 (v2.7.7). When I try to download the bowtie2db with the following onto my personal server space (operating on HPC) I get an error.

```
[jfessler@cri16cn057 metaphlan2]$ metaphlan2.py --install --bowtie2db mpa_v20_m200

Downloading MetaPhlAn2 database
Please note due to the size this might take a few minutes

Downloading https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.tar
Enter username for Bitbucket.org HTTP at bitbucket.org:jfessler22
Enter password for in Bitbucket.org HTTP at bitbucket.org:

Downloading https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.md5
Enter username for Bitbucket.org HTTP at bitbucket.org:jfessler22
Enter password for in Bitbucket.org HTTP at bitbucket.org:
MD5 checksums not found, something went wrong!

```

Similarly if I try to run metaphlan2 pointing towards a new folder to download the bowtie2db I get the same error.

The result is a folder created with two empty files: `mpa_v20_m200.md5` and `mpa_v20_m200.tar`

Any suggestions? The MetaPhlAn software has been installed onto our HPC by system admin.

---

<div class="post-metadata">

**Author:** ![jfessler](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jfessler](https://forum.biobakery.org/u/jfessler)\
**Post date:** [May 22, 2020, 2:09pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/4 "2020-05-22T14:09:27Z")

</div>

Oh I see now in this [other thread](https://forum.biobakery.org/t/no-db-v20-found/453) that this version might be pointing to the incorrect location for the download. I will see if our system admin can update our version.

---

<div class="post-metadata">

**Author:** ![barichd](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@barichd](https://forum.biobakery.org/u/barichd)\
**Post date:** [June 10, 2020, 3:42pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/5 "2020-06-10T15:42:04Z")

</div>

I reinstalled metaphlan3 and now I get the following error when I run metaphlan --install:

Downloading MetaPhlAn database  
Please note due to the size this might take a few minutes

File /opt/anaconda/envs/mpa/lib/python3.6/site-packages/metaphlan/metaphlan\_databases/file\_list.txt already present!  
Traceback (most recent call last):  
File “/opt/anaconda/envs/mpa/bin/metaphlan”, line 10, in   
sys.exit(main())  
File “/opt/anaconda/envs/mpa/lib/python3.6/site-packages/metaphlan/metaphlan.py”, line 1187, in main  
pars[‘index’] = check\_and\_install\_database(pars[‘index’], pars[‘bowtie2db’], pars[‘bowtie2\_build’], pars[‘nproc’], pars[‘force\_download’])  
File “/opt/anaconda/envs/mpa/lib/python3.6/site-packages/metaphlan/metaphlan.py”, line 610, in check\_and\_install\_database  
download\_unpack\_tar(FILE\_LIST, index, bowtie2\_db, bowtie2\_build, nproc)  
File “/opt/anaconda/envs/mpa/lib/python3.6/site-packages/metaphlan/metaphlan.py”, line 463, in download\_unpack\_tar  
url\_tar\_file = ls\_f[“mpa\_” + download\_file\_name + “.tar”]  
KeyError: ‘mpa\_mpa\_v30\_CHOCOPhlAn\_201901.tar’

What’s the problem?

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [June 12, 2020, 8:50am UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/6 "2020-06-12T08:50:46Z")

</div>

It seems you have installed an older build of MetaPhlAn 3, probably pyh5ca1d4c\_2. This error has been corrected in newer builds (latest one is pyh5ca1d4c\_4 [https://anaconda.org/bioconda/metaphlan/3.0/download/noarch/metaphlan-3.0-pyh5ca1d4c\_4.tar.bz2](https://anaconda.org/bioconda/metaphlan/3.0/download/noarch/metaphlan-3.0-pyh5ca1d4c_4.tar.bz2))

---

<div class="post-metadata">

**Author:** ![barichd](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@barichd](https://forum.biobakery.org/u/barichd)\
**Post date:** [June 12, 2020, 1:49pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/7 "2020-06-12T13:49:20Z")

</div>

Thanks, I installed the linked file using conda install, and metaphlan --install is now working. Someone should update the package in the conda online repository.

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [June 12, 2020, 2:12pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/8 "2020-06-12T14:12:09Z")

</div>

The tarball is linked to the Bioconda MetaPhlAn package, did you had issues installing MetaPhlAn using `conda install metaphlan`, such as not fetching the latest build?

---

<div class="post-metadata">

**Author:** ![barichd](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@barichd](https://forum.biobakery.org/u/barichd)\
**Post date:** [June 12, 2020, 2:44pm UTC](https://forum.biobakery.org/t/metaphlan-3-md5-error/484/9 "2020-06-12T14:44:56Z")

</div>

I already had metaphlan 3 installed but when I ran conda update metaphlan it said there were no updates to the package.
