UCSF-CBI / rstudio-server-controller

RStudio Server Controller (RSC) - A Tool for Launching a Personal Instance of the RStudio Server
https://github.com/UCSF-CBI/rstudio-server-controller
ISC License
4 stars 2 forks source link

WISH: Make 'rsc stop' support stopping processing on another machine #78

Open HenrikBengtsson opened 1 year ago

HenrikBengtsson commented 1 year ago

Issue

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)

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 call rsc stop from there. Only if that doesn't do it, then thrown an error.