Jupyter Error: Server Not Running


Can some one please help me with below issue?

I randomly get errors ‘Server Not Running’ and ‘Your server at … is not running. Would you like to restart it?’ With option ‘Restart’ or ‘Dismiss’.

This error occurs even if code is running.

We have not set up any time out for inactivity in config file jupyter_notebook_config.py or jupyterhub_config.py.

In jupyter logs I can see errors like: ‘Failing suspected API request to not-running server: /username/jupyter/hub/user/username/api/kernels’

This behaviour interrupts running code and causes double work.

Can someone please guide me to identify root cause for this issue? and how to overcome this?