mganeko / mediasoup_sample

Multiple participants sample for WebRTC SFU mediasoup with node.js
MIT License
39 stars 14 forks source link

I get the error "server.createRoom() ERROR InvalidStateError: Channel closed" #6

Open WangYuLue opened 6 years ago

WangYuLue commented 6 years ago

hello,i want your help:

I run the command npm start on my laptop ,it work well!

but when I run on the remote server , it's have some Error:

here is the log

Web server start. http://localhost:3000/
server.createRoom() ERROR InvalidStateError: Channel closed
    at Object.close (/root/Projects/webrtcTest/mediasoup_sample/node_modules/mediasoup/lib/Channel.js:246:14)
    at Channel.close (/root/Projects/webrtcTest/mediasoup_sample/node_modules/mediasoup/lib/Channel.js:169:9)
    at Worker.close (/root/Projects/webrtcTest/mediasoup_sample/node_modules/mediasoup/lib/Worker.js:134:17)
    at ChildProcess.Worker._child.on (/root/Projects/webrtcTest/mediasoup_sample/node_modules/mediasoup/lib/Worker.js:103:9)
    at emitOne (events.js:116:13)
    at ChildProcess.emit (events.js:211:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
mganeko commented 6 years ago

Thanks for your interest. Sorry, I do not know what is happening in your server.

diggymo commented 5 years ago

same issue for me.

mganeko commented 5 years ago

I am afraid that you are using mediasoup V2. Please try another example by footniko.

https://github.com/footniko/mediasoup-sample

mganeko commented 5 years ago

For mediasoup v2, please try https://github.com/mganeko/mediasoup_sample_v2