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

Analytics Callback does not return anything #1138

Open
diokast opened this issue Feb 4, 2025 · 1 comment
Open

Analytics Callback does not return anything #1138

diokast opened this issue Feb 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@diokast
Copy link

diokast commented Feb 4, 2025

Describe the bug
We have developed a custom application that uses BigBlueButton for mentoring sessions. We are trying to take advantage of analytics-callback in order to get attendance data. We are using SCALELITE to handle BBB events for all of our company services (e-learning, e-mentoring, etc.). We tried the analytics-callback but nothing is returned.

The post_events_analytics_callback.log of the BBB server, when creating the meeting through SCALELITE server:

I, [2025-02-03T13:49:37.294187 #1139179]  INFO -- : Analytics Post Events for [f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738583334900] starts
I, [2025-02-03T13:49:37.294770 #1139179]  INFO -- : Processing events for analytics...
I, [2025-02-03T13:49:37.372603 #1139179]  INFO -- : {"version":"1.0","meeting_id":"ed81057a-b812-4a77-9fc0-173ecc05b564233d7079060-6137-44cc-85ec-c4d9c8d1ba85","internal_meeting_id":"f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738583334900","data":{"metadata":{"meeting_name":"2η Συνεδρία","is_breakout":"false","analytics_callback_url":"https://MY_SCALELITE_URL/api/analytics_callback"},"duration":40,"start":"2025-02-03T13:48:54.000+02:00","finish":"2025-02-03T13:49:34.000+02:00","attendees":[{"ext_user_id":"ed81057a-b812-4a77-9fc0-173ecc05b564","name":"Mentee002 Demo","moderator":false,"joins":["2025-02-03T13:48:56.000+02:00"],"leaves":["2025-02-03T13:49:34.000+02:00"],"duration":38,"recent_talking_time":"","engagement":{"chats":0,"talks":0,"raisehand":0,"emojis":0,"poll_votes":0,"talk_time":0},"sessions":[{"joins":[{"timestamp":"2025-02-03T13:48:56.000+02:00","userid":"w_jmjpmhoqgmpz","ext_userid":"ed81057a-b812-4a77-9fc0-173ecc05b564","event":"join","remove":false}],"lefts":[]}]},{"ext_user_id":"d7079060-6137-44cc-85ec-c4d9c8d1ba85","name":"Mentor002 Demo","moderator":true,"joins":["2025-02-03T13:49:15.000+02:00"],"leaves":["2025-02-03T13:49:34.000+02:00"],"duration":19,"recent_talking_time":"","engagement":{"chats":0,"talks":0,"raisehand":0,"emojis":0,"poll_votes":0,"talk_time":0},"sessions":[{"joins":[{"timestamp":"2025-02-03T13:49:15.000+02:00","userid":"w_tymxl60abpbf","ext_userid":"d7079060-6137-44cc-85ec-c4d9c8d1ba85","event":"join","remove":false}],"lefts":[]}]}],"files":["default.pdf"],"polls":[]}}
I, [2025-02-03T13:49:37.580968 #1139179]  INFO -- : <?xml version="1.0"?>
<response>
  <returncode>FAILED</returncode>
  <messageKey>unsupportedContentType</messageKey>
  <message>POST request Content-Type is missing or unsupported</message>
</response>

I, [2025-02-03T13:49:37.581016 #1139179]  INFO -- : Success
I, [2025-02-03T13:49:37.581029 #1139179]  INFO -- : Analytics Post Events for [f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738583334900] ends

To Reproduce

Deployment:

  1. Deployment: It is based on the default systemd deployment
  2. Versions: SCALELITE 1.6.3, BBB 2.7.16

Steps to reproduce the behavior:

  1. Create a meeting in SCALELITE with the meta_analytics-callback-url
  2. Join the meeting. Check logs in docker logs -f scalelite-api 2>&1 | grep -C3 'analytics' for the specific meeting.
  3. End the meeting and wait for analytics data
  4. Nothing is returned, logs in scalelite-api are not updated. See error in post_events_analytics_callback.log of the BBB server where SCALELITE created the meeting.

Expected behavior

The post_events_analytics_callback.log from the BBB server, when creating the meeting direct to BBB server:

I, [2025-02-03T13:28:46.237198 #1127249]  INFO -- : Analytics Post Events for [f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738581968738] starts
I, [2025-02-03T13:28:46.238658 #1127249]  INFO -- : Processing events for analytics...
I, [2025-02-03T13:28:46.392166 #1127249]  INFO -- : {"version":"1.0","meeting_id":"ed81057a-b812-4a77-9fc0-173ecc05b564233d7079060-6137-44cc-85ec-c4d9c8d1ba85","internal_meeting_id":"f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738581968738","data":{"metadata":{"is_breakout":"false","meeting_name":"2η Συνεδρία","analytics_callback_url":"https://MY_APP_URL/api/bbb/analytics"},"duration":154,"start":"2025-02-03T13:26:08.000+02:00","finish":"2025-02-03T13:28:42.000+02:00","attendees":[{"ext_user_id":"ed81057a-b812-4a77-9fc0-173ecc05b564","name":"Mentee002 Demo","moderator":false,"joins":["2025-02-03T13:26:15.000+02:00"],"leaves":["2025-02-03T13:28:42.000+02:00"],"duration":147,"recent_talking_time":"","engagement":{"chats":0,"talks":0,"raisehand":0,"emojis":0,"poll_votes":0,"talk_time":0},"sessions":[{"joins":[{"timestamp":"2025-02-03T13:26:15.000+02:00","userid":"w_8gocbfnyy8ub","ext_userid":"ed81057a-b812-4a77-9fc0-173ecc05b564","event":"join","remove":false}],"lefts":[]}]},{"ext_user_id":"d7079060-6137-44cc-85ec-c4d9c8d1ba85","name":"Mentor002 Demo","moderator":true,"joins":["2025-02-03T13:27:25.000+02:00"],"leaves":["2025-02-03T13:28:42.000+02:00"],"duration":77,"recent_talking_time":"2025-02-03T13:28:36.000+02:00","engagement":{"chats":0,"talks":19,"raisehand":0,"emojis":0,"poll_votes":0,"talk_time":31},"sessions":[{"joins":[{"timestamp":"2025-02-03T13:27:25.000+02:00","userid":"w_hs44aqx42rr9","ext_userid":"d7079060-6137-44cc-85ec-c4d9c8d1ba85","event":"join","remove":false}],"lefts":[]}]}],"files":["default.pdf"],"polls":[]}}
I, [2025-02-03T13:28:46.923797 #1127249]  INFO -- : 
I, [2025-02-03T13:28:46.923839 #1127249]  INFO -- : Success
I, [2025-02-03T13:28:46.923851 #1127249]  INFO -- : Analytics Post Events for [f039f6be0177f3a9d4b259edea2df3ac767cd51d-1738581968738] ends

Additional context
As you see in the above logs, when we create the same meeting direct to the BBB server, we get back all analytics data. The difference with the first logs, is line: I, [2025-02-03T13:49:37.580968 #1139179] INFO -- : <?xml version="1.0"?> Is SCALELITE trying to send an XML instead of JSON file?

We have followed all directives in documentation for entering the BBB secrets in SCALELITE LOADBALANCERSECRETS list. We have checked on all BBB servers that the 'securitySalt' is the same in both files /etc/bigbluebutton/bbb-web.properties and /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties

We are looking forward for your opinion

@diokast diokast added the bug Something isn't working label Feb 4, 2025
@gschwienbacher
Copy link

hi @diokast, it seems the same issue as we and also others had, described in: #1130
@Ithanil & @ffdixon @farhatahmad FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants