bigbluebutton / bbb-install

BASH script to install BigBlueButton in 30 minutes.
GNU Lesser General Public License v3.0
619 stars 538 forks source link

Several bbb services starting before redis-server #215

Open potatoattack opened 4 years ago

potatoattack commented 4 years ago

On my server some bbb services can start before redis which they seem to depend on. After a reboot, I get a 401 Unauthorized error in the html5 client until I restart bbb.

Status does not indicate anything is wrong:

# 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]

bbb-conf --restart fixes the problem.

I noticed some services had redis connection errors (though none of the services had failed :thinking:):

$ journalctl -u bbb-apps-akka.service|grep Unable
May 19 20:47:01 bbb bbb-apps-akka[967]: Exception in thread "main" io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379

Making bbb-apps-akka.service, bbb-fsesl-akka.service, bbb-transcode-akka.service, bbb-webrtc-sfu.service, and bbb-web.service start after redis-server.service fixed the issue.

$ cat /etc/systemd/system/bbb-apps-akka.service.d/override.conf
[Unit]
Requires=redis-server.service
After=redis-server.service
goekce commented 3 years ago

thank you this helped me too!

according to https://github.com/bigbluebutton/bigbluebutton/issues/9300#issuecomment-727631731 @ffdixon included this patch. Can this issue be closed @potatoattack ?