Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems updating the database : HTTP Result: 501 #193

Open
youngDouble opened this issue Nov 13, 2022 · 6 comments
Open

problems updating the database : HTTP Result: 501 #193

youngDouble opened this issue Nov 13, 2022 · 6 comments

Comments

@youngDouble
Copy link

youngDouble commented Nov 13, 2022

Return Code HTTP Result: 501 when abricate-get_db --db ncbi even add --force:
1. abricate-get_db --db ncbi :

HTTP Result: 501
Destination: amr_cds.ffn
Filesize:  bytes
Downloading: https://ftp.ncbi.nlm.nih.gov/pathogen/Antimicrobial_resistance/AMRFinderPlus/database/latest/ReferenceGeneCatalog.txt
HTTP Result: 500
Destination: amr_cds.tsv
Filesize:  bytes
ERROR: Can't read TSV file: amr_cds.tsv

2. abricate-get_db --db card:

Downloading: https://card.mcmaster.ca/latest/data
HTTP Result: 501
Destination: card.tar.bz2
Filesize:  bytes
tar: card.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

I think the bug appears in 89 lines of abricate-get_db89 my $ec = mirror($url, $dest);
Perhaps the current website no longer supports LWP::Simple::mirror, but I have no idea how to solve it

@tolot27
Copy link

tolot27 commented Mar 9, 2023

The problem is caused by an older version of the LWP::Simple module. It does not occur if version 6.43 of LWP::Simple is installed.

@theadrija
Copy link

Were you able to solve this issue? I'm facing the same problem.

@youngDouble
Copy link
Author

youngDouble commented Apr 28, 2023

If it requires LWP::Simple version 6.43,abricate-get_db may not be able to correctly run (abricate version 1.0.1 installed with conda), because the latest version of the perl-lwp-simple module provided by bioconda is 6.39. Installing an older version of abricate may be helpful, but I have not tested it.

@YiweiZhu
Copy link

Hi, I meet the same issue. It can be solved by creating a dedicated conda environment and installing an old version of perl (let's say, v.5.26) at first, and then abricate (v.1.0.1).

@kuheng3
Copy link

kuheng3 commented May 24, 2023

I used the following code to solve the same issues:
micromamba install -c bioconda abricate
micromamba install -c bioconda perl-lwp-simple
micromamba install perl-LWP-Protocol-https

@erinyoung
Copy link

Thank you! I ran into this problem today and it was nice that it was already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants