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

Redirects cause error with BBB setup #2688

Closed
hmt opened this issue Apr 24, 2021 · 3 comments
Closed

Redirects cause error with BBB setup #2688

hmt opened this issue Apr 24, 2021 · 3 comments

Comments

@hmt
Copy link

hmt commented Apr 24, 2021

I'm using https://github.com/hmt/tinyscale to load balance BBB servers. This works well with nextcloud and moodle but Greenlight seems to get confused by the redirect from the tinyscale server to the chosen BBB server (https://github.com/hmt/tinyscale/blob/master/app.ts#L61).
The logs give me this:

2021-04-24 08:44:02 +0000 - INFO: [36c34f8d-da86-4005-8bd0-9cdf196db37d] [meineIP] method=GET path=/b/ format=html controller=MainController action=index status=302 duration=87.79 view=0.00 db=18.26 location=https://bbb1.de/b/t-l-lno-g8t-tyc host=greenlight 
2021-04-24 08:44:02 +0000 - ERROR: [14ee8947-04a4-4bb7-bcef-c035f209a220] [meineIP] BigBlueButtonException: Impossible to convert XML to hash. Error: File does not exist: Found. Redirecting to https://bbb1.de/bigbluebutton/api/isMeetingRunning?meetingID=3op5p35ckrelpsyymstd0xzzrtrah7u7kzrxahap&checksum=1234. 
2021-04-24 08:44:02 +0000 - INFO: [14ee8947-04a4-4bb7-bcef-c035f209a220] [meineIP] method=GET path=/b/t-l-lno-g8t-tyc format=html controller=RoomsController action=show status=200 duration=502.78 view=420.99 db=7.19 host=greenlight 
2021-04-24 08:44:21 +0000 - ERROR: [3e260a70-a713-475f-a0c1-faa454765341] [meineIP] BigBlueButtonException: Impossible to convert XML to hash. Error: File does not exist: Found. Redirecting to https://bbb2.de/bigbluebutton/api/isMeetingRunning?meetingID=3op5p35ckrelpsyymstd0xzzrtrah7u7kzrxahap&checksum=1234. 
2021-04-24 08:44:21 +0000 - INFO: [3e260a70-a713-475f-a0c1-faa454765341] [meineIP] method=GET path=/b/t-l-lno-g8t-tyc format=html controller=RoomsController action=show status=200 duration=148.17 view=61.70 db=2.05 host=greenlight

Interesting is this part here:

BigBlueButtonException: Impossible to convert XML to hash. Error: File does not exist: Found. Redirecting to ...

The found probably refers to the server status code 302 which is returned when redirecting the call.

Is there is simple remedy to this? Do I have to instruct tinyscale to respond differently? I'd be happy if I could just let BBB handle all responses.

EDIT I seem to have found the origin of this issue here: mconf/bigbluebutton-api-ruby#23

@farhatahmad
Copy link
Collaborator

I'm not aware of a simple solution. The way Scalelite works is that it makes the call to the BigBlueButton server and responds to Greenlight with the response from the server (instead of redirecting and getting the response directly from the server).

As you noted above, the issue is with the BigBlueButton gem and will need to be fixed there

@hmt
Copy link
Author

hmt commented Apr 25, 2021

Thank you, the gem seems quite dead by now. I'm looking into proxying to circumvent the issue on my side. Thanks for replying.

@hmt hmt closed this as completed Apr 25, 2021
@hmt
Copy link
Author

hmt commented Apr 26, 2021

In case anybody wants to see the solution to how this can be fixed, I just fetch()ed the XML and forwarded to Greenlight. Works well and with that solution another BBB client is support in tinyscale. (https://deno.land/x/[email protected]/app.ts#L75-L78)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants