If the RStudio Server runs on another host, then rsc stop will not work and instead given an error, e.g.
$ rsc stop
ERROR: Stopping the RStudio Server can only be made from the machine (node42) where it was started from
Traceback:
1: main() on line #1451 in /software/c4/cbi/software/rstudio-server-controller-0.12.0/bin/rsc
Exiting (exit 1)
Issue
If the RStudio Server runs on another host, then
rsc stop
will not work and instead given an error, e.g.Troubleshooting
The above assertion is implemented as:
https://github.com/UCSF-CBI/rstudio-server-controller/blob/10c89e7ab952ed71c3ed9bb74bd9a0a137bda441/bin/rsc#L1446-L1452
Wish
Update
rsc stop
so that it attempts to SSH into the remote machine and callrsc stop
from there. Only if that doesn't do it, then thrown an error.