Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect with shiny-server #261

Open
toxintoxin opened this issue Jan 2, 2024 · 0 comments
Open

unable to connect with shiny-server #261

toxintoxin opened this issue Jan 2, 2024 · 0 comments

Comments

@toxintoxin
Copy link

My shiny app works good with shinyapps.io.
But something wrong with shiny-server.
The details are, I installed ubuntu 20.04 on vmware, installed shiny-server on it, and the VM is using a network that is in bridged network.
I'm getting an error.

No suitable servers found (`serverSelectionTryOnce` set): [connection closed calling hello on `ac-6yidp0p-shard-00-00.edwdcrv.mongodb.net:27017'] [connection closed calling hello on `ac-6yidp0p-shard-00-01.edwdcrv.mongodb.net:27017'] [connection closed calling hello on `ac-6yidp0p-shard-00-02.edwdcrv.mongodb.net:27017'] 
options(mongodb = list(
  "username" = "user",
  "password" = "passwd",
  "host" = "123.456.mongodb.net"
))

url <- sprintf(
  "mongodb+srv://%s:%s@%s/",
  options()$mongodb$username,
  options()$mongodb$password,
  options()$mongodb$host
)

db <- "mydb"

find_coll <- function(collection) {
  conn <- mongo(collection = collection, db = db, url = url, options = ssl_options(weak_cert_validation = TRUE))
  data <- conn$find()
  data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant