shinyproxy-docker-compose-example_nginx-forwarder_1 exited with code 1
When I run "docker-compose up" , nginx-forwarder exited with following messages. Please check it.
--- docker-compose messages ------ Attaching to shinyproxy-docker-compose-example_nginx-forwarder_1, shinyproxy-docker-compose-example_shinyproxy_1, shinyproxy-docker-compose-example_app-in-compose_1 nginx-forwarder_1 | 2021/03/28 09:09:12 [emerg] 6#6: no host in upstream ":3838/" in /etc/nginx/nginx.conf:22 nginx-forwarder_1 | nginx: [emerg] no host in upstream ":3838/" in /etc/nginx/nginx.conf:22 shinyproxy-docker-compose-example_nginx-forwarder_1 exited with code 1
You mean you cloned the repo, run docker-compose up without any modification and you got the above error message?
Hi @shrektan I also get the same error,
app-in-compose_1 | Loading required package: shiny nginx-forwarder_1 | 2021/06/07 19:42:34 [emerg] 8#8: no host in upstream ":3838/" in /etc/nginx/nginx.conf:21 nginx-forwarder_1 | nginx: [emerg] no host in upstream ":3838/" in /etc/nginx/nginx.conf:21 shinyproxy_1 | Error: Unable to access jarfile /opt/shinyproxy/shinyproxy.jar shinyproxy-docker-compose-example_nginx-forwarder_1 exited with code 1
@shrektan, thanks so much for putting togeather this example!
Just in case anyone else experiences similar issues, I had to do the following to get the shinyproxy service working on my computer (YMMV):
- Download the most recent version of shinyproxy (e.g.
shinyproxy-2.5.0.jarfrom https://www.shinyproxy.io/downloads/shinyproxy-2.5.0.jar). - Rename the .jar file as
shinyproxy.jar - Move the file to
shinyproxy-docker-compose-example/shinyproxy/shinyproxy.jar
Note that this didn't fix the nginx forwarder, which terminates with the following log:
nginx-forwarder_1 | 2021/08/04 00:30:59 [emerg] 7#7: no host in upstream ":3838/" in /etc/nginx/nginx.conf:21
nginx-forwarder_1 | nginx: [emerg] no host in upstream ":3838/" in /etc/nginx/nginx.conf:21
shinyproxy-docker-compose-example_nginx-forwarder_1 exited with code 1
I have the same problem too