Hello,
I'm trying to get data from the ExperimentHub in a new R 4.0.2 environment, but I get the following error:
library(ExperimentHub)    
> eh <- ExperimentHub()
Cannot connect to ExperimentHub server, using 'localHub=TRUE' instead
/home/ferreen2/.cache/ExperimentHub
  does not exist, create directory? (yes/no): yes
Error in .updateHubDB(hub_bfc, .class, url, proxy, localHub) : 
  Invalid Cache: sqlite file
  Hub has not been added to cache
  Run again with 'localHub=FALSE'
> eh <- ExperimentHub(localHub = FALSE)
Cannot connect to ExperimentHub server, using 'localHub=TRUE' instead
Error in .updateHubDB(hub_bfc, .class, url, proxy, localHub) : 
  Invalid Cache: sqlite file
  Hub has not been added to cache
  Run again with 'localHub=FALSE'
It looks like the problem is the internet connection, but I am connected:
> pingr::is_online()
[1] TRUE
> curl::has_internet()
Testing for internet connectivity via https_proxy... success!
[1] TRUE
Has anyone come across this issue before? Is there anything I can do to get this to work?
Thank you! Enrico
P.S.: here's my session info for reference:
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /usr/prog/OpenBLAS/0.2.20-GCC-6.4.0-2.28/lib/libopenblas_haswellp-r0.2.20.so
locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
[1] ExperimentHub_1.14.0 AnnotationHub_2.20.0 BiocFileCache_1.12.0 dbplyr_1.4.4        
[5] BiocGenerics_0.34.0 
loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6                  later_1.1.0.1                 pillar_1.4.6                 
 [4] compiler_4.0.2                BiocManager_1.30.10           tools_4.0.2                  
 [7] digest_0.6.25                 packrat_0.5.0                 bit_4.0.4                    
[10] RSQLite_2.2.0                 memoise_1.1.0                 lifecycle_0.2.0              
[13] tibble_3.0.3                  pkgconfig_2.0.3               rlang_0.4.7                  
[16] shiny_1.5.0                   DBI_1.1.0                     rstudioapi_0.11              
[19] curl_4.3                      yaml_2.2.1                    fastmap_1.0.1                
[22] dplyr_1.0.1                   httr_1.4.2                    IRanges_2.22.2               
[25] generics_0.0.2                vctrs_0.3.2                   S4Vectors_0.26.1             
[28] rappdirs_0.3.1                stats4_4.0.2                  bit64_4.0.2                  
[31] tidyselect_1.1.0              Biobase_2.48.0                glue_1.4.1                   
[34] R6_2.4.1                      AnnotationDbi_1.50.3          purrr_0.3.4                  
[37] blob_1.2.1                    magrittr_1.5                  promises_1.1.1               
[40] ellipsis_0.3.1                htmltools_0.5.0               assertthat_0.2.1             
[43] xtable_1.8-4                  mime_0.9                      interactiveDisplayBase_1.26.3
[46] httpuv_1.5.4                  crayon_1.3.4                  BiocVersion_3.11.1

Can you access https://experimenthub.bioconductor.org/ in the browser? Via
readLines("https://experimenthub.bioconductor.org")(returning HTML that does not look like an error code)?Thank you. Yes, I can access the website on the browser as well as through
readLines().For the sake of completeness, I am behind a company firewall, which is set up through the HTTP_PROXY environment variable. I have no problems with other connections from within R (e..g, downloading packages).