Error viewing home room - Invalid BigBlueButton Endpoint and Secret
I have BigBlueButton setup using the Greenlight docker image. I can login OK using LDAP authentication, but when I click "Home" in the top-left I receive the following error message:

I've made sure that the secret in Greenlight's .env file matches the output of bbb-conf --secret We changed the IP addresses of the Docker networks used by Greenlight because the one selected by Docker was interfering with other networks in our LAN. The error output in ~/greenlight/log/production.log doesn't appear to quote the reason for the error (pasted at very end). Is there anything else we should check to see what is causing the error?
The following files were changed: /etc/docker/daemon.json ~/greenlight/docker-compose.yml
root@tac1-bbb:~# cat /etc/docker/daemon.json
{
"bip": "192.168.1.1/24"
}
root@tac1-bbb:~# cat ~/greenlight/docker-compose.yml
version: '3'
networks:
greenlight:
ipam:
driver: default
config:
- subnet: "192.168.2.1/24"
services:
app:
entrypoint: [bin/start]
image: bigbluebutton/greenlight:v2
container_name: greenlight-v2
env_file: .env
restart: unless-stopped
networks:
- greenlight
ports:
- 127.0.0.1:5000:80
# When using external logging
# logging:
# driver: $LOG_DRIVER
# options:
# syslog-address: $LOG_ADDRESS
# tag: $LOG_TAG
volumes:
- ./log:/usr/src/app/log
# When using sqlite3 as the database
- ./db/production:/usr/src/app/db/production
# When using postgresql as the database
# links:
# - db
# db:
# image: postgres:9.5
# restart: on-failure
# ports:
# - 127.0.0.1:5432:5432
# volumes:
# - ./db/production:/var/lib/postgresql/data
# environment:
# - PGHOST=postgres
# - PGDATABASE=postgres
# - PGUSER=postgres
# - PGPASSWORD=password
root@tac1-bbb:/etc/docker# bbb-conf --secret
URL: https://joinme.rainierconnect.net/bigbluebutton/
Secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Link to the API-Mate:
http://mconf.github.io/api-mate/#server=https://joinme.rainierconnect.net/bigbluebutton/&sharedSecret=XXXXXXXXXXXXXXXXXXXXXXXXXXxxxx
root@tac1-bbb:~/greenlight# cat .env
# Create a Secret Key for Rails
#
# You can generate a secure one through the Greenlight docker image
# with with the command.
#
# docker run --rm bigbluebutton/greenlight:v2 bundle exec rake secret
#
SECRET_KEY_BASE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# The endpoint and secret for your BigBlueButton server.
# Set these if you are running GreenLight on a single BigBlueButton server.
# You can retrive these by running the following command on your BigBlueButton server:
#
# bbb-conf --secret
#
BIGBLUEBUTTON_ENDPOINT=https://joinme.rainierconnect.net/bigbluebutton/
BIGBLUEBUTTON_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
Greenlight log generated when receiving error when clicking on "Home":
I, [2019-07-30T16:21:47.724442 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Started GET "/b/csr-day-xg9" for 69.10.205.203 at 2019-07-30 16:21:47 +0000
I, [2019-07-30T16:21:47.726125 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Processing by RoomsController#show as HTML
I, [2019-07-30T16:21:47.726271 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Parameters: {"room_uid"=>"csr-day-xg9"}
D, [2019-07-30T16:21:47.728755 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
D, [2019-07-30T16:21:47.733132 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Role Load (0.4ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:47.735206 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'denied') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:47.737474 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'pending') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:47.738750 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Room Load (0.3ms) SELECT "rooms".* FROM "rooms" WHERE "rooms"."uid" = ? LIMIT ? [["uid", "csr-day-xg9"], ["LIMIT", 1]]
D, [2019-07-30T16:21:47.741132 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Role Load (0.4ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'super_admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:47.744039 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Room Exists (0.3ms) SELECT 1 AS one FROM "rooms" WHERE "rooms"."user_id" = ? AND "rooms"."id" = ? LIMIT ? [["user_id", 2], ["id", 2], ["LIMIT", 1]]
I, [2019-07-30T16:21:48.769075 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Rendering errors/bigbluebutton_error.html.erb within layouts/application
I, [2019-07-30T16:21:48.769962 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Rendered errors/bigbluebutton_error.html.erb within layouts/application (0.7ms)
D, [2019-07-30T16:21:48.774947 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] CACHE (0.0ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'super_admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:48.776546 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Room Load (0.3ms) SELECT "rooms".* FROM "rooms" WHERE "rooms"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.777832 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."provider" = ? LIMIT ? [["provider", "greenlight"], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.779629 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."setting_id" = ? AND "features"."name" = ? LIMIT ? [["setting_id", 1], ["name", "Branding Image"], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.781066 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] CACHE (0.0ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'super_admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:48.782961 #1] DEBUG -- : [211010a7-3433-49d9-b0c8-9dac0f842565] CACHE (0.0ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
I, [2019-07-30T16:21:48.783510 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Rendered shared/_header.html.erb (10.0ms)
I, [2019-07-30T16:21:48.784432 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Rendered shared/components/_cookie_warning.html.erb (0.2ms)
I, [2019-07-30T16:21:48.784665 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Rendered shared/_footer.html.erb (0.8ms)
I, [2019-07-30T16:21:48.785020 #1] INFO -- : [211010a7-3433-49d9-b0c8-9dac0f842565] Completed 200 OK in 1059ms (Views: 15.4ms | ActiveRecord: 3.5ms)
I, [2019-07-30T16:21:48.874760 #1] INFO -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Started GET "/b/themes/primary.css" for 69.10.205.203 at 2019-07-30 16:21:48 +0000
I, [2019-07-30T16:21:48.876080 #1] INFO -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Processing by ThemesController#index as CSS
D, [2019-07-30T16:21:48.877658 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.881700 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:48.883572 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'denied') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:48.885216 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND (((roles.name = 'pending') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 2]]
D, [2019-07-30T16:21:48.886442 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."provider" = ? LIMIT ? [["provider", "greenlight"], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.888545 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."setting_id" = ? AND "features"."name" = ? LIMIT ? [["setting_id", 1], ["name", "Primary Color"], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.890122 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."setting_id" = ? AND "features"."name" = ? LIMIT ? [["setting_id", 1], ["name", "Primary Color Lighten"], ["LIMIT", 1]]
D, [2019-07-30T16:21:48.891474 #1] DEBUG -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."setting_id" = ? AND "features"."name" = ? LIMIT ? [["setting_id", 1], ["name", "Primary Color Darken"], ["LIMIT", 1]]
I, [2019-07-30T16:21:48.942419 #1] INFO -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Rendering text template
I, [2019-07-30T16:21:48.942666 #1] INFO -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Rendered text template (0.0ms)
I, [2019-07-30T16:21:48.943033 #1] INFO -- : [f7e1cc6b-c67c-4684-ab13-91ee30115a51] Completed 200 OK in 67ms (Views: 0.8ms | ActiveRecord: 2.2ms)
Hi,
You've posted your BigBlueButton Endpoint and Secret in plaintext which means your server is compromised. I strongly suggest you immediately generate a new Shared Secret by following the BigBlueButton docs
In the future, anytime you see a variable with the word "secret", you should blank it out before posting it on anywhere online.
Thank you - I've updated the secret
As for your issue, whats the output from the following command?
docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check
It took about 20 seconds or so to run and produced the following:
root@tac1-bbb:~/greenlight# docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check
Checking environment: Passed
Checking Connection: Failed
Error connecting to BigBlueButton server - execution expired
Greenlight's request to your BigBlueButton Server is timing out. This is most likely caused by some sort of networking issues on your end.
Just out of curiosity, are you able to connect to any website from your docker container? Or are all of your requests timing out? You can check by running this command:
docker run --rm --env-file .env bigbluebutton/greenlight:v2 ping www.google.com
The ping to Google worked. I'm wondering if it is related to the change made to the Docker IP addresses. Are there any other commands I should try from within the Docker container to verify connectivity to BBB? BBB and Greenlight are on the same server in our setup.
I tried pinging our BBB server from within the container and it is timing out. Looking into how to fix this currently.
root@tac1-bbb:~/greenlight# docker run --rm --env-file .env bigbluebutton/greenlight:v2 ping www.google.com
PING www.google.com (172.217.14.228) 56(84) bytes of data.
64 bytes from sea30s02-in-f4.1e100.net (172.217.14.228): icmp_seq=1 ttl=57 time=1.97 ms
64 bytes from sea30s02-in-f4.1e100.net (172.217.14.228): icmp_seq=2 ttl=57 time=2.09 ms
64 bytes from sea30s02-in-f4.1e100.net (172.217.14.228): icmp_seq=3 ttl=57 time=2.09 ms
64 bytes from sea30s02-in-f4.1e100.net (172.217.14.228): icmp_seq=4 ttl=57 time=2.16 ms
64 bytes from sea30s02-in-f4.1e100.net (172.217.14.228): icmp_seq=5 ttl=57 time=2.17 ms
^C
--- www.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 9ms
rtt min/avg/max/mdev = 1.968/2.095/2.173/0.083 ms
I made a change to the firewall on the server and can now ping BigBlueButton using its hostname from the .env file from within the Docker container, but it is still getting the initial error message.
I made another change to the firewall config and it is now working. Thank you for the help.
The docker network (192.168.1.2) wasn't an allowed source IP for HTTPS traffic.
Glad to hear that you got it to work!
I made a change to the firewall on the server and can now ping BigBlueButton using its hostname from the .env file from within the Docker container, but it is still getting the initial error message.
What change have you made ? I've the same message with my server in DMZ behind a box
I made another change to the firewall config and it is now working. Thank you for the help.
The docker network (192.168.1.2) wasn't an allowed source IP for HTTPS traffic.
Does anybody know what that means? I have the same error and the ping also works (with changes to the hosts file).
Does this have anything to do with the iptables or my hardware firewall? `sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
DOCKER-USER all -- anywhere anywhere
DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain DOCKER (2 references)
target prot opt source destination
ACCEPT tcp -- anywhere 172.20.0.2 tcp dpt:postgresql
ACCEPT tcp -- anywhere 172.20.0.3 tcp dpt:http
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target prot opt source destination
DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere
DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere
RETURN all -- anywhere anywhere
Chain DOCKER-ISOLATION-STAGE-2 (2 references)
target prot opt source destination
DROP all -- anywhere anywhere
DROP all -- anywhere anywhere
RETURN all -- anywhere anywhere
Chain DOCKER-USER (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
`
Same issue with mine server any help plz !!

Same issue, please help, if i run this command docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check
Checking environment: Passed Checking Connection: Failed Could not get a valid response from BigBlueButton server -
301 Moved Permanently
hi farhatahmad ,
I have the same problem but cannot figure out how to fix, please help me
I was able to use normally, but after setting up the coturn. I ran this command docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check
and get
Checking environment: Passed Checking Connection: Failed Could not get a valid response from BigBlueButton server -
404 Not Found
I'm getting the same error: Checking Connection: Failed tomcat7 is removed somehow:
/var/www# bbb-conf --status nginx —————————————————► [✔ - active] freeswitch ————————————► [✔ - active] redis-server ——————————► [✔ - active] bbb-apps-akka —————————► [✔ - active] bbb-transcode-akka ————► [✔ - active] bbb-fsesl-akka ————————► [✔ - active] red5 ——————————————————► [✔ - active] mongod ————————————————► [✔ - active] bbb-html5 —————————————► [✔ - active] bbb-webrtc-sfu ————————► [✔ - active] kurento-media-server ——► [✔ - active] etherpad ——————————————► [✔ - active] bbb-web ———————————————► [✔ - active]
Is the issue solved? Can u share solution with me. I have same issue.
yeh i have resolved,
important steps should follow in sequence while installing bigbluebutton 1.wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-220 2.SSL setup ( letsrcypt/certbot) 3.sudo bbb-conf --setip erpflowmaker.com(hostname) 4.wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-220 -s erpflowmaker.com -e [email protected] -g
sudo bbb-conf --restart
From: kemalsaruhan [email protected] Sent: Wednesday, April 15, 2020 5:31 PM To: bigbluebutton/greenlight [email protected] Cc: Kashifaziz123 [email protected]; Comment [email protected] Subject: Re: [bigbluebutton/greenlight] Error viewing home room - Invalid BigBlueButton Endpoint and Secret (#710)
Is the issue solved? Can u share solution with me. I have same issue.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/bigbluebutton/greenlight/issues/710#issuecomment-614009515, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQ4TGBAJOL5OHMCBFBNNT3RMWSLPANCNFSM4IH6DVXA.
Greetings!
@Kashifaziz123 is your server behind a firewall?
Also important it should open port 443 and some other ports
Get Outlook for Androidhttps://aka.ms/ghei36
From: algyadamo [email protected] Sent: Wednesday, April 15, 2020 6:09:31 PM To: bigbluebutton/greenlight [email protected] Cc: Kashifaziz123 [email protected]; Mention [email protected] Subject: Re: [bigbluebutton/greenlight] Error viewing home room - Invalid BigBlueButton Endpoint and Secret (#710)
Greetings!
@Kashifaziz123https://github.com/Kashifaziz123 is your server behind a firewall?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bigbluebutton/greenlight/issues/710#issuecomment-614097189, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQ4TGH3MLJBW4ZMCKW47PDRMXE2XANCNFSM4IH6DVXA.