miroslavpejic85/mirotalksfu

Mediasoup worker bug

professionalNoob123 opened this issue · 1 comments

Bug Report

Describe the bug

Workers aren't being created (Create Worker ERR)

To reproduce

Steps to reproduce the behavior:

  1. Install all dependencies
  2. run npm start
  3. see the error

Expected behavior

Workers get created...

Screenshots

[2024-01-07 18:27:47.924] [Server] Create Worker ERR ---> Error: spawn /home/penguin/mirotalksfu/node_modules/mediasoup/worker/out/Release/mediasoup-worker ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/penguin/mirotalksfu/node_modules/mediasoup/worker/out/Release/mediasoup-worker',
  path: '/home/penguin/mirotalksfu/node_modules/mediasoup/worker/out/Release/mediasoup-worker',
  spawnargs: [
    '--logLevel=error',
    '--logTag=info',
    '--logTag=ice',
    '--logTag=dtls',
    '--logTag=rtp',
    '--logTag=srtp',
    '--logTag=rtcp',
    '--logTag=rtx',
    '--logTag=bwe',
    '--logTag=score',
    '--logTag=simulcast',
    '--logTag=svc',
    '--logTag=sctp',
    '--rtcMinPort=40000',
    '--rtcMaxPort=40100'
  ]
}

Desktop - Mobile

Please complete the following information:

  • Device or OS: Linux, Windows

Additional context

I tried fixing this by running npm install mediasoup but then got a similar err:

Create Worker ERR ---> Error: [pid:20654, code:40, signal:null]
    at ChildProcess.<anonymous> (/home/penguin/Emok/node_modules/mediasoup/node/lib/Worker.js:139:43)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Please refer to the official documentation for self-hosting instructions here.

If you have any questions or need assistance, feel free to ask in the community forum instead of opening an issue here.

Try also to run as sudo

Thank you.