Entering edit mode
Dear community,
I am developing a bioconductor package using biomart. If I want to follow the conventions of bioconductor, I can't download local databases because it would take too much space.
However, I found biomaRt to fail connecting often:
Error in curl::curlfetchmemory(url, handle = handle) : Peer's Certificate issuer is not recognized. This is problematic to pass the R CMD check. What would be your advice to deal with this issue?
Thanks a lot in advance.
To help, can you add the biomaRt commands that you are running
Can you also add the details of
sessionInfo()
I've noticed that the version of OpenSSL shipped with some Linux distributions doesn't seem to work well with www.ensembl.org and requires some extra configuration, otherwise it generates errors like you're seeing.Hey Mike / ilyessr, I was actually able to replicate the error (well a similar one):
However, I re-ran the command a few moments later, and it connected successfully.
Here are the commands :
Hi guys,
I had the same problem and the following commands solved the issue, at least for me:
https://www.r-bloggers.com/2016/09/fixing-peer-certificate-cannot-be-authenticated/
Thanks for the info. That's actually the solution I've currently gone for in biomaRt (https://github.com/grimbough/biomaRt/blob/a34e372b2c9ab74095b9ae65f9ca00d8f8ad1a7c/R/zzz.R#L25)
If you're still experiencing this problem with the latest version of biomaRt please let me know, as that means my fix isn't working.
Hi Mike,
Sorry but I still have the same problem, sometimes it works, sometimes not.
Can you provide the output from
sessionInfo()
so I can check what version of R and biomaRt you're using?Hello, there my sessionInfo() :
That version of biomaRt was supposed to test both the main site and the uswest mirror on package load, and set the appropriate settings for the session. I guess that wasn't sufficient.
I've made some major changes to this in devel, and it should now determine the required settings when you first run
useEnsembl()
, and then save them for future sessions.You'll need biomaRt version 2.47.4 to test that. I'd be interested to know if it works any better. It might be easier to open an issue at https://github.com/grimbough/biomaRt/issues to track any changes.