-
Notifications
You must be signed in to change notification settings - Fork 66
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
turn server relay faild. #5
Comments
coturn can connect success, node-turn can't. |
what is this test? could you give your code and translate all in english ? |
You can try it by yourself in firefox browser, Because go-turn(golang turnserver) had fixed a bug about the firefox. |
You can test in this link: |
so, this is working on google chrome but not on firefox? |
Yes, In firefox can't get relay address. |
could you give the PR link ? |
so pion/turn@1.0.2...1.0.3 |
firefox use fingerprint that was not implemented in 0.0.3. |
Yes!!! 0.0.4 is ok! great.
I think, If tow peers use different(session address), Maybe will failed; |
And i find few time later , ICE will failed, video will disconnect; |
need a way to reproduce it. |
I have an issue with firefox as well, I think it might be the same issue. In the console it shows: Interestingly enough, on Chromium and Safari with 'force turn' it disconnects every n seconds (this number seems to change every time you refresh the page, but is usually around 42 seconds). I'm not sure if this is a related issue or not, but it only seems to occur with force turn. |
I just tried deploying node-turn on my server and it seems to work fine on firefox. It also doesn't disconnect every 42 seconds. On chrome and safari it still disconnects though, both on the local and the remote turn server. |
I met the same problem. How did you deal with it now? 📚 |
@zeijibashuai I switched to coturn |
I also faced the same disconnection issue using webrtc for android/ios, where the call will be disconnected at around 40-42 seconds. Just switched to coturn and the issue is now solved. |
any way for solution? |
I can't get enough browser debug to understand problem, some help would be appreciated |
Comparing Firefox (which the issue does not occur) and Chrome at first, I can see that Chrome complains about STUN server being incompatible even though only TURN is specified in iceServers property of the RTCPeerConnection. Going a step further and testing the STUN server of node-turn using https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ then we can see similar behavior. Chrome complains with 701 "STUN server address is incompatible" while in Firefox there are no errors. I am not sure if this is related to the disconnect issue but may be worth mentioning. If I have some time later I will get a coturn server running and try to compare the behavior against node-turn since people here say coturn does not have this issue. |
@ntanis-dev can you please solve this bug faster? |
node-turn/lib/methods/allocate.js Lines 89 to 90 in fc1951c
liftetime está correto ou era pra ser lifetime ?
|
Descobri na RFC 5389 # seção 7.2.1 que aparentemente esse problema está relacionado à algo com retransmissão. O cliente da expira a conexão após 39,5 segundos.
|
same error, but I remember it seemed like there was success on the first time. this Firefox connect logs.+++++++ BEGIN (process id 22948) ++++++++
(generic/CRIT) PR_Connect failed: -5980
(ice/INFO) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): Skipping STUN server because of address type mis-match
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:0.0.0.0:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP6:[::]:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:172.16.124.106:3478/UDP)
(ice/WARNING) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:639 function nr_socket_multi_tcp_listen failed with error 3
(ice/WARNING) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): failed to create passive TCP host candidate: 3
(ice/INFO) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): Skipping STUN server because of address type mis-match
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:0.0.0.0:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP6:[::]:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:172.16.124.106:3478/UDP)
(ice/WARNING) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:639 function nr_socket_multi_tcp_listen failed with error 3
(ice/WARNING) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): failed to create passive TCP host candidate: 3
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): Exceeded the number of retries
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): mode 20, nr_turn_client_error_cb
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)) failed
(turn/INFO) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): cancelling
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb called with state 4
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb failed
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(srflx(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 5 remaining
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 4 remaining
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): Exceeded the number of retries
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): mode 20, nr_turn_client_error_cb
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)) failed
(turn/INFO) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): cancelling
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb called with state 4
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb failed
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(srflx(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 3 remaining
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 2 remaining
(stun/INFO) STUN-CLIENT(srflx(IP4:172.16.124.106:57073/UDP|IP4:0.0.0.0:19302/UDP)): Received response; processing
(stun/INFO) STUN-CLIENT(srflx(IP4:172.16.124.106:57074/UDP|IP4:0.0.0.0:19302/UDP)): Received response; processing
(ice/INFO) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/)): All candidates initialized
+++++++ END (process id 22948) ++++++++
+++++++ BEGIN (process id 17312) ++++++++
(generic/CRIT) PR_Connect failed: -5980
(ice/INFO) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): Skipping STUN server because of address type mis-match
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:0.0.0.0:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP6:[::]:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:172.16.124.106:3478/UDP)
(ice/WARNING) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:639 function nr_socket_multi_tcp_listen failed with error 3
(ice/WARNING) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): failed to create passive TCP host candidate: 3
(ice/INFO) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): Skipping STUN server because of address type mis-match
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:0.0.0.0:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP6:[::]:19302/UDP)
(ice/INFO) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:172.16.124.106:3478/UDP)
(ice/WARNING) /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:639 function nr_socket_multi_tcp_listen failed with error 3
(ice/WARNING) ICE-STREAM(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/) transport-id=transport_0 - 4795fde6:c609f934af75141b36f239216138aff5): failed to create passive TCP host candidate: 3
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): Exceeded the number of retries
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): mode 20, nr_turn_client_error_cb
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)) failed
(turn/INFO) TURN(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): cancelling
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb called with state 4
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb failed
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(srflx(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 5 remaining
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(relay(IP4:172.16.124.106:57073/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 4 remaining
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(stun/INFO) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Received response; processing
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): nr_stun_process_error_response failed
(stun/WARNING) STUN-CLIENT(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)::TURN): Error processing response: Retry may be possible, stun error code 401.
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): Exceeded the number of retries
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): mode 20, nr_turn_client_error_cb
(turn/WARNING) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)) failed
(turn/INFO) TURN(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): cancelling
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb called with state 4
(turn/WARNING) ICE-CANDIDATE(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): nr_turn_allocated_cb failed
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(srflx(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 3 remaining
(ice/WARNING) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/))/CAND(relay(IP4:172.16.124.106:57074/UDP|IP4:172.16.124.106:3478/UDP)): failed to initialize, 2 remaining
(stun/INFO) STUN-CLIENT(srflx(IP4:172.16.124.106:57073/UDP|IP4:0.0.0.0:19302/UDP)): Received response; processing
(stun/INFO) STUN-CLIENT(srflx(IP4:172.16.124.106:57074/UDP|IP4:0.0.0.0:19302/UDP)): Received response; processing
(ice/INFO) ICE(PC:{77591e8b-f1e6-4d1e-9134-caafd88dfb4d} 1706584409846000 (id=19327352833 url=https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/)): All candidates initialized
+++++++ END (process id 17312) ++++++++ Hope it will be helpful for solving the problem. :) |
This is node server's-123.56.177.185:3478 ips:
This is coturn(a open source turn server)-59.110.15.178:3478 ips:
The text was updated successfully, but these errors were encountered: