Scalelite doesn't show any record of BBB server

2,059 views
Skip to first unread message

Mohammad Reza Zamani

unread,
May 31, 2020, 11:46:25 AM5/31/20
to BigBlueButton-dev
Hi everybody
I have some problem in scalelite recordings


System Status:

I have 2 BBB servers on version 2.2.15 and 1 scalelite server. They are 3 VM machine in my dedicated server.
I'am using Wordpress to connect with Scalelite server

What I am done:

I've installed scalelite using this instruction:


After that I've created a LVM partition and setup NFS share volume in scalelite server and BBB. Both scalelite and BBB server have access to write on shared mount point.
I've changed UFW firewall rule to allow NFS connection port

I've done these commands on every BBB server

groupadd -g 2000 scalelite-spool
usermod
-a -G scalelite-spool bigbluebutton

and in scalelite server:

mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/spool
chown 1000:2000 /mnt/scalelite-recordings/var/bigbluebutton/spool
chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/spool
mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/published
chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/published
chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/published
mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/unpublished
chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/unpublished
chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/unpublished

Then from here I've copied "scalelite_post_publish.rb" to "/usr/local/bigbluebutton/core/scripts/post_publish" and change end of that to this code (To fix the errors that occurred):

archive_file = "#{work_dir}/#{meeting_id}.tar"
begin
  puts('Creating recording archive')
  FileUtils.mkdir_p(work_dir)
  FileUtils.cd(published_dir) do
    system('tar', '--create', '--file', archive_file, *format_dirs) \
      || raise('Failed to create recording archive')
  end

  extra_rsync_string = extra_rsync_opts.join(' ') 
  puts("Adding extra rsync options:  #{extra_rsync_string} ")

  puts("Transferring recording archive to #{spool_dir}")
  system('sg','scalelite-spool', '-c', "rsync --verbose --protect-args #{extra_rsync_string} #{archive_file} #{spool_dir}") \
    || raise('Failed to transfer recording archive')ensure
  FileUtils.rm_f(archive_file)
end


furthermore I've copied "scalelite.yml" and "scalelite_batch_import.sh" to "/usr/local/bigbluebutton/core/scripts" and to fix the errors that occured in "scalelite_batch_import.sh" changed:

( cd "$scripts_dir" && sudo -n -u bigbluebutton ./post_publish/scalelite_post_publish.rb -m "$record_id" )

to

( cd "$scripts_dir" && sudo -n -u bigbluebutton ruby ./post_publish/scalelite_post_publish.rb -m "$record_id" )


till this step, everything is working fine and scalelite load balancer functionality works for my both BBB servers. But when I want to transfer old records from my BBB server, I run "scalelite_batch_import.sh" and it copy all of records to scalelite:






What isn't work well:


  1. When I run that script, it transfer some .tar file to "/mnt/scalelite-recordings/var/bigbluebutton/spool" directory of Scalelite server (Using NFS). But there isn't any file on "/mnt/scalelite-recordings/var/bigbluebutton/published". So my wordpress cant show any record in frontend.
  2. New meetings records not transfer automatically to scalelite, so there isn't any records on scalelite to show on my Wordpress panel

Note: When I set "BigBlueButton URL" and "BigBlueButton shared secret" from one of BBB servers (bbb-conf --secret) on wordpress admin panel, records will be appear, but when I switch to "Scalelite URL" and "Scalelite Shared Secred" it doesn't show any record.


Now, how can I transfer my old records from BBB server to scalelite and show them on Wordpress?!

Mohammad Reza Zamani

unread,
Jun 1, 2020, 12:53:32 AM6/1/20
to BigBlueButton-dev
I changed .env file in "/root/scalelite-run" directory on Scalelite server and uncomment these lines:

SCALELITE_RECORDING_DIR=/mnt/scalelite-recordings/var/bigbluebutton
SCALELITE_NGINX_EXTRA_OPTS=--mount type=bind,source=/etc/letsencrypt,target=/etc/nginx/ssl,readonly

Then ran:

docker-compose down
docker-compose up -d


After that I ran "scalelite_batch_import.sh" again and all old records transfered well ^_^


What isn't work well:

New meetings records don't transfer to Scalelite automatically. How can I turn on automatic transfer records on BBB server? How BBB server knows it should transfer files to Scalelite server when finish processing them?

Mohammad Reza Zamani

unread,
Jun 2, 2020, 2:58:45 PM6/2/20
to BigBlueButton-dev
I check again and everything works well. Records automatically publish after processing.

But after I rebooted my server, recordings can't play. When I click on playback link, it opens presentation playback windows but shows "Recording not found" error on the bottom of page! How can I fix it?
I ran:

docker-compose down
docker-compose up -d

but it doesn't fix my problem.

Mohammad Reza Zamani

unread,
Jun 2, 2020, 3:27:29 PM6/2/20
to BigBlueButton-dev
I found the solution of my problem by myself again :)))

That problem was occured because mount point was not accessible. I mounted my partiton again and ran docker compose down and up to fix that

Fran Pereyra

unread,
Jun 24, 2020, 12:40:11 PM6/24/20
to BigBlueButton-dev
Hi Mohammed. Thank you for sharing this solution. I am facing a similar issue trough Moodle.

I can see you are moving/duplicating all the recordings form one BBB server to SCALELITE. 

What about a shared drive? Have you tried this?
Message has been deleted

Gökhan Özdemir

unread,
Aug 27, 2020, 1:00:25 PM8/27/20
to BigBlueButton-dev
I do not understand how you did it, please open it a bit, the solution is the same problem I have in my scalelite server files are visible but not on the moodle side

2 Haziran 2020 Salı tarihinde saat 22:27:29 UTC+3 itibarıyla mr.gi...@gmail.com şunları yazdı:

Cristhian Bacusoy

unread,
Sep 1, 2020, 9:25:28 PM9/1/20
to BigBlueButton-dev
Hi I'm stuck with on  automatic transfer, I mean thanks to your post now my recordings are posted in the fronted of wordpress, but is not automatic, how do i do that?
What I don't understand is this part:

"Transfer using rsync over SSH

To transfer recording files over SSH, you will need to set up an SSH key and SSH configuration for the bigbluebutton user.

You can log in as the bigbluebutton user with the command:

su - bigbluebutton -s /bin/bash

All of the following example commands assume you are running as the bigbluebutton user.

You will need to create the .ssh directory if it doesn't exist:

mkdir -p ~/.ssh ; chmod 0700 ~/.ssh... "
Where I have to configure the ssh in the scalelite server or in each bigbluebutton server? 

Reply all
Reply to author
Forward
0 new messages