question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ShinyProxy not serving on 8080 port.

See original GitHub issue

I am trying to install ShinyProxy in a local server The application.yaml config I use

proxy:
  title: Open Analytics Shiny Proxy
  logo-url: http://www.openanalytics.eu/sites/www.openanalytics.eu/themes/oa/logo.png
  landing-page: /
  heartbeat-rate: 10000
  heartbeat-timeout: 60000
  port: 8080
  authentication: ldap
  admin-groups: scientists
  # Example: 'simple' authentication configuration
  users:
  - name: jack
    password: password
    groups: scientists
  - name: jeff
    password: password
    groups: mathematicians
  # Docker configuration
  docker:
    cert-path: /home/none
    url: http://localhost:2375
    port-range-start: 20000
  specs:
  - id: 01_hello
    display-name: Hello Application
    description: Application which demonstrates the basics of a Shiny app
    container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"]
    container-image: openanalytics/shinyproxy-demo
    access-groups: [scientists, mathematicians]
  - id: 06_tabsets
    container-cmd: ["R", "-e", "shinyproxy::run_06_tabsets()"]
    container-image: openanalytics/shinyproxy-demo
    access-groups: scientists

logging:
  file:
    shinyproxy.log

ShinyProxy is running as a service on port 8080.

● shinyproxy.service - ShinyProxy
   Loaded: loaded (/etc/systemd/system/shinyproxy.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-08-27 08:43:30 IST; 5 days ago
 Main PID: 31430 (java)
    Tasks: 40
   Memory: 897.8M
   CGroup: /system.slice/shinyproxy.service
           └─31430 /usr/bin/java -jar /opt/shinyproxy/shinyproxy.jar

However, if I curl the URL, it says

$ curl localhost:8080
curl: (7) Failed connect to localhost:8080; Connection refused

My docker is up and running on 2375 and I can spin up a test container and access it over browser. So that doesn’t seem to be the problem here. Could anyone help me out?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sarthi2395commented, Sep 4, 2020

I figured out what the issue was. Looks like the port 8080 was not open to remote access. I use a CentOS server so I fixed this with

firewall-cmd --zone=public --add-port=8080/tcp

Tested if my app was accessible. Yes it was.

firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload

Saved the firewall settings. This, if added in FAQ would be really helpful. Closing this thread now.

1reaction
PauloJhonnycommented, Sep 2, 2020

Hi, @sarthi2395. I think you need to change authentication to “simple”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exposing correct port - ShinyProxy
Hello setup a shinyproxy server on port 3838, although I would like it to default to port 80 ... The application subsequently does...
Read more >
Configuration - ShinyProxy
port : port to be used by ShinyProxy; the default port is 8080 ;. Note: root permissions are required when using a port...
Read more >
Advanced Configuration for ShinyProxy - Hosting Data Apps
ShinyProxy is a software that can serve containerized web applications ... favicon.ico heartbeat-rate: 10000 heartbeat-timeout: 60000 port: 8080 .
Read more >
How to Use Shiny Containers with Shinyproxy - Luke Singham
Adding Additional non-Shiny Apps #. I'm going with a very basic 'hello world' flask app. The main issue here is configuring the ports...
Read more >
Shinyproxy with keycloak redirected too many times
<socket-binding name = "proxy-https" port = "443"/>. This is not a definitive answer, but I think it is a significant advance in solving...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found