openanalytics / shinyproxy

ShinyProxy - Open Source Enterprise Deployment for Shiny and data science apps
https://www.shinyproxy.io
Apache License 2.0
520 stars 151 forks source link

App started then become inactive, It looks like the app is terminated for some reason. #281

Closed ziyunxiao closed 3 years ago

ziyunxiao commented 3 years ago

Hello

I have shinyproxy(2.5.0) runs on docker swarm.

The apps started and quickly become inactive(greyed out) with some information as the following.

2021-03-12 17:57:45.899  WARN 18 --- [  XNIO-1 task-1] e.o.shinyproxy.ShinyProxyTestStrategy    : Container unresponsive, trying again (2/10): http://10d3fe75c02d:3838
2021-03-12 17:57:48.424  INFO 18 --- [  XNIO-1 task-1] e.o.containerproxy.service.ProxyService  : Proxy activated [user: Robin Song] [spec: shiny_admin_dashboard] [id: 8b62331c-9dda-4c82-a282-75afc28638cd]
2021-03-12 17:59:07.146  INFO 18 --- [tiveProxyKiller] e.o.c.service.HeartbeatService           : Releasing inactive proxy [user: Robin Song] [spec: shiny_admin_dashboard] [id: 8b62331c-9dda-4c82-a282-75afc28638cd] [silence: 70338ms]
2021-03-12 17:59:07.185  INFO 18 --- [pool-2-thread-1] e.o.containerproxy.service.ProxyService  : Proxy released [user: Robin Song] [spec: shiny_admin_dashboard] [id: 8b62331c-9dda-4c82-a282-75afc28638cd]

After that, the container of the app also gets removed after a while. I also tested the app itself by bringing it up with the docker run command. And the apps works without issue.

Could someone help take look ? and how to get around it?

Thanks,

Robin

ziyunxiao commented 3 years ago

I also sometimes get "Failed to start container" error.

In my application.xml I set

proxy
...
  container-backend: docker-swarm
  docker:
    internal-networking: true
...

Anyone can help?

Thanks, Robin

ziyunxiao commented 3 years ago

found the error that could not start the container. Need work on that issue first