I spin-up a custom mybinder instance using a Docker image that in the Notebook, launches a custom background process that the Notebook interacts with using the networking stack.
For some reason, after a while of activity, the instance terminates with “A connection to the Jupyter server could not be established”. This despite the fact that memory utilized stays within limits (just 280Mbytes used). While the notebook is active, everything works just fine as I expect to.
This does not happen when I launch the same image locally using jupyter-repo2docker.
Any ideas how I can debug this further?