Skip to content

Commit d1cff91

Browse files
author
Baptiste DE RENZO
committed
fix: prevent internal routing issues when domain used as hostname
1 parent 3f4f775 commit d1cff91

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bbb-install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,15 @@ install_greenlight_v3(){
955955
# Preparing and checking the environment.
956956
say "preparing and checking the environment to install/update greenlight-v3..."
957957

958+
# Avoid error when domain used as hostname
959+
# See https://github.com/bigbluebutton/greenlight/issues/6174
960+
if grep -qE "^127\.[0-9]+\.[0-9]+\.[0-9]+[[:space:]]+$HOST" /etc/hosts; then
961+
err "Hosts configuration issue detected: Your domain '$HOST' is mapped to localhost in /etc/hosts.
962+
This is known to cause connectivity issues between Greenlight and the BigBlueButton API (see Greenlight issue #6174).
963+
Please edit, comment or remove the affected line in /etc/hosts then, restart the installation script.
964+
WARNING: If you are using a cloud provider, this entry may be added automatically during server deployment."
965+
fi
966+
958967
if [ ! -d $GL3_DIR ]; then
959968
mkdir -p $GL3_DIR && say "created $GL3_DIR"
960969
fi

0 commit comments

Comments
 (0)