I have managed to install R + RStudio Server running on an RHEL 7.0+ AWS EC2 machine. Unfortunately, am unable to access/launch the server. Below are my findings:
Running netstat -lntp shows me that rstudio-server is running on port 8787:
netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8787 0.0.0.0:* LISTEN 1976/rserver
Running rstudio-server status shows that the server is active:
rstudio-server status
● rstudio-server.service - RStudio Server
Loaded: loaded (/usr/lib/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2020-09-29 14:29:12 +08; 4h 18min ago
Process: 1853 ExecStop=/usr/bin/killall -TERM rserver (code=exited, status=0/SUCCESS)
Process: 1975 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
Main PID: 1976 (rserver)
CGroup: /system.slice/rstudio-server.service
└─1976 /usr/lib/rstudio-server/bin/rserver
Running rstudio-server verify-installation, this yields NO RESULTS. Is this expected behaviour?
All packages and its dependencies were installed.
rstudio config files are empty.
Hitting the URL - HTTP://0.0.0.0:8787 throws me a Network error (tcp_error) - 503 code
Can anyone provide me with pointers in what I am doing wrong here? Please advise. Any help will be deeply appreciated.
From where are you trying to access the server? An AWS EC2 instance is a headless server so I don't think you are running a browser on it (you would have to use a complicated setup with X11 forwarding). If you are using a browser on your local machine then you have to use the public IP of the EC2 instance (e. g. http://public_ip:8787) and you have to make sure that you have configure the security settings of your EC2 instance to allow remote incoming connections on the 8787 port.
I've actually tried accessing the public IP on my local machine and am getting ERR_CONNECTION_RESET - can't seem to be accessing it. Could this be because the port isn't configured to allow remote incoming connections?
I hope someone could help me out with an issue that am facing. I have successfully installed R + RStudio Server in an RHEL 7.0+ EC2 machine. Unfortunately, I am unable to access the server. I am not particularly sure what is going on here. Below are some of my findings:
Running netstat -lntp shows that RServer is running on the right port.
netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1169/master
tcp 0 0 0.0.0.0:8787 0.0.0.0:* LISTEN 27527/rserver
Running rstudio-server status shows that the server is active with no issues.
● rstudio-server.service - RStudio Server
Loaded: loaded (/usr/lib/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-09-28 17:58:57 +08; 20h ago
Process: 27245 ExecStop=/usr/bin/killall -TERM rserver (code=exited, status=0/SUCCESS)
Process: 27526 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
Main PID: 27527 (rserver)
CGroup: /system.slice/rstudio-server.service
└─27527 /usr/lib/rstudio-server/bin/rserver
Sep 28 17:58:57 PTAWSG-1RPHap01 systemd[1]: Starting RStudio Server...
Sep 28 17:58:57 PTAWSG-1RPHap01 systemd[1]: Started RStudio Server.
Running rstudio-server verify-installation yields no results. This seems to be an unexpected behaviour?
Looking for the Rserver process ps -aux | grep 'rserver' yields: