asyncwebio / bigbluebutton-streaming

BigBlueButton Streaming - Your free, open-source solution to expand your virtual classrooms to thousands of learners globally. Stream live on YouTube, Facebook, Vimeo, or any RTMP server right from BigBlueButton. No more user limit - teach without boundaries.
https://higheredlab.com
30 stars 7 forks source link

Live Streaming is not working #31

Closed gmath2 closed 11 months ago

gmath2 commented 11 months ago

Hello I hope you are well For me, even though I followed the instructions (and the video) exactly, it installs the live streaming on my server (2.6.10 and 2.7) but when I'm in the session after entering my live streaming server details (youtube) and pressing start Streaming gives me black screen and stops streaming. I have installed several times on a clean BBB server, but always the same behavior. Every time I reinstall Ubuntu and reinstall BBB from scratch. I'm not an IT guy and can't look it up myself. I just follow your instructions. If you want help me. Thank you very much

gmath2 commented 11 months ago

I will install one more time and let you know. Thanks again.

gmath2 commented 11 months ago

Again the same: It doesn't work. Please......

nishekh-e-r commented 11 months ago

@gmath2, I recommend the following steps to diagnose the issue you're experiencing.

  1. Ensure the pm2 is present and running the node application on your BigBluebutton server. To check this, use the command pm2 list.

    pm2-list

    If the bbb-streaming is listed and its status is anything other than online, you should restart the bbb-streaming by using the following command:

    pm2 restart bbb-streaming

    Screenshot from 2023-08-02 17-02-47

  2. Furthermore, it's important to note under which user account you're running the install script. We don't advise executing the install script as a root or bigbluebutton user. Instead, please create a new user with sudo access and execute the install command with this user.

I hope this helps, and feel free to reach out if you require more assistance.

magnaapps commented 11 months ago

F12 shows me the following error when i start the Streamer

image

gmath2 commented 11 months ago

@gmath2, I recommend the following steps to diagnose the issue you're experiencing.

  1. Ensure the pm2 is present and running the node application on your BigBluebutton server. To check this, use the command pm2 list. pm2-list If the bbb-streaming is listed and its status is anything other than online, you should restart the bbb-streaming by using the following command: pm2 restart bbb-streaming Screenshot from 2023-08-02 17-02-47
  2. Furthermore, it's important to note under which user account you're running the install script. We don't advise executing the install script as a root or bigbluebutton user. Instead, please create a new user with sudo access and execute the install command with this user.

I hope this helps, and feel free to reach out if you require more assistance.

Thanks for the reply, but the same thing happens, even though it shows online. image

I'm not installing as root, but as gmath, as shown: preinstall npx npm-force-resolutions Need to install the following packages: npm-force-resolutions@0.0.10 Ok to proceed? (y) I pressed y + enter and continue the installation. If this is the fault, I don't know how to fix it

nishekh-e-r commented 11 months ago

@gmath2 I will be happy to help you please write to support@higheredlab.com, to schedule a call.

nishekh-e-r commented 11 months ago

@gmath2

Run this command pm2 logs bbb-streaming

0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

The error in your log file indicates that the backend bbb-streaming requires sudo access. To resolve this, you can configure sudo to not ask for a password for the relevant user. Here's how:

  1. Open a terminal.

  2. Type sudo visudo. This will open the sudoers file in the system's default text editor. The visudo command checks the syntax of the sudoers file to help prevent you from accidentally locking yourself out of the system.

  3. Scroll down to the section of the file that looks like this:

# User privilege specification
root    ALL=(ALL:ALL) ALL
  1. Underneath the root user, add the following line, replacing username with the username for which you want to allow passwordless sudo commands:
username ALL=(ALL:ALL) NOPASSWD: ALL
  1. Press Ctrl+X to exit the editor, then Y to save changes, and Enter to confirm.

Now, the user you added will be able to use sudo without being asked for a password.

and restart bbb-streaming pm2 restart bbb-streaming

Please try it and let us know.

gmath2 commented 11 months ago

@gmath2

Run this command pm2 logs bbb-streaming

0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
0|bbb-stre | sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

The error in your log file indicates that the backend bbb-streaming requires sudo access. To resolve this, you can configure sudo to not ask for a password for the relevant user. Here's how:

  1. Open a terminal.
  2. Type sudo visudo. This will open the sudoers file in the system's default text editor. The visudo command checks the syntax of the sudoers file to help prevent you from accidentally locking yourself out of the system.
  3. Scroll down to the section of the file that looks like this:
# User privilege specification
root    ALL=(ALL:ALL) ALL
  1. Underneath the root user, add the following line, replacing username with the username for which you want to allow passwordless sudo commands:
username ALL=(ALL:ALL) NOPASSWD: ALL
  1. Press Ctrl+X to exit the editor, then Y to save changes, and Enter to confirm.

Now, the user you added will be able to use sudo without being asked for a password.

and restart bbb-streaming pm2 restart bbb-streaming

Please try it and let us know.

Thank you very much It worked!!!!! The secret was in NOPASSWD: ALL If you want the instructions you gave me include them in the README. One more question: When BBB is upgraded, will Live Streaming still work? Now however if I update BBB to version 2.7.0-beta.3 the streaming stops working, and it can't be installed because it requires 2.7.0-beta.2. Are you planning to make it work once it's installed, still work in subsequent BBB upgrades? However, the app now works perfectly!!! Thank you once again. I'll be looking forward to her development so that she works in future versions of BBB as well. Really on BBB 2.6.11, can it be installed? Thanks again, and for taking the time to help me. Be well always gmath

nishekh-e-r commented 11 months ago

we will try to upgrade to other versions also.