Branching Scenario uses all available disk space

  1. Detailed steps to reproduce the bug (exactly how and when did it happen) See Below
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle. Moodle 3.8.3
  3. Mobile or Desktop Desktop
  4. Browser: Chrome, Firefox, Safari etc Safari
  5. H5P plugin version 1.21 - 2020080800
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P. Branching Scenario. Download throws an error that h5p file is missing.
  7. Any browser console errors N/A
  8. Any PHP errors See Below
  9. Screenshots if it's a visual problem (Attached)
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.) None
  11. Any recent changes to the browser you're using (new extensions, updates etc.) None

Steps to reproduce

I created a branching exercise, with approximately 32 videos, and 50 steps in total.

The 32 videos are around 900mb in total.

The server had 6gb available.

When I load the exercise, the hvp in data/temp duplicates itself several times until the disk is filled.

I created another 20gb volume and moved moodle onto that, and now the 20gb volume is full.

 

PHP Errors

Warning: mkdir(): No space left on device in /srv/www/exped.net/public/mod/hvp/classes/file_storage.php on line 542

Warning: mkdir(): No space left on device in /srv/www/exped.net/public/mod/hvp/classes/file_storage.php on line 557

Warning: file_put_contents(/srv/www/exped.net/data/temp/hvp-5f82bff3cc8fe/h5p.json): failed to open stream: No space left on device in /srv/www/exped.net/public/mod/hvp/library/h5p.classes.php on line 1865

Warning: ZipArchive::close(): Failure to create temporary file: No space left on device in /srv/www/exped.net/public/mod/hvp/library/h5p.classes.php on line 1888

Hundreds of these - Line 234 (for different files)

Warning: copy(/srv/www/exped.net/data/temp/hvp-5f82bff3cc8fe/H5P.AppearIn-1.0/language/nl.json): failed to open stream: No such file or directory in /srv/www/exped.net/public/lib/filestorage/file_system_filedir.php on line 234

Attachments: 
Content types: 

Curious if you have found any solution to this problem?

We are currently experiencing the same issue - it has crashed our Moodle environment a few times this week and as more and more usage is pushed to the online environment, the problem has gotten worse.

I did find a solution - rather than using videos on the moodle server itself, I linked them from vimeo using distribution links.

BV52's picture

Hi All,

I tried to reproduce the issue but I am unable to do so. By design a duplicate of the content/files are created when exporting but this should only create 1 duplicate. If anyone in the community have any ideas on how to isolate the issue feel free to post your comments.

-BV

We are also experiencing the same issue in a Drupal environment (7.x-1.46).  Temp directory gets filled as soon as the node is accessed until all available space is filled (70GB).  There are a few interactive videos within the branching content type