Hello,
First of all a huge thanks for the team for providing this platform for deploying shiny apps.
We are currently facing some issues with the loading of a few of our Shiny apps, which are experiencing significant delays to open or even not open at all (perhaps due to the number of modules that need to be loaded at startup).
Here are the observations we’ve made:
- When running these apps locally within an R session, the browser opens, and the content is displayed within approximately one minute.
- When we manually run the Docker image, the containers successfully start in the background and can be accessed through their respective ports.
- However, when we attempt to access the apps via the ShinyProxy platform (by clicking on the app icon), they fail to load after a long period of attempting to establish a connection, despite the containers opening correctly in the background. The logs indicate that ShinyProxy makes several attempts (approximately every 7 seconds) and shows the following message: “Container unresponsive, trying again (37/310).”
According to the ShinyProxy configuration documentation, a container is considered “available” only when its HTTP listener responds with a status code of 200.
We suspect that this behavior suggests ShinyProxy does not directly check for the container’s availability but instead waits for the HTTP listener to respond. If ShinyProxy attempts to establish a connection every 7 seconds, it may not provide sufficient time for our applications to become fully available before it retries.
For your reference, we are currently using ShinyProxy version 3.1.1 with the default Docker setup, and our Shiny apps are built using the Golem framework.
Has anyone else encountered this? Any ideas or suggestions on how to address this?
Thanks!