Files size is larger than the limited size in moodledata/filedir folder!

Files size is larger than the limited size in moodledata/filedir folder!

by Nirosha Rathnayake -
Number of replies: 2

Hi,

I have a CentOS 7 server for Moodle LMS under LEMP environment. I have found that in one of LMSes there are hundred of large files in folders in filedir. But the file upload size is limited to 64MB. For example: 

6.3G 2021-08-13 18:20 /filedir/f5/6e/f56eb74a4db322f92eb7cf61512c9b5b9edc3e9c

6.3G 2021-08-12 15:17 /filedir/1a/88/1a88bad7185b06a950b46ecf2e7c8d01c346e358

3.8G 2021-08-20 10:43 /filedir/14/25/1425a1cb10aee7f8489a7b10cb80e1d7b7934f49

3.7G 2021-10-05 15:25 /filedir/e9/3b/e93ba3e4b23717104f8e3c766c55ccf410be1d16

3.5G 2021-10-11 18:12 /temp/backup/75fb693a8a8fc7a3bef010a5d94a455f/backup.mbz

3.0G 2021-06-11 05:23 /filedir/0b/d1/0bd10aa36a4f79de27802a107692a075152be34d

3.0G 2021-06-10 20:31 /filedir/0f/f0/0ff0e2e760c34b28e8e3e9ecc9552924c62fb28b


The LMS admin cannot find any large files in the trash bin or course backups. What could be the issue? Is there a way to find and remove those files?

Average of ratings: -
In reply to Nirosha Rathnayake

Re: Files size is larger than the limited size in moodledata/filedir folder!

by Ken Task -
Picture of Particularly helpful Moodlers

They are probably backups made by teachers which get stored in filedir but tagged in DB under private files of the teacher ... which admin cannot see.

This one:

3.5G 2021-10-11 18:12 /temp/backup/75fb693a8a8fc7a3bef010a5d94a455f/backup.mbz

is a failed backup ... last step is to *copy* to moodledata/filedir/xx/yy/ and it appears your server could not.

That one can be manually removed.

For all others, suggest installing a report - all backups
https://moodle.org/plugins/report_allbackups/versions
Be sure to get version that is compatible with your Moodle version (which you did not mention).

'SoS', Ken


In reply to Ken Task

Re: Files size is larger than the limited size in moodledata/filedir folder!

by Nirosha Rathnayake -
Dear Ken,

Thanks a lot for your detailed information. I'll check on this. BTW the Moodle version is 3.8.1+ (Build: 20200221). I forgotten to mention.

Best regards,