Hi all,
I am kinda new to shinyapps.io and I am trying to connect my shinyapps.io account on RStudio to be able to deploy the app but after pasting the code I copied from the Tokens page into RStudio, I keep getting this error message:
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL connect error [api.shinyapps.io]: TLS connect error: error:0BFFF065:x509 certificate routines:CRYPTO_internal:cert already in hash table
I was able to connect and deploy apps few days ago but then that started to happen. I've tried to uninstall R and RStudio completely and reinstall them but that did not work. The app runs locally with no problems on my macOS system. Could you help me finding the cause and possible solution for this?
Regards,
Bruno
5 Likes
Hi Bruno!
I'm having a similar problem.
I can't deploy the app that I'm working on since wednesday.
I have looked on status.posit.co/, and that day there was an error on shinyapps.io, so I waited. But today I still can't make it work.
I tried to deploy and this is the error I get:
── Preparing for deployment ────────────────────────────────────────────────────
✔ Re-deploying "dashboard" using "server: shinyapps.io / username: icolma"
ℹ Looking up application with id "14508704"...
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL connect error [api.shinyapps.io]: TLS connect error: error:0BFFF065:x509 certificate routines:CRYPTO_internal:cert already in hash table
Calls: <Anonymous> ... httpRequest -> http -> <Anonymous> -> raise_libcurl_error
Execution halted
I tried to archive the app on shinyapps.io to deploy again, but it did not work (and gives an error if I try to un-archive it).
I have tried some things to try to find the error, but none of it worked so far:
- deploying with a different account
- deploying in anohter 'title'/subdomain
I also tried to update my credentials, and this is the error I get:
rsconnect::setAccountInfo(name='[REMOVED]', token='[REMOVED]', secret='[REMOVED]')
Error in curl::curl_fetch_memory(url, handle = handle) :
SSL connect error [api.shinyapps.io]: TLS connect error: error:0BFFF065:x509 certificate routines:CRYPTO_internal:cert already in hash table
Hi! Now it's working for me!
I'm going to describe what I did, and maybe this can also help you, Bruno.
On the terminal, I updated brew, openssl and curl:
brew update
brew upgrade openssl curl
On R, I reinstalled curl:
install.packages("curl", type = "source")
After that, I restarted R and tried to do the deploy, and worked.
1 Like
I am experiencing the same issue. This happens on two machines with MacOS. I was able to deploy the same project from Windows.
Updating curl and and openssl and reinstalling the curl R package did not help, unfortunately.
However, I did revert back to a previous commit with older versions of the curl and openssl packages and that fixed the issue.
Specifically
- curl [6.3.0 -> 6.2.2]
- openssl [repo: RSPM -> CRAN; ver: 2.3.3 -> 2.3.2]
I tried to narrow it down further. It appears that downgrading to the previous version of the curl package is enough: renv::install("curl@6.2.3"); renv::snapshot()
curl 6.3.0 has introduced some more significant changes. I suppose one of them is the culprit:
- MacOS/Windows: update to libcurl 8.14.1
- MacOS: our static build of libcurl now links to the MacOS native LibreSSL
and nghttp in order to use the same keychain certificates as native curl.
Maybe @jeroen is able to help?