Giter Club home page Giter Club logo

Comments (13)

greenstatic avatar greenstatic commented on June 9, 2024

You are accessing the webpage, so it should not be an issue with any network port. I suspect some API errors in regard to BBB. Can you post the logs returned by the bbb-monitoring container?

sudo docker logs bbb-monitoring

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

Multiple:

KeyError: 'bbb-origin-server-name'
172.17.0.1 - - [25/Mar/2020 21:10:31] "GET /api/meetings HTTP/1.0" 500 -
[2020-03-25 21:10:46,165] ERROR in app: Exception on /api/meetings [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "bbb-mon/server.py", line 24, in api_meetings
return jsonify(views.get_meetings())
File "/app/bbb-mon/views.py", line 58, in get_meetings
"origin-server": meeting['metadata']['bbb-origin-server-name'],

from bigbluebutton-monitoring.

greenstatic avatar greenstatic commented on June 9, 2024

I see. I suspect this is because you are not using the Moodle plugin, which our server had whilst developing the utility. Nonetheless the issue is with the utility. Fix coming shortly.

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

How would this monitor connect to Moodle plugin?

I tried triggering conf call via greenlight and Moodle plugin, both times I get 500..

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

Triggering call from Moodle returns this error I think:

[2020-03-25 21:20:25,331] ERROR in app: Exception on /api/meetings [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "bbb-mon/server.py", line 24, in api_meetings
return jsonify(views.get_meetings())
File "/app/bbb-mon/views.py", line 64, in get_meetings
m['metadata']['origin-context'] = _bbb_context_convert_moodle(meeting['metadata']['bbb-context'])
File "/app/bbb-mon/views.py", line 84, in _bbb_context_convert_moodle
el = root['root'][element]
TypeError: string indices must be integers

from bigbluebutton-monitoring.

greenstatic avatar greenstatic commented on June 9, 2024

It's possible that the real issue is the API communication. Are you sure you entered the API URL and secret correctly?
The URL should be like this: https://bbb.example.com/bigbluebutton/api/ - note the api endpoint and trailing slash.

The secret value you should copy from bbb-conf --secret

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

I did double check the docker run command and its correct. Using same secret from Moodle plugin and it works there..

Still this error persists:

[2020-03-25 21:30:41,020] ERROR in app: Exception on /api/meetings [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "bbb-mon/server.py", line 24, in api_meetings
return jsonify(views.get_meetings())
File "/app/bbb-mon/views.py", line 64, in get_meetings
m['metadata']['origin-context'] = _bbb_context_convert_moodle(meeting['metadata']['bbb-context'])
File "/app/bbb-mon/views.py", line 84, in _bbb_context_convert_moodle
el = root['root'][element]
TypeError: string indices must be integers
172.17.0.1 - - [25/Mar/2020 21:30:41] "GET /api/meetings HTTP/1.0" 500 -

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

Where do you pick out server name? From API response or parsed from URL?
It is correct in my case..

Also, since error changed from when I triggered call from greenlight to different one when I triggered it from Moodle, API access seems correct?

Also, accessing that bbb api url gives:

SUCCESS 2.0

Tripple checked entered URL and secret, now via api-mate and its correct..

from bigbluebutton-monitoring.

greenstatic avatar greenstatic commented on June 9, 2024

I have created a new branch with the possible fix: https://github.com/greenstatic/bigbluebutton-monitoring/tree/issue-1

I have also created a preview build to see if we have made any progress.
Can you pull greenstatic/bigbluebutton-monitoring:version-0.3.1-beta1 and add to the docker run -e "DEBUG=true". This should enable more verbose logging.

from bigbluebutton-monitoring.

greenstatic avatar greenstatic commented on June 9, 2024

The monitor receives "Moodle data" from the BBB API under metadata, specifically a context string which the Moodle plugin passes to BBB when creating the room. Within this string is the name of the corresponding Moodle course which is displayed on the monitor website.

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

It works now, altough few problems:

  • could you assume, if you do not have metadata with bbb params, that this room was run from server itself, thus simply writing into Origin Server column server name instead of null?
  • Creation column is marked Invalid date on both rooms (one from moodle, one directly from BBB server (greenlight UI))
  • Origin context is empty in both cases (Moodle and Greenlight entry point)

image

Bluring out stuff because of internet, not you per se :)

from bigbluebutton-monitoring.

greenstatic avatar greenstatic commented on June 9, 2024

I think there are some major differences between your BBB/Moodle setup and ours in which case I made some invalid assumptions.

Since Origin Server to the best of my knowledge isn't dependent on the Moodle plugin I would say there is something weird going on.

After a short discussion with @matjazp, it seems we have a multilingual Moodle installation which makes the Moodle plugin return a XML context - one (course name) for each language. I assumed this is the same for monolingual installations of Moodle but I guess that was another wrong assumption.

Could you enable the DEBUG=true flag when running the docker container and paste the API responses you get from the server? If you have reservations regarding the contents of the response (names, IP's, domains) you can censor them out or email me the response (my email is on my GH profile/website).

No worries regarding the blurring, but I should mention you forgot the blur your IP from your initial issue post 😅 - not that it's a big deal, it's just an IP which can be found i.e. on Shodan.

from bigbluebutton-monitoring.

SubjectXXX avatar SubjectXXX commented on June 9, 2024

Hehe, that IP is from this reusable testing machine, so no biggie there 🗡

Anyway, sent you email with api call and you can analyze it there.

from bigbluebutton-monitoring.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.