Rstudio server on CentOS Stream can't run shiny app

Hello everyone,

I have trouble to run a shiny app with rstudio server on a centOS server, i have this error message "Connection refused" on the shiny browser opened.

d722ba9e-21bf-45f3-8233-c80f66bfde14

I have install shiny server (and httpd)for deploy my shiny app and rstudio-server for dev new shiny app on the same server centos : here are the different versions of this service.

shiny-server : v1.5.18.987 (Node.js v16.14.0)
R : 4.1.3 (2022-03-10)
CentOS Stream release 8
RStudio Server - 2021.09.1 Build 372- 2009-2021 RStudio, PBC "Ghost Orchid" Release (8b9ced18, 2021-11-08) for CentOS 8

My shiny app in /srv/shiny-server/ works fine, but when i connect to rstudioserver by browser (and ip:8787) and i run my app, i see a new windows with "Connetion refused" and they are no message in the terminal.
The button that indicates that the application is running is even activated in rstudioserver interface and i just see that on the terminal.

> runApp('test')
Listening on http://127.0.0.1:7880

My "test" application is a copy/paste of this Shiny - Hello Shiny! and the shiny directory is in my home directory.

I may have forgotten some information, if so, please do not hesitate, thank you for your help.

Best regard,
Quentin B.

Hi Quentin,

Does httpd serve any purpose at the moment, e.g. as reverse proxy? In the browser image with
the "Connection refused" message, can you enable developer tools, navigate to the network tab and reload the page? Does that produce any error messages?

Side note: CentOS Stream 8, which is different from CentOS 8, is not a supported OS. You can use e.g. Rocky Linux 8 for a free RHEL 8 compatible OS that still gets security updates.