I'm having trouble getting a new installation of RStudio Server up and running.
> sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.2 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1 locale:  LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C  LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8  LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8  LC_PAPER=en_CA.UTF-8 LC_NAME=C  LC_ADDRESS=C LC_TELEPHONE=C  LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C attached base packages:  stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached):  compiler_3.6.1
The installation seems to have been problem-free. However, when I run
$ sudo rstudio-server verify-installation
I get the output
"Server is running and must be stopped before running verify-installation"
which is anomalous because the server is already stopped:
$ sudo rstudio-server status ● rstudio-server.service - RStudio Server Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: enabled) Active: inactive (dead) since Wed 2019-07-17 19:26:56 EDT; 17min ago Process: 1690 ExecStop=/usr/bin/killall -TERM rserver (code=exited, status=0/SUCCESS) Process: 1621 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS) Main PID: 1622 (code=killed, signal=TERM) Jul 17 19:26:51 ling-sjtobin02 systemd: Starting RStudio Server... Jul 17 19:26:51 ling-sjtobin02 systemd: Started RStudio Server. Jul 17 19:26:56 ling-sjtobin02 systemd: Stopping RStudio Server... Jul 17 19:26:56 ling-sjtobin02 systemd: Stopped RStudio Server.
Additionally, I'm not able to access the server remotely when I enter the IPaddress:port into Firefox on a 2017 MacBookPro running Mojave (connection reset / page unavailable), though I can ping the server with no problem.
I don't see anything particularly noticeably anomalous in /var/log/syslog (though I can't say that I'm particularly familiar with what I should see there).
I tried uninstalling and reinstalling rstudio-server as described at the following link, to no avail.
I also followed advice from the following link
to make sure that port 8787 is open to accept external connections, which it appears to be (see below). However, although pinging the server works fine, telnet connections to port 8787 from the MacBookPro are refused.
$ sudo ufw allow 8787 Skipping adding existing rule Skipping adding existing rule (v6)
It's not clear to me whether AppArmor is used by default any more, but I don't see an apparmor profile for rstudio in /etc/apparmor.d. The secure cookie key is present and appears to have appropriate permission settings.
Would greatly appreciate advice.