bigbluebutton / bigbluebutton

Complete open source web conferencing system.
https://bigbluebutton.org
GNU Lesser General Public License v3.0
8.56k stars 5.96k forks source link

Strange 401 error, sometime, when joining a room using html5 #6343

Closed aligot-cblue closed 5 years ago

aligot-cblue commented 5 years ago

Hello all,

First thanks a lot for all the great work arround Bigbluebutton.

We encounting a small issue with BBB.

We use HTML5 client and create room using the API.

Most of the time, everything goes fine... but sometimes, we get a strange 401 error on the first time, the first client join the room. If the user enter the room a second time, it always work.

The client get https://files.cblue.be/files/db827cd2901627d35da98c71e074fc6f/screenshot_1_1543922508.png

From Nginx Access log, we can see this:

[OUR_BACKEND] - - [06/Dec/2018:09:58:55 +0100] "GET /bigbluebutton/api/create?name=xxxxxxxxx&meetingID=xxxxxx&attendeePW=xxxxxxx&moderatorPW=xxxxxxxx&logoutURL=xxxxxx&record
=true&autoStartRecording=false&allowStartStopRecording=true&checksum=97b62cf166889580bba922e145f9cb95ad89a04f HTTP/1.1" 200 637 "-" "-"
[END USER] - - [06/Dec/2018:09:58:56 +0100] "GET /bigbluebutton/api/join?meetingID=xxxx&fullName=xxxxx&password=xxxxxx&userID=3&redirect=true&clientURL=xxxxxxxxx&checksum=ebf1fe2f0bbb540911ced33ddc95df891ce08b11 HTTP/1.1" 302 0 "https://xxxxx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:58:56 +0100] "GET /html5client/join?sessionToken=xxxxxxxx HTTP/1.1" 200 3663 "https://xxxxxxxx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chr
ome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:58:56 +0100] "GET /bigbluebutton/api/enter?sessionToken=xxxxxxxxxx HTTP/1.1" 200 975 "https://xxxxxx/html5client/join?sessionToken=xxxxxx" "Mozilla/5.0 (Windows NT
 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:58:56 +0100] "GET /html5client/sockjs/info?cb=xxxxxxx HTTP/1.1" 200 90 "https://xxxxxxxxx/html5client/join?sessionToken=xxxxxxx" "Mozilla/5.0 (Windows NT 10.0; Win64; x64
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:58:57 +0100] "GET /html5client/_timesync HTTP/1.1" 200 3663 "https://xxxxxx/html5client/users" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Ch
rome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:59:03 +0100] "GET /bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-15440
86735450/svg/3 HTTP/1.1" 200 108513 "-" "probe-image-size/3.1.0(+https://github.com/nodeca/probe-image-size)"
[END USER] - - [06/Dec/2018:09:59:03 +0100] "GET /bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-15440
86735450/svg/2 HTTP/1.1" 200 112230 "-" "probe-image-size/3.1.0(+https://github.com/nodeca/probe-image-size)"
[END USER] - - [06/Dec/2018:09:59:03 +0100] "GET /bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-15440
86735450/svg/1 HTTP/1.1" 200 72600 "-" "probe-image-size/3.1.0(+https://github.com/nodeca/probe-image-size)"
[END USER] - - [06/Dec/2018:09:59:06 +0100] "GET /html5client/sockjs/736/xxxxxxxx/websocket HTTP/1.1" 101 801 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:59:07 +0100] "GET /html5client/locale?locale=fr-FR HTTP/1.1" 200 7115 "https://xxxxxxxxxxx/html5client/error/401" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[END USER] - - [06/Dec/2018:09:59:12 +0100] "GET /html5client/error/401 HTTP/1.1" 200 3663 "https://xxxxxxxx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/
537.36"

Based on this, it seems the error is generated on client side...

Digging deeper, I found a strange thing in bbb-apps-akka/bbb-apps-akka.log. When the error is reached, I see line about o.b.core.BigBlueButtonActor but not about o.b.core.running.MeetingActor . When it works fine, I see some line about o.b.core.running.MeetingActor ... This is as far as my knowledge of the core of BBB goes at present time... sorry.

Here is an example: server startup:

2018-12-06T09:58:55.545+01:00 DEBUG o.b.core.BigBlueButtonActor - ****** RECEIVED CreateMeetingReqMsg msg CreateMeetingReqMsg(BbbCoreBaseHeader(CreateMeetingReqMsg),CreateMeetingReqMsgBody(DefaultProps(MeetingProp(XXXXX - Partages,XXXXX_call_prod145,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,false),BreakoutProps(bbb-none,0,false,Vector()),DurationProps(0,1544086735195,Thu Dec 06 09:58:55 CET 2018,120,5,5,1),PasswordProp(GLvNKn374mz9mKgu,kaV860xuBkFa2Acr),RecordProp(true,false,true),WelcomeProp(.,),VoiceProp(34317,34317,613-555-1234,false),UsersProp(0,false,ASK_MODERATOR),MetadataProp(Map()),ScreenshareProps(34317-SCREENSHARE,call-server-1.XXXXXXXXXX.fr,video-broadcast))))
2018-12-06T09:58:55.716+01:00 INFO  o.b.core.BigBlueButtonActor - Create meeting request. meetingId=5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195
2018-12-06T09:58:55.716+01:00 DEBUG o.b.core.BigBlueButtonActor - now supervising Actor[akka://bigbluebutton-apps-system/user/bigbluebutton-actor/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195#988434989]
2018-12-06T09:58:55.717+01:00 DEBUG o.b.core.running.MeetingActor - started (org.bigbluebutton.core.running.MeetingActor@6789a0b2)
2018-12-06T09:58:55.717+01:00 DEBUG o.b.core.running.MeetingActor - now supervising Actor[akka://bigbluebutton-apps-system/user/bigbluebutton-actor/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/actorMonitor-5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195#1317937354]
2018-12-06T09:58:55.717+01:00 DEBUG o.b.core.running.MeetingActorAudit - started (org.bigbluebutton.core.running.MeetingActorAudit@763723d0)
2018-12-06T09:58:55.717+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"MeetingCreatedEvtMsg","routing":{"sender":"bbb-apps-akka"}},"core":{"header":{"name":"MeetingCreatedEvtMsg"},"body":{"props":{"meetingProp":{"name":"XXXXX - Partages","extId":"XXXXX_call_prod145","intId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","isBreakout":false},"breakoutProps":{"parentId":"bbb-none","sequence":0,"freeJoin":false,"breakoutRooms":[]},"durationProps":{"duration":0,"createdTime":1544086735195,"createdDate":"Thu Dec 06 09:58:55 CET 2018","maxInactivityTimeoutMinutes":120,"warnMinutesBeforeMax":5,"meetingExpireIfNoUserJoinedInMinutes":5,"meetingExpireWhenLastUserLeftInMinutes":1},"password":{"moderatorPass":"GLvNKn374mz9mKgu","viewerPass":"kaV860xuBkFa2Acr"},"recordProp":{"record":true,"autoStartRecording":false,"allowStartStopRecording":true},"welcomeProp":{"welcomeMsgTemplate":".","welcomeMsg":".","modOnlyMessage":""},"voiceProp":{"telVoice":"34317","voiceConf":"34317","dialNumber":"613-555-1234","muteOnStart":false},"usersProp":{"maxUsers":0,"webcamsOnlyForModerator":false,"guestPolicy":"ASK_MODERATOR"},"metadataProp":{"metadata":{}},"screenshareProps":{"screenshareConf":"34317-SCREENSHARE","red5ScreenshareIp":"call-server-1.XXXXXXXXXX.fr","red5ScreenshareApp":"video-broadcast"}}}}}

unsuccessfull join: (no meetingActor...)

2018-12-06T09:58:56.313+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"RegisterUserReqMsg","routing":{"sender":"bbb-web"}},"core":{"header":{"name":"RegisterUserReqMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195"},"body":{"meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","intUserId":"w_8tz4diixjjzz","name":"XXXXX","role":"MODERATOR","extUserId":"3","authToken":"aorkb1nuepb0","avatarURL":"https://call-server-1.XXXXXXXXXX.fr/client/avatar.png","guest":false,"authed":false}}}
2018-12-06T09:58:56.313+01:00 DEBUG o.b.core.BigBlueButtonActor - RECEIVED RegisterUserReqMsg msg RegisterUserReqMsg(BbbCoreHeaderWithMeetingId(RegisterUserReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195),RegisterUserReqMsgBody(5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_8tz4diixjjzz,XXXXX,MODERATOR,3,aorkb1nuepb0,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false))
2018-12-06T09:58:56.314+01:00 DEBUG o.b.core.BigBlueButtonActor - FORWARDING Register user message
2018-12-06T09:58:56.314+01:00 DEBUG o.b.core.apps.users.UsersApp - RECEIVED RegisterUserReqMsg msg RegisterUserReqMsg(BbbCoreHeaderWithMeetingId(RegisterUserReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195),RegisterUserReqMsgBody(5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_8tz4diixjjzz,XXXXX,MODERATOR,3,aorkb1nuepb0,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false))
2018-12-06T09:58:56.314+01:00 INFO  o.b.core.apps.users.UsersApp - Register user success. meetingId=5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195 userId=3 user=RegisteredUser(w_8tz4diixjjzz,3,XXXXX,MODERATOR,aorkb1nuepb0,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false,false)
2018-12-06T09:58:56.314+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"UserRegisteredRespMsg","routing":{"sender":"bbb-apps-akka"}},"core":{"header":{"name":"UserRegisteredRespMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195"},"body":{"meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_8tz4diixjjzz","name":"XXXXX","role":"MODERATOR"}}}
2018-12-06T09:58:57.161+01:00 DEBUG o.b.core.apps.users.UsersApp - RECEIVED ValidateAuthTokenReqMsg msg ValidateAuthTokenReqMsg(BbbClientMsgHeader(ValidateAuthTokenReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_8tz4diixjjzz),ValidateAuthTokenReqMsgBody(w_8tz4diixjjzz,aorkb1nuepb0))
2018-12-06T09:58:57.161+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"ValidateAuthTokenRespMsg","routing":{"msgType":"DIRECT","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_8tz4diixjjzz"}},"core":{"header":{"name":"ValidateAuthTokenRespMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_8tz4diixjjzz"},"body":{"userId":"w_8tz4diixjjzz","authToken":"aorkb1nuepb0","valid":true,"waitForApproval":false}}}
2018-12-06T09:59:03.645+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"PresentationConversionCompletedSysPubMsg","routing":{"sender":"bbb-web"}},"core":{"header":{"name":"PresentationConversionCompletedSysPubMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"notUsedYet"},"body":{"messageKey":"CONVERSION_COMPLETED","code":"CONVERSION_COMPLETED","presentation":{"id":"d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450","name":"default.pdf","current":true,"pages":[{"id":"d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/3","num":3,"thumbUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/thumbnail/3","swfUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/slide/3","txtUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/textfiles/3","svgUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/svg/3","current":false,"xOffset":0.0,"yOffset":0.0,"widthRatio":100.0,"heightRatio":100.0},{"id":"d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/2","num":2,"thumbUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/thumbnail/2","swfUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/slide/2","txtUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/textfiles/2","svgUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/svg/2","current":false,"xOffset":0.0,"yOffset":0.0,"widthRatio":100.0,"heightRatio":100.0},{"id":"d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/1","num":1,"thumbUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/thumbnail/1","swfUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/slide/1","txtUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/textfiles/1","svgUri":"https://call-server-1.XXXXXXXXXX.fr/bigbluebutton/presentation/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1544086735450/svg/1","current":true,"xOffset":0.0,"yOffset":0.0,"widthRatio":100.0,"heightRatio":100.0}],"downloadable":false}}}}

successfull join:

2018-12-06T09:59:53.703+01:00 DEBUG o.b.core.BigBlueButtonActor - RECEIVED RegisterUserReqMsg msg RegisterUserReqMsg(BbbCoreHeaderWithMeetingId(RegisterUserReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195),RegisterUserReqMsgBody(5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_c4qwjouhzkvm,XXXXX,MODERATOR,3,c17cf6qlitsp,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false))
2018-12-06T09:59:53.704+01:00 DEBUG o.b.core.BigBlueButtonActor - FORWARDING Register user message
2018-12-06T09:59:53.704+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"RegisterUserReqMsg","routing":{"sender":"bbb-web"}},"core":{"header":{"name":"RegisterUserReqMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195"},"body":{"meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","intUserId":"w_c4qwjouhzkvm","name":"XXXXX","role":"MODERATOR","extUserId":"3","authToken":"c17cf6qlitsp","avatarURL":"https://call-server-1.XXXXXXXXXX.fr/client/avatar.png","guest":false,"authed":false}}}
2018-12-06T09:59:53.704+01:00 DEBUG o.b.core.apps.users.UsersApp - RECEIVED RegisterUserReqMsg msg RegisterUserReqMsg(BbbCoreHeaderWithMeetingId(RegisterUserReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195),RegisterUserReqMsgBody(5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_c4qwjouhzkvm,XXXXX,MODERATOR,3,c17cf6qlitsp,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false))
2018-12-06T09:59:53.704+01:00 INFO  o.b.core.apps.users.UsersApp - Register user success. meetingId=5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195 userId=3 user=RegisteredUser(w_c4qwjouhzkvm,3,XXXXX,MODERATOR,c17cf6qlitsp,https://call-server-1.XXXXXXXXXX.fr/client/avatar.png,false,false,false)
2018-12-06T09:59:53.704+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"UserRegisteredRespMsg","routing":{"sender":"bbb-apps-akka"}},"core":{"header":{"name":"UserRegisteredRespMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195"},"body":{"meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_c4qwjouhzkvm","name":"XXXXX","role":"MODERATOR"}}}
2018-12-06T09:59:54.317+01:00 DEBUG o.b.core.apps.users.UsersApp - RECEIVED ValidateAuthTokenReqMsg msg ValidateAuthTokenReqMsg(BbbClientMsgHeader(ValidateAuthTokenReqMsg,5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195,w_c4qwjouhzkvm),ValidateAuthTokenReqMsgBody(w_c4qwjouhzkvm,c17cf6qlitsp))
2018-12-06T09:59:54.317+01:00 INFO  o.b.core2.AnalyticsActor - -- analytics -- {"envelope":{"name":"ValidateAuthTokenRespMsg","routing":{"msgType":"DIRECT","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_c4qwjouhzkvm"}},"core":{"header":{"name":"ValidateAuthTokenRespMsg","meetingId":"5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195","userId":"w_c4qwjouhzkvm"},"body":{"userId":"w_c4qwjouhzkvm","authToken":"c17cf6qlitsp","valid":true,"waitForApproval":false}}}
2018-12-06T09:59:54.326+01:00 INFO  o.b.core.running.MeetingActor - Received user joined meeting. user w_c4qwjouhzkvm meetingId=5e95b7bf0b4ec4b02129d055d9723e22095ab47b-1544086735195

Do you have any idea ?

Best regards,

A.

Other info:

Versions

hi  bbb-apps                              1:2.0.0-52                                 amd64        BigBlueButton applications for Red5
hi  bbb-apps-akka                         2.0.0-151                                  all          BigBlueButton Apps (Akka)
hi  bbb-apps-screenshare                  1:2.0.0-41                                 amd64        BigBlueButton screenshare module for Red5
hi  bbb-apps-sip                          1:2.0.0-15                                 amd64        BigBlueButton SIP module for Red5
hi  bbb-apps-video                        1:2.0.0-29                                 amd64        BigBlueButton video module for Red5
hi  bbb-apps-video-broadcast              1:2.0.0-8                                  amd64        BigBlueButton video broadcast module for Red5
hi  bbb-client                            1:2.0.0-394                                amd64        BigBlueButton Flash client
hi  bbb-config                            1:2.0.0-80                                 amd64        BigBlueButton configuration utilities
hi  bbb-demo                              1:2.0.0-14                                 amd64        BigBlueButton API demos
hi  bbb-freeswitch-core                   2:2.0.0-48                                 amd64        BigBlueButton build of FreeSWITCH
hi  bbb-freeswitch-sounds                 1:1.6.7-9                                  amd64        FreeSWITCH Sounds
hi  bbb-fsesl-akka                        2.0.0-27                                   all          BigBlueButton FS-ESL (Akka)
hi  bbb-html5                             1:2.0.0-475                                amd64        The HTML5 components for BigBlueButton
hi  bbb-mkclean                           1:0.8.7-4                                  amd64        Clean and optimize Matroska and WebM files
hi  bbb-playback-presentation             1:2.0.0-28                                 amd64        BigBluebutton playback of presentation
hi  bbb-record-core                       1:2.0.0-33                                 amd64        BigBlueButton record and playback
hi  bbb-red5                              1:1.0.8-40                                 amd64        The Red5 server for BigBlueButton
hi  bbb-swftools                          1:0.9.2-2                                  amd64        The swftools files for BigBlueButton
hi  bbb-transcode-akka                    2.0.0-6                                    all          BigBlueButton Transcoder
hi  bbb-web                               1:2.0.0-93                                 amd64        BigBlueButton API
hi  bbb-webrtc-sfu                        1:2.0.0-76                                 amd64        BigBlueButton WebRTC SFU
ii  bigbluebutton                         1:2.0.0-13                                 amd64        Open source web conferencing platform (bbb)
antobinary commented 5 years ago

Hi @aligot-cblue I am also hitting this issue (not consistently) and am currently digging deeper to find the cause of it. Thank you for the logs and all the info appended!

antobinary commented 5 years ago

We have not seen 401 preventing the user from joining in some time now. Please comment/reopen if you encounter it again

pragya183 commented 4 years ago

I am also getting the same 401 error sometimes. Please suggest how to fix this,

rmundel commented 4 years ago

I'm also seeing this

IAmMukeshKumar commented 4 years ago

I am also getting the same issue, one day back.

ffdixon commented 4 years ago

If the user is removed from a conference by the Moderator, the removal is now permanent for the duration of the conference.

However, if the user is not removed by a moderator, you shouldn't get this error (unless you copy the join URL and try opening it an another browser).

Can you upgrade to BigBlueButton 2.2.10 and let us know if this still occurs.

f1pratyush commented 4 years ago

If the user is removed from a conference by the Moderator, the removal is now permanent for the duration of the conference.

However, if the user is not removed by a moderator, you shouldn't get this error (unless you copy the join URL and try opening it an another browser).

Can you upgrade to BigBlueButton 2.2.10 and let us know if this still occurs.

Why would it give error in case of copy paste? I am using my application backend to make calls to my BBB server(since that's where my shared secret is kept) and then returning the obtained join url in a json response to the client application built in Angular. The application is then supposed to call the join url in an iframe. It's returning 401 Unauthorised everytime. What might be the issue?

jainvipin69 commented 4 years ago

I am using my application backend to make calls to my BBB server(since that's where my shared secret is kept) and then returning the obtained join url in a json response to the client application built in Angular. The application is then supposed to call the join url in an iframe. It's returning 401 Unauthorised everytime. What might be the issue?

Any idea why this happening.

tronghoang-hqt commented 4 years ago

If the user is removed from a conference by the Moderator, the removal is now permanent for the duration of the conference. However, if the user is not removed by a moderator, you shouldn't get this error (unless you copy the join URL and try opening it an another browser). Can you upgrade to BigBlueButton 2.2.10 and let us know if this still occurs.

Why would it give error in case of copy paste? I am using my application backend to make calls to my BBB server(since that's where my shared secret is kept) and then returning the obtained join url in a json response to the client application built in Angular. The application is then supposed to call the join url in an iframe. It's returning 401 Unauthorised everytime. What might be the issue?

@ffdixon I have same issue when I call api join as moderator and receive request uri with sessionToken.Go to this request uri and receive 401 authorize,my version bbb is 2.2.15 Capture

ranevaibhav95 commented 4 years ago

It worked until users increased to more than 150..after that it started having trouble to login and started giving the above unauthorized to all users, i am using moodle, when we click on join session the loader appears and we get unauthorized error but the count of users keeps on increasing in the bbb server...my version of bbb is 2.2.16..please help

aligot-cblue commented 4 years ago

Indeed, we have multiple feedback 401 error seems to be linked with higher load of the server

ranevaibhav95 commented 4 years ago

@ffdixon is it a new bug in bbb latest version?

ffdixon commented 4 years ago

It's a known issue in BigBlueButton 2.2. It's one of the reasons we recommend keeping sessions below 100 users. As the number of users grows about 100, there are inefficiencies in the joining process that will cause logins to slow down, users are unable to join, and they try again, which causes further slow downs and so on.

We've been working in improving this for BigBlueButton 2.3. Until then, we recommend, as always, keeping sessions in BigBlueButton 2.2 under 100 users (or less).

AnthonyVidal commented 4 years ago

Thanks @ffdixon !

Do we have a release date of BBB 2.3?

matiasilva commented 4 years ago

BigBlueButton does not set hard release dates. They prefer quality over quantity so it'd be pointless to give false claims. Fred has said elsewhere on the issue tracker that a beta will likely come out in the summer.

rriscado commented 4 years ago

Hi @ffdixon I have this problem in my environment.

I have a BBB server installed in AWS USA and I access that from Brazil. I have a latency in 140ms more or less.

I get 401 error when the BBB server have any number of rooms and users connected.

I'm using BBB 2.2.20.

ffdixon commented 4 years ago

@rriscado What is the configuration of your server (instance type), and how many users were in the meeting when this happened.

As you can see earlier in the tread, this problem can occur when you have over 100 users in a meeting, or likely if you are running the server on an instance less than the recommended c5.2xlarge.

SeniorTigr commented 4 years ago

@ffdixon Do this error occurs also when we have meetings with less than 100 users but two or more are starting simultaneously, so the number of users trying to login in total may be higher than 100?

matiasilva commented 4 years ago

Can you tell us anything about the state of the node process? Does show high CPU usage in top?

SeniorTigr commented 4 years ago

I was not able to monitor the bbb installation while the problem occurs, I was analyzing after the fact from the logs and the monitoring data. I think now I can say that the problem is not that the several meetings started in the same time but rather that something caused users to lost connection and when they were trying to reconnect, the Authentication timeout error occured because too much users tried to reconnect at the same time. We tried to mitigate by upgrading the software to 2.2.26 and slightly rising the number of vcpu as the monitoring showed we had some moments with 90%+ cpu usage. We are now checking if it helped. I will try to check the stats of the node process if the problem will return.

SeniorTigr commented 4 years ago

@matiasilva I was able to look through top -c during some higher usage and it showed between 100 and 140 %CPU. We have 24 cores on that server. On the other server will lesser usage it was 50-70 %CPU. It was always third highest after freeswitch and kurento. We had numerous 401 Authentication timeout in the logs during that time.

matiasilva commented 4 years ago

How many users were in this problematic meeting?

SeniorTigr commented 4 years ago

It is not one meeting. We limited meetings to max 100 people but in total we often have more than 400 people on all meetings at one instance. However when the problem starts we have many double/triple/multiple logins for the same user which skyrockets the total number of people in the database to couple of thousands, thus we are not sure how many users exactly we had. Unfortunately the allowDuplicateExtUserid=false property does not work. Total CPU is now less than 70% even when problem occurs.

matiasilva commented 4 years ago

Not sure how you're getting those double/triple/multiple logins, probably in part to you running so many people on one server, which creates more users and worsens the load on the single-threaded node process. Have you considered reducing the amount of people on one server concurrently and keeping the number of people in one meeting to below 100?

Total CPU is now less than 70% even when problem occurs.

What did you do to get this?

SeniorTigr commented 4 years ago

Yeah, it looks now that we will need to do something to have less users per server. We definitely tried to not put too much users on one server but it is possible that we overestimated the number which one server can handle. We were suprised because the environment worked without much problems in April-May with more or less same number of colleges we are serving now, but with the new college year we have problems nearly every day. Maybe they had more students attending now and it was enough to make problems. Regarding CPU we added some virtual cores to the VMs in hope that will help but eventually we learned that it do not work than way. The fact that the node.js is single-threaded probably explains why.

matiasilva commented 4 years ago

Indeed. BigBlueButton scales better horizontally not vertically, so adding more cores (or better cores) is not useful. It depends a lot on the behavior of your users and how many events get piped into the queue that the single threaded process has to handle. Maybe there was different behavior in March?

janpisarik commented 4 years ago

Hello, I had a problem with error 401 in BBB. I had connecting only 4 persons. Where is mistake? Thak you for your answer.

jayanthanala commented 3 years ago

Hello, I had a problem with error 401 in BBB. I had connecting only 4 persons. Where is mistake? Thak you for your answer.

Did you manage to sort out the issue? if yes, help me out

tamkeen-tms commented 3 years ago

We are seeing this issue too, with only ONE attendee, plus the moderator.

b-sass99 commented 3 years ago

If the user is removed from a conference by the Moderator, the removal is now permanent for the duration of the conference. However, if the user is not removed by a moderator, you shouldn't get this error (unless you copy the join URL and try opening it an another browser). Can you upgrade to BigBlueButton 2.2.10 and let us know if this still occurs.

Why would it give error in case of copy paste? I am using my application backend to make calls to my BBB server(since that's where my shared secret is kept) and then returning the obtained join url in a json response to the client application built in Angular. The application is then supposed to call the join url in an iframe. It's returning 401 Unauthorised everytime. What might be the issue?

If the user is removed from a conference by the Moderator, the removal is now permanent for the duration of the conference.

However, if the user is not removed by a moderator, you shouldn't get this error (unless you copy the join URL and try opening it an another browser).

Can you upgrade to BigBlueButton 2.2.10 and let us know if this still occurs.

(unless you copy the join URL and try opening it an another browser) why is this, so is it not possible to use an iframe, I am getting this issue with only one user by the way. please I would really appreciate some kind of direction on this. Thanks ;)

b-sass99 commented 3 years ago

We are seeing this issue too, with only ONE attendee, plus the moderator.

was getting this issue with just one use , i set allowRequestsWithoutSession=true in /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties. It worked for me , hope it helps

amishbhavsar commented 3 years ago

I am having still having similar issue even after changing the bigbluebutton.properties allowRequestsWithoutSession=true

Describe the bug When you try to create breakout rooms with people, they got "Unauthorized Session not found. 401".

To Reproduce Go to a meeting (Greenlight) Click on 'Create breakout rooms' Join the breakout rooms See error Expected behavior People should be able to join the breakout rooms

Actual behavior Unauthorized Session not found. 401

BBB version (optional): BigBlueButton Server 2.2.31 (2298)

Desktop (please complete the following information): OS: Windows 10 Browser : Chrome Version 87.0.4280.88

AravindTReddy commented 3 years ago

allowRequestsWithoutSession=true

This worked for me, but I have no idea why this