Unable to connect after calling kill all session prompt socket hang up

This issue has been tracked since 2023-02-18.

Describe the bug
When I call Killing all the sessions, I can't connect, the error socket hang up

The following is the docker container start command
docker run -p 8080:3000 --restart always -e "TOKEN=2cbc1775-38f2-4dcf-9933-50ad51a971b8" -e "ENABLE_CORS=true" -e "EXIT_ON_HEALTH_FAILURE=true" -e "PREBOOT_CHROME=true" -e "KEEP_ALIVE=true" -d --name browserless browserless/chrome

the example

 try {
        const browser = await puppeteer.connect({
            browserWSEndpoint: 'ws://',
        await page.goto('https://example.com',{
        await browser.disconnect();

    }catch (e) {

caught error

ErrorEvent {
[Symbol(kTarget)]: WebSocket {
_events: [Object: null prototype] { open: [Function], error: [Function] },
_eventsCount: 2,
_maxListeners: undefined,
_binaryType: 'nodebuffer',
_closeCode: 1006,
_closeFrameReceived: false,
_closeFrameSent: false,
_closeMessage: ,
_closeTimer: null,
_extensions: {},
_paused: false,
_protocol: '',
_readyState: 3,
_receiver: null,
_sender: null,
_socket: null,
_bufferedAmount: 0,
_isServer: false,
_redirects: 0,
_url: 'ws://',
_originalIpc: false,
_originalSecure: false,
_originalHostOrSocketPath: '',
_req: null,
[Symbol(kCapture)]: false
[Symbol(kType)]: 'error',
[Symbol(kError)]: Error: socket hang up
at connResetException (node:internal/errors:705:14)
at Socket.socketOnEnd (node:_http_client:518:23)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
[Symbol(kMessage)]: 'socket hang up'

service log

2023-02-18T12:30:24.521Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: /?token=2cbc1775-38f2-4dcf-9933-50ad51a971b8&keepalive=3000000&trackingId=b4de40cee5: Inbound WebSocket request.
2023-02-18T12:30:24.522Z browserless:hardware Checking overload status: CPU 1% Memory 5%
2023-02-18T12:30:24.523Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Adding new job to queue.
2023-02-18T12:30:24.523Z browserless:server Starting new job
2023-02-18T12:30:24.523Z browserless:system Waiting pre-booted chrome instance
2023-02-18T12:30:24.523Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Getting browser.
2023-02-18T12:30:24.523Z browserless:system Got chrome instance
2023-02-18T12:30:24.523Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Starting session.
2023-02-18T12:30:24.523Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Proxying request to /devtools/browser route: ws://
2023-02-18T12:30:24.555Z browserless:server DSZUPWN8UY538324HMOKEO25M74H4CEV: Recording successful stat and cleaning up.
2023-02-18T12:30:24.555Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Cleaning up job
2023-02-18T12:30:24.555Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Browser has been alive for 993134ms
2023-02-18T12:30:24.555Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Pushing browser back into swarm, clearing pages
2023-02-18T12:30:24.555Z browserless:server Current workload complete.
2023-02-18T12:30:24.555Z browserless:job DSZUPWN8UY538324HMOKEO25M74H4CEV: Cleanup done, pushing into swarm.

Restarting the container will restore normal

More Details About Repo
Owner Name browserless
Repo Name chrome
Full Name browserless/chrome
Language TypeScript
Created Date 2017-11-17
Updated Date 2023-03-22
Star Count 5309
Watcher Count 47
Fork Count 516
Issue Count 29


Issue Title Created Date Updated Date