Starting RTMP server with config: {
  "rtmp": {
    "port": 1935,
    "chunk_size": 60000,
    "gop_cache": true,
    "ping": 30,
    "ping_timeout": 60,
    "listen": "0.0.0.0"
  },
  "http": {
    "port": 8000,
    "mediaroot": "/home/runner/workspace/media",
    "allow_origin": "*"
  },
  "logType": 3
}
Process environment: {
  REPL_SLUG: 'workspace',
  REPL_OWNER: 'mrjunaidabbasi',
  NODE_ENV: 'development'
}
[2/25/2025, 4:46:03 PM] [INFO] Node-Media-Server v4.0.7
[2/25/2025, 4:46:03 PM] [INFO] Homepage: https://github.com/illuspas/Node-Media-Server
[2/25/2025, 4:46:03 PM] [INFO] License: Apache-2.0
[2/25/2025, 4:46:03 PM] [INFO] Author: Chen Mingliang
RTMP Server started successfully
RTMP Server Started Successfully
node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::8000
    at Server.setupListenHandle [as _listen2] (node:net:1908:16)
    at listenInCluster (node:net:1965:12)
    at Server.listen (node:net:2067:7)
    at NodeHttpServer.run (/home/runner/workspace/node_modules/node-media-server/src/server/http_server.js:47:22)
    at NodeMediaServer.run (/home/runner/workspace/node_modules/node-media-server/src/index.js:29:21)
    at startRTMPServer (/home/runner/workspace/server/rtmp-server.ts:96:11)
    at startRTMPServer (/home/runner/workspace/server/routes.ts:535:25)
    at <anonymous> (/home/runner/workspace/server/routes.ts:412:25)
    at Layer.handle [as handle_request] (/home/runner/workspace/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/runner/workspace/node_modules/express/lib/router/route.js:149:13)
    at Route.dispatch (/home/runner/workspace/node_modules/express/lib/router/route.js:119:3)
    at Layer.handle [as handle_request] (/home/runner/workspace/node_modules/express/lib/router/layer.js:95:5)
    at /home/runner/workspace/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/home/runner/workspace/node_modules/express/lib/router/index.js:346:12)
    at next (/home/runner/workspace/node_modules/express/lib/router/index.js:280:10)
    at strategy.pass (/home/runner/workspace/node_modules/passport/lib/middleware/authenticate.js:355:9)
    at /home/runner/workspace/node_modules/passport/lib/strategies/session.js:120:12
    at pass (/home/runner/workspace/node_modules/passport/lib/authenticator.js:352:31)
    at deserialized (/home/runner/workspace/node_modules/passport/lib/authenticator.js:364:7)
    at <anonymous> (/home/runner/workspace/server/auth.ts:89:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1944:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '::',
  port: 8000
}