BBB 2.6 cant find preuploaded presentation because of weird redirect

169 views
Skip to first unread message

Ollowain

unread,
Sep 5, 2023, 3:59:44 AM9/5/23
to BigBlueButton-Setup
Hello,

When I upload a presentation via GreenlightV2 BBB 2.6.10 cant access it.
Logs:


2023-09-05T09:32:09.454+02:00 DEBUG o.b.web.controllers.ApiController - module config found: [presentation]
2023-09-05T09:32:09.454+02:00 DEBUG o.b.web.controllers.ApiController - ApiController#downloadAndProcessDocument(https://bbb-conference.domain.com/b/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYjQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d3198043c54f5555051d8efc6077c711ee7a2b71/CHANGE_TEST.pdf, 6a6db7307f98e87fbd6daf8d31887077f67163dd-1693899129413, null)
2023-09-05T09:32:09.455+02:00 INFO  o.b.p.PresentationUrlDownloadService - Validating redirect URL [https://bbb-conference.domain.com/b/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYjQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d3198043c54f5555051d8efc6077c711ee7a2b71/CHANGE_TEST.pdf]
2023-09-05T09:32:09.455+02:00 ERROR o.b.p.PresentationUrlDownloadService - Address [127.0.1.1] is a loopback address
2023-09-05T09:32:09.455+02:00 ERROR o.b.web.controllers.ApiController - Failed to download

The URL above is valid and contains the expected PDF file.


On my Dev-System running 2.6.12 it works as expected.
Although weirdly the URLS on THAT machine are called with

/rails/active_storage/blobs/redirect/XXXXXXXXXX

But are also valid.




Honestly I have no clue why the 2.6.10 instance complains about the loopback adress.

Configurations should be identlicat, except that I am running GreenlightV2 under /b instead of GreenlightV3 unter /


Any thoughts?


Thank you!
Ollowain

anton.g...@blindsidenetworks.com

unread,
Sep 7, 2023, 9:30:09 AM9/7/23
to BigBlueButton-Setup
Hi Ollowain,

There was a fix related to loopback in 2.6.10 https://github.com/bigbluebutton/bigbluebutton/pull/18091 which was subsequently built upon.
We'd recommend upgrading (ideally 2.6.14 released a few days ago or 2.7.0 just released). But on 2.6.12 + it should be fine (with the redirect for the default presentation)

-Anton

Ollowain

unread,
Sep 8, 2023, 1:29:20 PM9/8/23
to BigBlueButton-Setup
Hello Anton,

thank you for the advice!

Unfortunatly after upgrading to 2.6.14 I now get the following error:



2023-09-08T19:17:52.616+02:00 INFO  o.b.p.PresentationUrlDownloadService - Validating redirect URL [/b/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSWRTbnBSVkVaNFVuQnlXR2xwTmtZMGVFNUxOVTFvWkZoQkJqb0dSVlE2RUdScGMzQnZjMmwwYVc5dVNTSkphVzVzYVc1bE95Qm1hV3hsYm1GdFpUMGlRMGhCVGtkRlgxUkZVMVF1Y0dSbUlqc2dabWxzWlc1aGJXVXFQVlZVUmkwNEp5ZERTRUZPUjBWZlZFVlRWQzV3WkdZR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSkloUmhjSEJzYVdOaGRHbHZiaTl3WkdZR093WlUiLCJleHAiOiIyMDIzLTA5LTA4VDE3OjIyOjUyLjYwMloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--83fad0d688f700a7a67cd3d8248b878b7032bca6/CHANGE_TEST.pdf?content_type=application%2Fpdf&disposition=inline%3B+filename%3D%22CHANGE_TEST.pdf%22%3B+filename%2A%3DUTF-8%27%27CHANGE_TEST.pdf]

2023-09-08T19:17:52.617+02:00 ERROR o.b.p.PresentationUrlDownloadService - Malformed URL [/b/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSWRTbnBSVkVaNFVuQnlXR2xwTmtZMGVFNUxOVTFvWkZoQkJqb0dSVlE2RUdScGMzQnZjMmwwYVc5dVNTSkphVzVzYVc1bE95Qm1hV3hsYm1GdFpUMGlRMGhCVGtkRlgxUkZVMVF1Y0dSbUlqc2dabWxzWlc1aGJXVXFQVlZVUmkwNEp5ZERTRUZPUjBWZlZFVlRWQzV3WkdZR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSkloUmhjSEJzYVdOaGRHbHZiaTl3WkdZR093WlUiLCJleHAiOiIyMDIzLTA5LTA4VDE3OjIyOjUyLjYwMloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--83fad0d688f700a7a67cd3d8248b878b7032bca6/CHANGE_TEST.pdf?content_type=application%2Fpdf&disposition=inline%3B+filename%3D%22CHANGE_TEST.pdf%22%3B+filename%2A%3DUTF-8%27%27CHANGE_TEST.pdf]

2023-09-08T19:17:52.618+02:00 ERROR o.b.presentation.SupportedFileTypes - Presentation is null



Somewhere along the way rails seems to forget to attach the hostname to the URL but I cant figure out why.

The "location" parapgraph in "/usr/share/bigbluebutton/nginx/greenlight.nginx" is commented IN!

Any ideas?

Regards
Ollowain

Ollowain

unread,
Sep 11, 2023, 5:18:03 AM9/11/23
to BigBlueButton-Setup
I found a fix!


After some googleing I experimented with the location section in

/usr/share/bigbluebutton/nginx/greenlight.nginx

and came up with this:

location /rails/active_storage { return 301 https://$host/b$request_uri; }


I had thought that this would lead to double "https://" shennenigans since NGINX started with the correct URL but weirdly this works!


If anybody else has this problem while running BBB >= 2.6 with GreenlightV2  und

https://myhost.domain.com/b

I hope this helps!


Regards
Ollowan

anton.g...@blindsidenetworks.com

unread,
Sep 11, 2023, 2:24:07 PM9/11/23
to BigBlueButton-Setup
Hi again Ollowan,

I am glad you found a fix that works for you and you also documented it here for anyone else to find it!!

I checked with other members here and the recommendation was to upgrade Greenlight to v3 (v2 has not been supported for a few months). They had not seen this particular error but the best guess was a discrepancy with the EOL v2.
For the record, not all answers here are "upgrade to latest" but in this case that was the recommendation... Shoud you choose to migrate soon, this is the doc to use: https://docs.bigbluebutton.org/greenlight/v3/migration

-Anton

Ollowain

unread,
Oct 31, 2023, 6:25:09 AM10/31/23
to BigBlueButton-Setup
Hello guys,

After upgrading to greenlightv3 on my production environment the presentation upload broke down again.
I am getting somewhat desperate here because NOW my DEV-System and my Prod-System are more ore less identical.

Both are running BBB 2.7.2 with GreenlightV3 under "/"

I made sure that in both intances the "active_storage" location under

/usr/share/bigbluebutton/nginx/greenlight.nginx

is commented OUT.
But for some reason the production machine is still complaining about 127.0.1.1 is a loopback adress...

2023-10-30T17:43:45.413+01:00 INFO  o.b.p.PresentationUrlDownloadService - Validating redirect URL [https://bbb-conference.company.de//rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxqWldaallqSTFNQzA1TWpVd0xUUmxOMll0T1RabFlpMWhZVFJtTmpBeE5UaG1OVElHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--a2e13106d85286726ac7a55ace67ca467486f9f7/CHANGE_TEST.pdf]
2023-10-30T17:43:45.413+01:00 ERROR o.b.p.PresentationUrlDownloadService - Address [127.0.1.1] is a loopback address
2023-10-30T17:43:45.419+01:00 ERROR o.b.presentation.SupportedFileTypes - Presentation is null

What else might I do to narrow this down?


Thanks in advance.

Regards
Florian

anton.g...@blindsidenetworks.com

unread,
Nov 2, 2023, 10:59:38 AM11/2/23
to BigBlueButton-Setup
Hi again Florian,

I checked with one of the developers working in this area and he recommended to add an entry

insertDocumentBlockedHosts=
at the bottom of /etc/bigbluebutton/bbb-web.properties

Then restart BBB. And yes, there is nothing on the right hand side of the equals sign - it's an empty list.. The default value is localhost but likely this is what's tripping you.
Please give this a try and keep us posted.
-Anton

Ollowain

unread,
Nov 3, 2023, 4:18:49 AM11/3/23
to BigBlueButton-Setup
Hello Anton,

OMGeesus it is working!

Thank you so much for taking an interest!

So if I understand this correctly, somewhere in my configuration the system is actually using 127.0.1.1 to identify the host instead of the hostname?
And by default BBB does not want to do that, presumably to ensure that a proper hostname is set everywhere?

Can you guess where tue error might be?
Because I gave the BBB install script the proper hostname at setup...
An error in /etc/hosts perhaps?

Anyway, no that I can mollify my disgruntled users, I be slow and methodical about this.

Regards
Florian

Armin Stroß-Radschinski

unread,
Sep 25, 2025, 4:27:05 AM (2 days ago) Sep 25
to BigBlueButton-Setup
I can confirm to have had the same issue with a current updated BBB 3.0.15 (3009) and GreenlightV3 
  • Error in `bbb-conf --debug` retrieve logs contains `o.b.p.PresentationUrlDownloadService - Address [127.0.1.1] is a loopback address`
  • Adding `insertDocumentBlockedHosts=` in `/etc/bigbluebutton/bbb-web.properties` and restart fixed my case and preloaded custom presentations showed up again in rooms.
Context described in detail in this comment related to other loopback issues behind a Fritz!box router and its limitations:
https://github.com/bigbluebutton/greenlight/issues/6125#issuecomment-3319806635

TL;DR;
  • The router refuses to connect to the external FQDN from inside of the local network. 
  • Setting an reboud protection exception for the FQDN in the router did not help. 
  • editing the `/etc/hosts`file and add `local-IP mydomain.com` after the loopback entry `127.0.1.1 mydomain.com` fixed the starting room issue, discussed in the same ticket, but not the presentation load.
  • NOTE: We still need to edit on every internal machine the `/etc/hosts` file and add `local-IP mydomain.com`  temporarily as long the machine is in the internal network. Other solutions welcome.
Reply all
Reply to author
Forward
0 new messages