-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recovering disconnected sessions #51
Comments
If you just want to restart the tunnel, but not the server itself, you could use the
Then you should be able to reconnect in your local R session via |
Could the disconnection and/or reconnection between the server and client cause issues with running tasks? |
Not sure I understand your question. The task will keep running regardless of whether or not the client is connected. If you try to reconnect while something is running on the server, it will appear to just hang. There could potentially be issues with reconnecting if the server is launched with |
I'm trying to understand how the server and client will behave in different disconnection and reconnection scenarios, how that would affect running tasks, and whether it would result in lost work/time.
Will it hang permanently, or recover once the task has completed?
Any workarounds? Is |
Is it possible to reconnect with an R session on the server after the client has lost connection? This could be due to network issues or simply for having the ability to put the client on standby while a task is run on the server.
As per the documentation, this works to connect and tunnel over SSH:
ssh -p XXXXX USER@SERVER -L 55556:localhost:55555 'Rscript -e "remoter::server(port=55555)"'
However, if disconnected, R continues to run on the server indefinitely, and running the above command again creates a new R process.
Ideally, a solution would:
I thought of trying something with
mosh
oret
but I have not yet succeeded.mosh
cannot do port forwarding/tunnelling. Also, both require opening ports.Any ideas?
Thanks for making this great package!
The text was updated successfully, but these errors were encountered: