Installing and accessing R studio server on an Ubuntu computer

Hello,

I've installed open R studio server on an Ubuntu computer. While physically at this computer, I can go to a web browser and access R studio server. However, I'm having trouble accessing it remotely from other computers. I've done the following:

  1. Verified installation sudo rstudio-server verify-installation
  2. Verified requirements (using R version 3.4.4 and Ubuntu 18.04)
  3. I've checked that R is installed in usr/bin/R
  4. I've check AppArmour installation, however there is no R Studio AppArmor profile at /etc/apparmor.d/rstudio-server for some reason, so I can't modify it as suggested in the R Studio Server documentation. So maybe this is part of the problem?
  5. When I tried to restart, it says rsession: no process found, so maybe this is also part of the problem.

Here is my session info from the Ubuntu machine:

R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu Bionic Beaver (development branch)

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.4.4

Any help is appreciated!

Scott

EDIT:

So Edgar Ruiz (below) suggested to check the 8787 port, and I tried on a separate machine:

telnet <host> 8787 which timed out. I also tried sudo ufw status verbose and it didn't list the 8787 port open. Maybe there is something blocking it like a firewall? Any suggestions for getting this port open are appreciated, I'll post if I figure it out! Thanks!

(Also not sure how/where to reply to Edgar's comment or if I should just be editing my original as I've done?)

1 Like

Hi, is the 8787 port open to accept external connections?

1 Like

That was it, thank you! I ran:

sudo ufw allow 8787

2 Likes