Hi,
i get the following error message when i execute AnnotationHub()
updating metadata: retrieving 1 resource Error: database is corrupt; remove it and try again database: ?/home/asan/.AnnotationHub/annotationhub.sqlite3? reason: missing tables In addition: Warning message: download failed hub path: ?https://annotationhub.bioconductor.org/metadata/annotationhub.sqlite3? cache path: ?/home/asan/.AnnotationHub/annotationhub.sqlite3? reason: Problem with the SSL CA cert (path? access rights?)
I checked this link
AnnotationHub corrupt database
the first solution by Martin Morgan did not work and i used BiocInstaller::biocValid(). It showed 86 packages are out of date. I then ran BiocInstaller::biocLite(). But the issue still persists
I have attached the output from sessionInfo() and hubCache()
sessionInfo() R version 3.3.0 beta (2016-03-30 r70404) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.5 LTS locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=nb_NO.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=nb_NO.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=nb_NO.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] parallel stats graphics grDevices utils datasets [7] methods base other attached packages: [1] AnnotationHub_2.4.2 BiocGenerics_0.18.0 BiocInstaller_1.24.0 loaded via a namespace (and not attached): [1] Rcpp_0.12.8 IRanges_2.6.1 [3] digest_0.6.10 mime_0.5 [5] R6_2.2.0 xtable_1.8-2 [7] DBI_0.5-1 stats4_3.3.0 [9] RSQLite_1.1-1 httr_1.2.1 [11] curl_2.3 S4Vectors_0.10.3 [13] tools_3.3.0 Biobase_2.32.0 [15] shiny_0.14.2 httpuv_1.3.3 [17] AnnotationDbi_1.34.4 memoise_1.0.0 [19] htmltools_0.3.5 interactiveDisplayBase_1.10.3 hubCache() Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ?hubCache? for signature ?"missing"?
Can anyone please suggest a solution to make it work?
Thanks
hello Valerie,
Thank you for your response. My Biocondcutor version when i generated the above output was already 3.4. But the AnnotationHub package version was 2.4.2. I updated it to 2.6.4. But still the problem persists, it is showing the same error.
I also updated R, but still it shows 3.3.0 beta
OK, those package versions now look like Bioconductor 3.4. I would exit R and then remove the .AnnotationHub directory. The directory will be in your local home so for example to remove mine I would
rm -r /home/vobencha/.AnnotationHub
Once you've confirmed there is no .AnnotationHub, start R and biocLite("AnnotationHub").
Valerie
Hello,
I followed you instructions. But it gives the same error. I tried to remove the package and install it again. It still shows the same error after re-installing.
All of the issue might have been because of cache problem. I tried the solution offered in this link:
the first link using curl worked perfectly fine. But when i use "https://annotationhub.bioconductor.org/metadata/annotationhub.sqlite3. the system throws a "SSL CA cert" error as you can see below:
Is there a problem with cache as discussed here -> https://stat.ethz.ch/pipermail/bioc-devel/2015-September/007970.html
How do i delete everything in the cache?
Thanks.
No, that post is very old and the issues have been addressed. The 'cache' is the .AnnotationHub/ directory with the sqlite file, index file and individual downloaded resources. If you removed the .AnnotationHub directory you removed the cache.
I don't know why you're having problems with the SSL CA cert. I'll check with Greg who may have more insight to the problem.
Valerie
Several of us have tested and can't reproduce the problem. From the command line (not in R):
~/sandbox >curl -I https://annotationhub.bioconductor.org/metadata/annotationhub.sqlite3
HTTP/1.1 200 OK
Date: Thu, 29 Dec 2016 16:00:09 GMT
Server: Apache/2.4.9 (Ubuntu)
X-Content-Type-Options: nosniff
X-Powered-By: Phusion Passenger 4.0.46
Last-Modified: Thu, 29 Dec 2016 02:50:57 GMT
Content-Length: 63170560
Status: 200 OK
Content-Type: application/octet-stream
From within R:
> curlGetHeaders("https://annotationhub.bioconductor.org/metadata/annotationhub.sqlite3")
[1] "HTTP/1.1 200 OK\r\n"
[2] "Date: Thu, 29 Dec 2016 16:04:07 GMT\r\n"
[3] "Server: Apache/2.4.9 (Ubuntu)\r\n"
[4] "X-Content-Type-Options: nosniff\r\n"
[5] "X-Powered-By: Phusion Passenger 4.0.46\r\n"
[6] "Last-Modified: Thu, 29 Dec 2016 02:50:57 GMT\r\n"
[7] "Content-Length: 63170560\r\n"
[8] "Status: 200 OK\r\n"
[9] "Content-Type: application/octet-stream\r\n"
[10] "\r\n"
attr(,"status")
[1] 200
I'm not sure what your system set up is - maybe you could follow up with your local sys admin.
Valerie