I am trying to deploy my shiny app on shinyapps.io platform.
To this end, in Rstudio I have:
first, set working directory,
second, ran rsconnect() with my account info from shinyapps.io,
third, ran the command rsconnect::deployApp(appMode = "shiny").
In the third step I am getting the follwoing error:
Unhandled Exception: child_task=1590471576 child_task_status=error: Unhandled Exception: Timeout waiting for '_check_container_alive' after 30 seconds
Can someone explain this error and give me hints on how to resolve this issue?
Hello, sorry you have run into this error, there are some cases where the logging in this situation is not very good. This error is sometimes caused by an app that fails to start cleanly or is very slow. I took a look at your app and I notice it is trying to make a database connection but that requires certain environment variables to be set and a certificate file to be included in the deployment. Its possible that this connection is failing and causing the container to fail to start. I would double check that all the cert is included in the bundle. You might need to provide .Renviron to set the appropriate environment variables for the connection as well.
Dear Samp, I appreciate your valuable insights.
Meanwhile, I have deployed my app by clicking the "Publish" button of the RStudio IDE, and it has worked well.