bbb-exporter stops with scalelite when no meetings
See original GitHub issueBecause scalelite dont return <meetings/>
tag when there are no meeting. If there is one or more meeting it runs correctly.
Docker log:
2020-09-11 10:42:19,901 [DEBUG]: https://***.edu.tr:443 "GET /bigbluebutton/api/getMeetings?checksum=*** HTTP/1.1" 200 None
----------------------------------------
Exception happened during processing of request from ('172.18.0.3', 35978)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python3.8/socketserver.py", line 720, in __init__
self.handle()
File "/usr/local/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 152, in do_GET
output = encoder(registry)
File "/usr/local/lib/python3.8/site-packages/prometheus_client/openmetrics/exposition.py", line 14, in generate_latest
for metric in registry.collect():
File "/usr/local/lib/python3.8/site-packages/prometheus_client/registry.py", line 75, in collect
for metric in collector.collect():
File "/app/collector.py", line 55, in collect
meetings, meetings_data_latency = execution_duration(api.get_meetings)()
File "/app/helpers.py", line 19, in wrapper
result = fun(*args, **kwargs)
File "/app/api.py", line 14, in get_meetings
if data['response']['meetings'] is None:
KeyError: 'meetings'
Scalelite API getMeetings function response:
<?xml version="1.0"?>
<response>
<returncode>SUCCESS</returncode>
<messageKey>noMeetings</messageKey>
<message>No meetings were found on this server.</message>
</response>
Other BBB API getMeetings function response:
<response>
<returncode>SUCCESS</returncode>
<meetings/>
<messageKey>noMeetings</messageKey>
<message>no meetings were found on this server</message>
</response>
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Recordings on scalelite are not shown - Google Groups
Hi! I have setup scalielite and meeting from Moodle are transfered to BigBlueButton server perfectly, but recordings are not show, they arrived to...
Read more >Scalelite | Providing BBBs for Schools in Baden-Württemberg
BigBlueButtonWorld was a global conference held during June 21st - 24th, 2021. Educators, developers, administrators and commercial partners ...
Read more >Scalelite lazy deployment - Jesus Federico
Scalelite is an open-source load balancer, designed specifically for BigBlueButton [1], that evenly spreads the meeting load over a pool of BigBlueButton ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is officially fixed in release v0.5.2. Please change your docker image tags to
v0.5.2
and create your container.Thanks @merterhk for the bug report and fix. And thank you @faust64 for the PR 😃
Can one of you confirm that the current master build solves your bug?
You can replace the docker image tag with
latest
, pull the new image and recreate the docker container.Note, the version tag has not changed yet, don’t let that fool you.