Skip to content

Sudden Error [ERR_SERVER_NOT_RUNNING]: Server is not running on angular builds #61159

@fabianfrz

Description

@fabianfrz

Version

v22.21.1

Platform

* oraclelinux:9 container on kubernetes
* ubuntu 24.4 LTS

Subsystem

net

What steps will reproduce the bug?

I actually do not know. It is an angular 17 build

How often does it reproduce? Is there a required condition?

every time the build runs

What is the expected behavior? Why is that the expected behavior?

the socket probably should just close or it should not close an not open socket

What do you see instead?

Chrome Headless 143.0.0.0 (Linux 0.0.0): Executed 27 of 27 SUCCESS (0.088 secs / 0.07 secs)
TOTAL: 27 SUCCESS
✔ Browser application bundle generation complete.
✔ Browser application bundle generation complete.
node:net:2359
        cb(new ERR_SERVER_NOT_RUNNING());
           ^
Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
    at Server.close (node:net:2359:12)
    at Object.onceWrapper (node:events:633:28)
    at Server.emit (node:events:531:35)
    at emitCloseNT (node:net:2419:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
  code: 'ERR_SERVER_NOT_RUNNING'
}

Additional information

The tests are run using karma and for some reason, this stack trace does not contain any library code, only node internal classes so I suspect that it is not related to any of the libraries and the build did work before (I cannot guarantee that there is no new library version but the stack trace does not show usage of any libs anyway).

the same happens on v24.0, which I also tried

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions