Jupyter Lab Server getting disconnected

Hi,

The jupyter lab server is getting disconnected for users and their lab servers gets killed and users get this prompt on the screen:
Screenshot 2020-05-28 at 3 24 15 PM
The users have to refresh the page and manually select their kernel again.

Jupyter lab version: 1.2.0
Jupyterhub version: 1.1.0

The hub is running on a remote machine.
This is the error log that is see from hub:

04:12:51.168 - error: [ConfigProxy] Proxy error: Error: connect ECONNREFUSED 127.0.0.1:44809
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
04:12:51.168 - error: [ConfigProxy] 503 GET //user/ragar64/api/kernels/88bbcea2-6539-4141-9a68-92322326baa0/channels?session_id=28495ebc-a9d3-48bd-aa11-48debaf6b725&token=797bc68385d941208a26491ea36c7d05
2020-04-14 04:12:51 - root.mlsi.hub - DEBUG - No template for 503
04:12:51.172 - error: [ConfigProxy] Uncaught Exception TypeError: res.setHeader is not a function
at /opt/python/python35/lib/node_modules/configurable-http-proxy/lib/configproxy.js:358:21
at Array.map (native)
at ClientRequest. (/opt/python/python35/lib/node_modules/configurable-http-proxy/lib/configproxy.js:356:50)
at ClientRequest.g (events.js:291:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
04:12:51.375 - error: [ConfigProxy] Proxy error: Error: connect ECONNREFUSED 127.0.0.1:33422
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
04:12:51.375 - error: [ConfigProxy] 503 GET //user/rkash8/api/kernels/4f95b8d6-836d-45fe-b755-d121ebeda46b/channels?session_id=26aba3f9-0999-4a1a-a18b-45a884c2f8a8&token=6ec561e7b7c3472e8ba0556988f72bb3
2020-04-14 04:12:51 - root.mlsi.hub - DEBUG - No template for 503
04:12:51.378 - error: [ConfigProxy] Uncaught Exception TypeError: res.setHeader is not a function
at /opt/python/python35/lib/node_modules/configurable-http-proxy/lib/configproxy.js:358:21
at Array.map (native)
at ClientRequest. (/opt/python/python35/lib/node_modules/configurable-http-proxy/lib/configproxy.js:356:50)
at ClientRequest.g (events.js:291:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
2020-04-14 04:12:51 - root.mlsi.hub - WARNING - User ragar64 server stopped, with exit code: 0
2020-04-14 04:12:51 - root.mlsi.hub - INFO - Removing user ragar64 from proxy (/user/ragar64/)
2020-04-14 04:12:51 - root.mlsi.hub - DEBUG - Proxy: Fetching DELETE http://127.0.0.1:8001/api/routes/user/ragar64
04:12:52.897 - error: [ConfigProxy] Proxy error: Error: connect ECONNREFUSED 127.0.0.1:33422
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)

Can someone help resolve this issue?

@minrk Can you please look into this issue?