Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80225

Recordings go missing because they are marked as Dismissed

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_405_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-80225-403
    • MDL-80225-404
    • MDL-80225-master
    • Hide

      run CLI script mod/bigbluebuttonbn/cli/update_dismissed_recordings.php

      Show
      run CLI script mod/bigbluebuttonbn/cli/update_dismissed_recordings.php
    • Hide
      Prerequisites for manual testing

      The BBB server must be made temporarily unavailable from the Moodle instance and the getRecordings API call triggered.

      The easiest way found to replicate the error is to:

      • Create a credential with the usual process
      • Enter the credential in the Activity modules > BigBlueButton > General settings

      Test 

      1. Login as admin
      2. Create a Course C1 and BBB activity B1
      3. Create recording R1 and wait for it to appear in the activity
      4. Go Activity modules > BigBlueButton > General settings and add a random letter in the bigbluebuttonbn_shared_secret (it will prevent the access to the BBB server)
      5. Purge cached: php admin/cli/purge_caches.php
      6. Add the script attached to this ticket in the main moodle folder
      7. Run the script: 
        1. php  test_recording.php -b=<CMID from BBB activity>
      8. Ensure that You see Recording : 2 (this value means the recording has been processed)
      Show
      Prerequisites for manual testing The BBB server must be made temporarily unavailable from the Moodle instance and the getRecordings API call triggered. The easiest way found to replicate the error is to: Create a credential with the usual process Enter the credential in the Activity modules > BigBlueButton > General settings Test  Login as admin Create a Course C1 and BBB activity B1 Create recording R1 and wait for it to appear in the activity Go Activity modules > BigBlueButton > General settings and add a random letter in the bigbluebuttonbn_shared_secret (it will prevent the access to the BBB server) Purge cached: php admin/cli/purge_caches.php Add the script attached to this ticket in the main moodle folder Run the script:  php  test_recording.php -b=<CMID from BBB activity> Ensure that You see Recording : 2 (this value means the recording has been processed)

      As a follow up of MDL-80061 and MDL-76339, we need to see if there is not a better way to handle the recording dismissal.

      The process of marking recordings as dismissed is the following:

      • BBB module will try to get the recording information
      • If it fails outside the recording time limit period of 30 days, it will "dismiss" the recording (this will prevent from sending too many request that are deemed to fail).

      We need to review this process as there were instances where getRecordings fails due to a networking issue, it's being interpreted as recordings no longer existing in Moodle.  and marked as state=1 , which causes them to disappear to users. A better approach would be perhaps to ignore empty responses (or at the very least not make any DB changes based on them) and only proceed with making recording status changes if we are sure we have a valid response. That way in the event of network connectivity issues, we hold off on changing the status until we can verify what is/isn't on the server.

      Currently a workaround to re-enable those records is to regulary (through a dedicated cron task) run CLI script mod/bigbluebuttonbn/cli/update_dismissed_recordings.php which does not use time filtering.

            shamiso.jaravaza Shamiso Jaravaza
            shamiso.jaravaza Shamiso Jaravaza
            Laurent David Laurent David
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 34 minutes
                5h 34m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.