I am trying to deploy an app of my own using ShinyProxy.
My application.yml file includes the following:
- name: euler
docker-cmd: ["R", "-e shiny::runApp('/root/euler')"]
- name: my-app
display-name: My app
docker-cmd: ["R", "-e shiny::runApp('/root/app')"]
Where moliveira/my-euler is an image I built from your shinyproxy-template and moliveira/myapp is a very similar image with the files needed for running my app in a folder named app in place of the euler folder (I also made the appropriate changes in the Dockerfile by adding needed packages and changing folder names).
The Euler app works fine (though it throws a few warnings that is is unresponsive at the start), so it doesn't seem to be a problem with a firewall. But the container does not seem to respond in time when I try to run my app. The following error appears on the terminal (sometimes before it reaches the 20/20 try):
2016-12-21 13:54:00.771 ERROR 11017 --- [ XNIO-2 task-10] io.undertow.request : UT005023: Exception handling request to /app/my-app
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is eu.openanalytics.ShinyProxyException: Container did not respond in time
This is happening even though no errors are thrown when I run it independently of shinyproxy using
sudo docker run -it -p 3838:3838 moliveira/myapp R -e "shiny::runApp('/root/app')"
which, after loading all the packages I need (this takes a while), ends with
Listening on http://0.0.0.0:3838
Can you tell me if I am doing something wrong? Is there anything else that I can try? If you need any more information from me, just ask.
Thank you in advance,