Closed lasley closed 7 years ago
Yeah I know this problem really well, it's definitely time to fix it. When we execute a command, a connection is done through this function : https://github.com/clouder-community/clouder/blob/0.9.0/clouder/model.py#L436, and then stored in global variable so we don't have to connect again.
But if this connection expire on the target side (server reboot for instance), Clouder still consider this connection active and then trigger this error. We need to catch it and make another connection in this case.
FYI I'm about halfway done with a fix, just working on the connection recursion. I was also able to replicate this with SSH timeout being set on the remote end.
Completed with #154
If the remote server is rebooted, the Clouder host server requires a restart to clear the stale connection in global memory.
Interesting thing is that the "Test Connection" button says that the connection is a success, so I think this might be broken