lifewatch / lwdataexplorer

R package to access the data from LifeWatch Data Explorer
https://lifewatch.github.io/lwdataexplorer
Other
2 stars 1 forks source link

Error in curl fetch memory #2

Closed PatriciaCabrera closed 3 years ago

PatriciaCabrera commented 3 years ago

Dear developer,

I am trying to use the get function to access the data. I get this error

getBatsData("2014-08-01", "2014-09-01", "1 min")
# Error in curl::curl_fetch_memory(url, handle = handle) : gnutls_handshake() failed: Handshake failed
sessionInfo()
# R version 3.4.4 (2018-03-15)
# Platform: x86_64-pc-linux-gnu (64-bit)
# Running under: Ubuntu 14.04.5 LTS
# 
# Matrix products: default
# BLAS: /usr/lib/libblas/libblas.so.3.0
# LAPACK: /usr/lib/lapack/liblapack.so.3.0
# 
# 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=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
# [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
# [9] LC_ADDRESS=C               LC_TELEPHONE=C            
# [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
# 
# attached base packages:
#   [1] datasets  stats     graphics  grDevices utils     methods   base     
# 
# other attached packages:
#   [1] RPostgreSQL_0.6-2 DBI_1.1.1         XML_3.99-0.3     
# [4] httr_1.4.2        googleVis_0.6.6  
# 
# loaded via a namespace (and not attached):
#   [1] Rcpp_1.0.6        compiler_3.4.4    highr_0.8        
# [4] prettyunits_1.1.1 remotes_2.2.0     tools_3.4.4      
# [7] testthat_2.3.2    digest_0.6.26     pkgbuild_1.1.0   
# [10] pkgload_1.1.0     evaluate_0.14     jsonlite_1.7.2   
# [13] memoise_1.1.0     rlang_0.4.11      reprex_2.0.1     
# [16] cli_2.5.0         rstudioapi_0.11   yaml_2.2.1       
# [19] xfun_0.18         withr_2.3.0       knitr_1.30       
# [22] desc_1.2.0        fs_1.3.1          devtools_2.3.2   
# [25] rprojroot_1.3-2   glue_1.4.2        R6_2.5.0         
# [28] processx_3.5.2    rmarkdown_2.5     sessioninfo_1.1.1
# [31] callr_3.7.0       magrittr_2.0.1    htmltools_0.5.0  
# [34] backports_1.1.10  codetools_0.2-15  ps_1.4.0         
# [37] ellipsis_0.3.2    usethis_1.6.3     assertthat_0.2.1 
# [40] crayon_1.4.1     
bart-v commented 3 years ago

Hi Patricia,

Is this still an issue? This looks like a client problem https://newbedev.com/gnutls-handshake-failed-handshake-failed-git

PatriciaCabrera commented 3 years ago

Hi @bart-v ,

Yes, it is a problem of the VRE-R instance that is not updated. I tried to get the data from the Jupyter hub instead from R and it worked.

I can close the issue.

salvafern commented 2 years ago

Hi @PatriciaCabrera,

I heard the problem was resolved. Can you write here how it was finally handled? 😄

PatriciaCabrera commented 2 years ago

Initially, the problem was thought to be about the R version. But they have found what was the blocking issue: For some reason, the system installs a libcurl dev version that's linked to gnutls. Switching to the version linked to openssl and reinstalling the R curl and RCurl packages, fixes it. A reinstallation of curl and RCurl in all the rstudio servers in Blue-Cloud was performed and the LW-package works now.