miroslavpejic85 / mirotalksfu

🏆 WebRTC - SFU - Simple, Secure, Scalable Real-Time Video Conferences Up to 8k, compatible with all browsers and platforms.
https://sfu.mirotalk.com
GNU Affero General Public License v3.0
2.15k stars 340 forks source link

Mediasoup worker bug #143

Closed professionalNoob123 closed 10 months ago

professionalNoob123 commented 10 months ago

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:

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)
miroslavpejic85 commented 10 months ago

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.