Can't connect/deploy to shinyapps.io on macOS

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

4 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