An existing connection was forced to be terminated by the remote host

Contributor

Hi everybody,

 

I am training a brain with an unmanaged simulator. My simulator was running on my local machine with no problem. However, all of a sudden, it stopped running because the following message appeared:

 

Unregistered simulator because ServiceResponseError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to be terminated by the remote host', None10054, None))

 

My question is:

In what situations does it happen?: 'An existing connection was forced to be terminated by the remote host'.

2 Replies
Simulator connections can be disrupted or aborted for a wide variety of reasons (connectivity issues, sim crashes, etc.). We recommend packaging your sim into a docker container so Bonsai can manage sim instances and connections for you. If the Bonsai platform discovers that a particular sim instances has lost connectivity for any reason, it will kill it and launch a new instance automatically. Managing and monitoring sim instances manually isn't really practical at the scale needed for reinforcement learning. That's why we've build these automated scaling capabilities into the platform.
I understand, thanks for answering. Yes, actually I have a lot of questions because I am learning to use the platform.