Question: To download the sequences by using NCBI entrenz direct
1
gravatar for bandanaschapagain
4.0 years ago by
bandanaschapagain30 wrote:

Hi all,

I am stuck with something that is simple for most of you all. I have list of NCI_Acession Number for downloading the genome from NCBI. I am using NCBI entrenz to get the data. The command I am using for testing if or not I downloaded the entrenz edirect successfully I used the command:

esearch -db nucleotide -query "NC_001552" | efetch -format fasta > output.fasta

The error I am getting says,

connect attempt failed.
Result of do_post http request is
$VAR1 = bless( {
                 '_content' => 'Can\'t connect to eutils.be-md.ncbi.nlm.nih.gov:443 (certificate verify failed)

I am trying to fix it but I am not able to. Can anyone help me with this? Regards, Bandana

ADD COMMENTlink modified 3.8 years ago by a.zielezinski9.3k • written 4.0 years ago by bandanaschapagain30

Are you using the latest edirect utils release? NCBI has switched to HTTPS only connections.

ADD REPLYlink written 4.0 years ago by GenoMax93k

Yes. I downloaded from Ncbi site

ADD REPLYlink written 4.0 years ago by bandanaschapagain30

I am also getting an error but a different one. In your case it looks like the SSL cert on eutils.be-md.ncbi.nlm.nih.gov error.

Edit: I am not 100% certain if the error is on our end or NCBI's. They appear to be using a wildcard SSL cert on their end.

ADD REPLYlink modified 4.0 years ago • written 4.0 years ago by GenoMax93k

Unable to replicate the error and the command works for me. I am using eutils version 4.80

ADD REPLYlink written 4.0 years ago by Sej Modha4.7k

It appears that edirect now needs a newer version of OpenSSL. OpenSSL 1.0.1k 8 is working for me. Check with your sys admins to see if upgrading OpenSSL is a possibility.

ADD REPLYlink written 4.0 years ago by GenoMax93k
1
gravatar for usachu
3.8 years ago by
usachu10
usachu10 wrote:

Try setting path of HTTPS_CA_DIR. In case of my environment (Ubuntu), the path is /etc/ssl/certs.

Insert the following line after 'BEGIN{' (L44) in edirect.pl

  $ENV{HTTPS_CA_DIR} = '/etc/ssl/certs';

Reference at stackoverflow

I hope this helps.

ADD COMMENTlink modified 3.8 years ago • written 3.8 years ago by usachu10

This works (2019-02)! Thank you!

ADD REPLYlink written 22 months ago by rc.silva0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1062 users visited in the last hour