This message was deleted.
# helpdesk
s
This message was deleted.
d
Hey Prasad, what do you see in your server logs when the connection attempt fails?
I think you may have hit a bug that we've resolved recently in 1.2.1 (TCP/TURN fallback with Go SDK). Did you enable
allow_tcp_fallback
in the config?
s
Thanks much, David! 🙏 we don't get any
ERROR
messages in the logs, other than
JOIN_TINMEOUT
when this happens:
Copy code
2022-09-25T11:45:23.841Z	INFO	livekit	rtc/participant.go:710	closing participant	{"room": "testroom", "roomID": "RM_2ZSSWuL74qxP", "participant": "publisher", "pID": "PA_HuUcwKmAZoFp", "remote": false, "sendLeave": true, "reason": "JOIN_TIMEOUT"}
we also notice a significant drop in the "online users" when this happens, we are currently at 1.2.0 and we don't have
allow_tcp_fallback
in the configs, will add it and also upgrade to v12.1 and let you know how it goes, thanks again for your help!
👍 1
hey @dry-elephant-14928 I have updated our cluster to v1.2.1 and have also enabled the
allow_tcp_fallback
in the configs, unfortunately this didn't help to fix the intermittent problem, we still get
could not connect after timeout
message frequently from the following and also the user activity in our app drops significantly when this happens, a restart of the livekit deployment fixes both. we already have
debug
log enabled but surprisingly there are no errors/debug messages when this happens.
Copy code
livekit-cli create-room --url <https://livekit.something.com> --api-key XXXXX—api-secret XXXXX --name restroom (<--works always)

livekit-cli join-room --url <https://livekit.something.com> --api-key XXXXX --api-secret XXXXX --room testroom --identity publisher --publish /tmp/livekit_audio.ogg (<--fails intermittently)
could not connect after timeout
d
can you upload the full logs from the server before + after this happens?
s
Sure, I will share the logs when this happens next time, thanks! 🙏
Hey @dry-elephant-14928 please find the working logs at https://gist.github.com/prasadkris/2aaa6e8d02b210268ceb39c6e70cafaa and the failure logs at https://gist.github.com/prasadkris/a416121b003a740a7b3f32b48f5aaba1. let me know if you need any further details, thank you! 🙏
hey @dry-elephant-14928 were you able to find out anything from the logs, kindly let me know if you need any further details, thanks! 🙏
d
Hey, I haven't had a chance to look yet, still on my list.
🙏 1
s
thank you, 👍 🙏
Hello @dry-elephant-14928 I always get the following when it fails.. any idea what might be the issue here, thank you! 🙏
Copy code
2022-09-29T05:21:05.419Z	INFO	livekit	service/roommanager.go:254	starting RTC session	{"room": "prasadtest3", "nodeID": "ND_yKNKtfJ8", "participant": "publisher", "sdk": "GO", "sdkVersion": "0.10.5", "protocol": 8}
2022-09-29T05:21:05.420Z	INFO	livekit	rtc/room.go:287	new participant joined	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "pID": "PA_HdEcTCqpkDDY", "participant": "publisher", "protocol": 8, "options": {"AutoSubscribe":true}}
2022-09-29T05:21:05.421Z	DEBUG	livekit	rtc/participant.go:1190	updating participant state	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "state": "JOINED"}
2022-09-29T05:21:05.421Z	DEBUG	livekit	rtc/room.go:236	participant state changed	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "state": "JOINED", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "oldState": "JOINING"}
2022-09-29T05:21:05.421Z	DEBUG	livekit	rtc/participant.go:779	SetMigrateState	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "state": "MIGRATE_STATE_COMPLETE"}
2022-09-29T05:22:05.422Z	INFO	livekit	rtc/room.go:393	closing participant for removal	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "pID": "PA_HdEcTCqpkDDY", "participant": "publisher"}
2022-09-29T05:22:05.422Z	INFO	livekit	rtc/participant.go:640	try close participant	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "sendLeave": true, "reason": "JOIN_TIMEOUT"}
2022-09-29T05:22:05.422Z	DEBUG	livekit	rtc/participant.go:1190	updating participant state	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "state": "DISCONNECTED"}
2022-09-29T05:22:05.423Z	INFO	livekit	rtc/participant_signal.go:199	closing signal connection	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false}
2022-09-29T05:22:05.424Z	INFO	livekit	service/roommanager.go:433	RTC session finishing	{"participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz"}
2022-09-29T05:22:05.424Z	INFO	livekit	rtc/transport.go:1292	leaving events processor	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "transport": "PUBLISHER"}
2022-09-29T05:22:05.424Z	INFO	livekit	rtc/transport.go:486	peer connection state change	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz", "participant": "publisher", "pID": "PA_HdEcTCqpkDDY", "remote": false, "transport": "PUBLISHER", "state": "closed"}
2022-09-29T05:22:48.349Z	INFO	livekit	rtc/room.go:546	closing room	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz"}
2022-09-29T05:22:48.350Z	INFO	livekit	service/roommanager.go:107	deleting room state	{"room": "prasadtest3"}
2022-09-29T05:22:48.350Z	INFO	livekit	service/roommanager.go:401	room closed	{"room": "prasadtest3", "roomID": "RM_hXm4jXmyAmqz"}
hey @dry-elephant-14928 Have you got a chance to look into this?, thanks!
d
hey Prasad, sorry I have not been able to. I see you've filed an issue. that's great. We'll follow up with you there
🙏 1
👍 1
s
Thanks much @dry-elephant-14928 🙏 No problem, I understand that you guys are really busy as you need to help 1000+ members here, I filed an issue as it is easy to collaborate in GH 🙂, Thanks again for all your help and having this community channel! 👍
🙏 1
d
thank you for understanding!
🙏 1