How to rerun archiving if BBB was stopped when meeting was active?

68 views
Skip to first unread message

virus.f...@gmail.com

unread,
Mar 11, 2021, 4:23:50 AM3/11/21
to BigBlueButton-dev
Hello

I have such a problem: sometimes meetings do not get archived, probably when BBB server is stopped when a meeting was still active.

If I find the meeting ID in /var/log/ and then do:

cd /usr/local/bigbluebutton/core/scripts
ruby archive/archive.rb -m <meeting ID>

then meeting is archived correctly, /var/bigbluebutton/recording/raw/<meeting ID> is created.

The question is how to make BBB archive meetings which are active at the moment when server is shutdown? They are active just because some of participant forgot to leave 1+ hours ago.

I tried to hack like this:

<...>
bbb-conf --stop
<...>
recording_units="$(systemctl list-dependencies --plain bbb-record-core.target | awk '{print $NF}' | tr '\n' ' ')"
systemctl start ${recording_units}
sleep 3m
AWAITING=1
for i in $(seq 1 30)
do
    if systemctl is-active -q bbb-rap-archive-worker.service
        then sleep 1m
        else AWAITING=0 && break
    fi
done
if [ "$AWAITING" = 1 ]; then
    echo "XXX bbb-rap-archive-worker.service has been active for more than 30 mins, killing it!"
    systemctl stop "$recording_units"
fi

but this did not solve the problem. Running
systemctl start bbb-record-core.target bbb-rap-archive-worker.service bbb-rap-events-worker.service bbb-rap-process-worker.service bbb-rap-publish-worker.service bbb-rap-sanity-worker.service
does not trigger archiving of such recordings.

Please help to understand how to better handle stopping BBB when there are active meetings. Thanks!

virus.f...@gmail.com

unread,
Mar 11, 2021, 5:49:12 AM3/11/21
to BigBlueButton-dev
I've made such a script to workaround this problem, but it is just an ugly hack...

sd...@distancelearning.cloud

unread,
Mar 11, 2021, 6:55:13 AM3/11/21
to bigblueb...@googlegroups.com

Curious why would you ever have the need to stop bbb when meetings are running?

 

Regards,

Stephen

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/99137a1a-a26e-4103-ac27-beed9de16f89n%40googlegroups.com.

virus.f...@gmail.com

unread,
Apr 4, 2021, 2:43:54 AM4/4/21
to BigBlueButton-dev
четверг, 11 марта 2021 г. в 14:55:13 UTC+3, DistanceLearning.cloud:

Curious why would you ever have the need to stop bbb when meetings are running?

 I turn on additional servers for a few days when there is high load and then turn off them, meetings are not really running, but there may be left ones which are formally running but no people are using them.
Reply all
Reply to author
Forward
0 new messages