Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRT problem with port bind? // Documentation missing ports / range? #2

Open
pwFoo opened this issue Aug 17, 2021 · 0 comments
Open

Comments

@pwFoo
Copy link

pwFoo commented Aug 17, 2021

First try to deploy meething-docker.

config

module.exports = {
  apps : [{
    name: 'meething',
    script: '/meething/src/app.js',
    watch: './meething/src',
    env : {
      SSL : false,
      SSLKEY : '/certs/privkey.pem',
      SSLCERT  : '/certs/fullchain.pem',
      DEBUG : false
    }
  },{
    name: 'mediasoup',
    script: '/mediasoup/main.js',
    env : {
      SSL : false,
      SSLKEY : '/certs/privkey.pem',
      SSLCERT  : '/certs/fullchain.pem',
      DEBUG : false
    }
  },{
    name: 'gunsocket',
    script: '/gun/server.js',
    env : {
      SSL : false,
      SSLKEY : '/certs/privkey.pem',
      SSLCERT  : '/certs/fullchain.pem',
      PORT : 8765,
      DEBUG : false
    }
  }]
};

Error message on login / connect

protoo connection request [peerId:<CLIENT_IP>, address:/?roomId=Wupudaipo-Catherine-Fuudsev&peerId=99128d3c-5b72-4608-a023-f3041a8a29d6, room:%s]
new room stat Wupudaipo-Catherine-Fuudsev 99128d3c-5b72-4608-a023-f3041a8a29d6 { peer: 1, transport: 0, transports: [] }
request:getRouterRtpCapabilities
request:createWebRtcTransport
request failed:Error: port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:20785, attempt:1/10000]
    at Channel._processMessage (/mediasoup/node_modules/mediasoup/lib/Channel.js:206:37)
    at Socket.<anonymous> (/mediasoup/node_modules/mediasoup/lib/Channel.js:68:34)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:271:9)
    at Socket.Readable.push (_stream_readable.js:212:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23) {
  [stack]: "Error: port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:20785, attempt:1/10000]\n" +
    '    at Channel._processMessage (/mediasoup/node_modules/mediasoup/lib/Channel.js:206:37)\n' +
    '    at Socket.<anonymous> (/mediasoup/node_modules/mediasoup/lib/Channel.js:68:34)\n' +
    '    at Socket.emit (events.js:315:20)\n' +
    '    at addChunk (_stream_readable.js:295:12)\n' +
    '    at readableAddChunk (_stream_readable.js:271:9)\n' +
    '    at Socket.Readable.push (_stream_readable.js:212:10)\n' +
    '    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)',
  [message]: "port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:20785, attempt:1/10000]"
}
request:createWebRtcTransport
request failed:Error: port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:27500, attempt:1/10000]
    at Channel._processMessage (/mediasoup/node_modules/mediasoup/lib/Channel.js:206:37)
    at Socket.<anonymous> (/mediasoup/node_modules/mediasoup/lib/Channel.js:68:34)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:271:9)
    at Socket.Readable.push (_stream_readable.js:212:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23) {
  [stack]: "Error: port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:27500, attempt:1/10000]\n" +
    '    at Channel._processMessage (/mediasoup/node_modules/mediasoup/lib/Channel.js:206:37)\n' +
    '    at Socket.<anonymous> (/mediasoup/node_modules/mediasoup/lib/Channel.js:68:34)\n' +
    '    at Socket.emit (events.js:315:20)\n' +
    '    at addChunk (_stream_readable.js:295:12)\n' +
    '    at readableAddChunk (_stream_readable.js:271:9)\n' +
    '    at Socket.Readable.push (_stream_readable.js:212:10)\n' +
    '    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)',
  [message]: "port bind failed due to address not available [transport:udp, ip:'<SERVER_IP>', port:27500, attempt:1/10000]"
}
request:join

Do I need more ports mapped to the docker container like 27500/udp? Haven't found such an information in readme file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant