shinyproxy-docker-compose-example icon indicating copy to clipboard operation
shinyproxy-docker-compose-example copied to clipboard

shinyproxy-docker-compose-example_nginx-forwarder_1 exited with code 1

Open hl5biw opened this issue 4 years ago • 4 comments

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

hl5biw avatar Mar 28 '21 09:03 hl5biw

You mean you cloned the repo, run docker-compose up without any modification and you got the above error message?

shrektan avatar Apr 05 '21 11:04 shrektan

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

DarwinCV avatar Jun 07 '21 19:06 DarwinCV

@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):

  1. Download the most recent version of shinyproxy (e.g. shinyproxy-2.5.0.jar from https://www.shinyproxy.io/downloads/shinyproxy-2.5.0.jar).
  2. Rename the .jar file as shinyproxy.jar
  3. 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

jeffreyhanson avatar Aug 04 '21 00:08 jeffreyhanson

I have the same problem too

alsator avatar Sep 14 '22 06:09 alsator