bigbluebutton / greenlight

A really simple end-user interface for your BigBlueButton server.
GNU Lesser General Public License v3.0
789 stars 3.8k forks source link

BigBlueButton - server error which means Invalid endpoint and secet #2899

Closed arunodhayam1998 closed 2 years ago

arunodhayam1998 commented 2 years ago

I have set up the BigBlueButton using docker by following this repo https://github.com/bigbluebutton/docker/tree/develop. I run only these commands only. I can login as admin and the user but when I click the home, it will show a server error that Invalid Endpoint and Secret. But the endpoint and secret are automatically created by the docker-compose file. Here my questions

  1. How to get BigBlueButton secret and URL from the docker container (bbb-conf --secret).
  2. How to avoid this type of error?
arunodhayam1998 commented 2 years ago

Screenshot from 2021-09-14 14-26-00

relecand commented 2 years ago

Same to me. Installed via script:

wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v bionic-23 -s xxx.com -e xxx.com -w -g

Checked the secret. All fine. Hm?

arunodhayam1998 commented 2 years ago

Thanks for the reply relecand But I am using Ubuntu version 20.04 (focal fossa). that script supports ubuntu 18.04(bionic) Is there any way to solve the issue of server error??

arunodhayam1998 commented 2 years ago

Same to me. Installed via script:

wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v bionic-23 -s xxx.com -e xxx.com -w -g

Checked the secret. All fine. Hm?

I have checked the secret as inside the docker container using echo $SECRET_KEY_BASE echo $BIGBLUEBUTTON_ENDPOINT and echo $BIGBLUEBUTTON_SECRET. All the env presented inside the docker container what presented in the docker-compose file. But the error(invalid endpoint and secret) coming yet

relecand commented 2 years ago

I deleted the server and created a new one - with new IP. Then it worked. I have no idea...

farhatahmad commented 2 years ago

Normally, this indicates an issue with your BigBlueButton server installation. I would check in the forums to get some help (https://groups.google.com/forum/#!forum/bigbluebutton-setup)

lonesomewalker commented 2 years ago

This is funny, because now i have 2 servers which have the same issue. Greenlight -> server error API Mate -> working fine

So this might be an error with Greenlight. Logfile says: 2021-10-25 07:14:22 +0000 - ERROR: [2fff0112-e4e1-41b4-b083-50eb3a14d044] [xxx.xxx.xxx.xxx] BigBlueButtonException: Connection error. Your URL is probably incorrect: "https://server.domain.tld/bigbluebutton/api". Error: Failed to open TCP connection to server.domain.tld:443 (Connection refused - connect(2) for "server.domain.tld" port 443)

From inside the container:

root@server:~# docker exec -it greenlight-v2 bash
bash-5.1# ping server.domain.tld
PING server.domain.tld (127.0.1.1): 56 data bytes
64 bytes from 127.0.1.1: seq=0 ttl=64 time=0.178 ms
64 bytes from 127.0.1.1: seq=1 ttl=64 time=0.121 ms
root@server:~/greenlight# docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check

Checking environment: Passed
Checking Connection: Passed
Checking Secret: Passed
Checking SMTP connection: Failed
Error connecting to SMTP - 556 5.1.10 <notifications@example.com>: Recipient address rejected: Domain example.com does not accept mail (nullMX)
root@server:~# docker run --rm -it bigbluebutton/greenlight:v2 /usr/bin/curl https://server.domain.tld/bigbluebutton/api
<response>
<returncode>SUCCESS</returncode>
<version>2.0</version>
</response>root@server:~#

For all those who seek after this debugging for a solution: /etc/hosts has to have the public ip according to the hostname.