Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The installation stops when a symlink is created. - bbb-html5.service #727

Open
kovabor opened this issue Feb 12, 2024 · 7 comments
Open

Comments

@kovabor
Copy link

kovabor commented Feb 12, 2024

Dear All,

I'm trying to install bbb 3.0 apha 3 on ubuntu 22.04.4 with the following command:

wget -qO- https://raw.githubusercontent.com/bigbluebutton/bbb-install/v3.0.x-release/bbb-install.sh | bash -s -- -g -v jammy-300 -s xyz.yxz.hu -e info@*.hu

but so far it always stops at the following line:

Adding bbb-html5.service to autostart using systemd
Created symlink /etc/systemd/system/multiuser.target.wants/bbb-html5.service -> /lib/systemd/system/bbb-html5.service.
Created symlink /etc/systemd/system/bigbluebutton.target.wants/bbb-html5.service -> /lib/systemd/system/bbb-html5.service.

When I stop and restart the server, the page says

"Welcome to BigBlueButton!"

so something is working fine, but the greenlight doesn't install.

Thanks if you can help.
Gábor

@kovabor kovabor changed the title The installation stops. The installation stops when a symlink is created. Feb 12, 2024
@kovabor kovabor changed the title The installation stops when a symlink is created. The installation stops when a symlink is created. - bbb-html5.service Feb 12, 2024
@kovabor
Copy link
Author

kovabor commented Feb 12, 2024

I've realised in the meantime that it can't communicate because it has 'http://' instead of 'https', and that's where my address is pointing, the ports are open. how do I set the installer to set itself to 'https'?

root@bbbhu:~# sudo bbb-conf --check

BigBlueButton Server 3.0.0-alpha.3 (414)
                    Kernel version: 5.15.0-94-generic
                      Distribution: Ubuntu 22.04.3 LTS (64-bit)
                            Memory: 16198 MB
                         CPU cores: 4

/etc/bigbluebutton/bbb-web.properties (override for bbb-web)
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)
       bigbluebutton.web.serverURL: http://*bbb.*.hu
                defaultGuestPolicy: ALWAYS_ACCEPT
              defaultMeetingLayout: CUSTOM_LAYOUT

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server_name: 192.168.*.*
                              port: 80, [::]:80

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
                       local_ip_v4: 192.168.*.*
                   external_rtp_ip: 5.*.*.*
                   external_sip_ip: 5.*.*.*

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
                        ext-rtp-ip: $${external_rtp_ip}
                        ext-sip-ip: $${external_sip_ip}
                        ws-binding: :5066
                       wss-binding: :7443

UDP port ranges

                        FreeSWITCH: 16384-24576
                    bbb-webrtc-sfu: null-null
                    bbb-webrtc-recorder: null-null

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback_host: *bbb.*.hu
                 playback_protocol: http
                            ffmpeg: 4.4.2-0ubuntu0.22.04.1

/usr/share/bigbluebutton/nginx/sip.nginx (sip.nginx)
                        proxy_pass: 5.38.210.33
                          protocol: http

/usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml (STUN Server)
                              stun: stun.l.google.com:19302


# Potential problems described below
# Warning: Detected the directory
#    /var/bigbluebutton
# is not owned by bigbluebutton
grep: /opt/freeswitch/var/log/freeswitch/freeswitch.log: No such file or directo                                                                                                                                                             ry

#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021
#
................................................................................
# Error: Could not connect to the configured hostname/IP address
#
#    http://*bbb.*.hu
#
# If your BigBlueButton server is behind a firewall, see FAQ.

bbb-html5-backend@1 ——————————► [✘ - inactive]
bbb-html5-backend@2 ——————————► [✘ - inactive]
bbb-html5-frontend@1 —————————► [✘ - inactive]
bbb-html5-frontend@2 —————————► [✘ - inactive]
# Error: Detected some processes have not started correctly
#
#   bbb-html5-backend@1 ——————————► [✘ - inactive]
bbb-html5-backend@2 ——————————► [✘ - inactive]
bbb-html5-frontend@1 —————————► [✘ - inactive]
bbb-html5-frontend@2 —————————► [✘ - inactive]
#

#
# Warning: The directory
#
#  /var/bigbluebutton
#
# is not owned by bigbluebutton:bigbluebutton.  To fix, run the command
#
#   sudo chown -R bigbluebutton:bigbluebutton /var/bigbluebutton
#

@kovabor
Copy link
Author

kovabor commented Feb 12, 2024

freeswitch won't start, probably because of this (ports open)

@antobinary
Copy link
Member

Hi @kovabor
https would be set in /etc/bigbluebutton/bbb-web.properties

Please share your full logs from bbb-install next time you give it a try if you hit an issue.
The FreeSWITCH ports messages still need a bit of tweaking in the later alphas, they are not very trustworthy right now

@kovabor
Copy link
Author

kovabor commented Feb 15, 2024

Hi @antobinary

Yes, I've already changed it there and it caused further problems, but I'll check again (in case I didn't change it in this file.)

At the moment I'm thinking about the reverse proxy, as it says it's no good (I read this later, although it's in the description)

"TCP port 80 and 443 are not in use by another web server or reverse proxy"

On the reverse proxy only port 80 ls 443 passes through, but that's probably the problem.

Thanks anyway. i'll get back to you.

@bugsmafia
Copy link

@kovabor hey

I have the same problem as you now.
How did you fix this?
My uwf ports are open.

@kovabor
Copy link
Author

kovabor commented Apr 25, 2024

Hi,

Unfortunately I couldn't solve it yet, I gave up a bit :)

I've installed it in a fully open domain, but it didn't make any difference.

I have installed the new version of the old one, but it still fails.
I installed greenlight in vain, but I got nothing worthwhile.
I will try again soon.

It would be nice to have a simple version of this that doesn't need to be installed like this.

@bugsmafia
Copy link

@kovabor

I have a suspicion that when installing bbb-html5 the IP address is checked
http://169.254.169.254/latest/meta-data/public-ipv4

but this service is not running and I suspect that it creates a process stop

/* https://raw.githubusercontent.com/bigbluebutton/bbb-install/v3.0.x-release/bbb-install.sh */
`local external_ip

Determine external IP

if grep -sqi ^ec2 /sys/devices/virtual/dmi/id/product_uuid; then
# EC2
external_ip=$(wget -qO- http://169.254.169.254/latest/meta-data/public-ipv4)
elif [ -f /var/lib/dhcp/dhclient.eth0.leases ] && grep -q unknown-245 /var/lib/dhcp/dhclient.eth0.leases; then
# Azure
external_ip=$(curl -H Metadata:true "http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-08-01&format=text")
elif [ -f /run/scw-metadata.cache ]; then
# Scaleway
external_ip=$(grep "PUBLIC_IP_ADDRESS" /run/scw-metadata.cache | cut -d '=' -f 2)
elif which dmidecode > /dev/null && dmidecode -s bios-vendor | grep -q Google; then
# Google Compute Cloud
external_ip=$(wget -O - -q "http://metadata/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" --header 'Metadata-Flavor: Google')
elif [ -n "$1" ]; then
# Try and determine the external IP from the given hostname
need_pkg dnsutils
external_ip=$(dig +short "$1" @resolver1.opendns.com | grep '^[.0-9]*$' | tail -n1)
fi`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants