Clearing MOODLEDATA folders

Clearing MOODLEDATA folders

by Raphael Muonga -
Number of replies: 7

I seem to have a problem with MOODLE 3.1 Site Administration Link which has stopped opening up. What would happen if I deleted al the MOODLEDATA  sub-folders? Would the entire system collapse?

Please help, I am fearing to bring down the system if I attempted to do that on a production Site.

Regards

Raphael

Average of ratings: -
In reply to Raphael Muonga

Re: Clearing MOODLEDATA folders

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
If you've deleted the moodledata directory tree, it is safer to recover both, moodledata and the database, from the last https://docs.moodle.org/31/en/Site_backup.
In reply to Visvanath Ratnaweera

Re: Clearing MOODLEDATA folders

by Raphael Muonga -

No, I have not deleted the moodledata directory tree. I am just thinking of purging the caches using the cPanel back-end File Manager since I am not able to open the Site Administration link which should allow me to do Administration functions like Purging Caches, etc. I am not even sure whether deleting those moodledata directories will help. Everything was okay until two days ago since 3 years the site has been running on MOODLE 3.1 version.

In reply to Raphael Muonga

Re: Clearing MOODLEDATA folders

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I didn't get the "sub-folders" thing earlier.

The documented way is https://docs.moodle.org/en/Administration_via_command_line#Purge_caches. If your cPanel can't handle that - more reason to use Unix command line - deleting directories like cache, localcache, muc, trashdir don't break Moodle. BUT, your own responsibility! (You keep site backups, don't you?)
In reply to Raphael Muonga

Re: Clearing MOODLEDATA folders

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Raphael, I am just moving your discussion to the General help forum where you're most likely to receive help.

In reply to Helen Foster

Re: Clearing MOODLEDATA folders

by Raphael Muonga -
Hi Helen,

I am failing to see this post in the General Help, it looks not easy , is there a way of searching one's post in those discussion categories?
In reply to Raphael Muonga

Re: Clearing MOODLEDATA folders

by Ken Task -
Picture of Particularly helpful Moodlers

So to re-focus on the issue ... you cannot get to any of the Site Admin menu links that go to admin areas, is that correct?

Above would mean one cannot click through them to purge caches but can you go directly there via the URL line in your browser?

Example: https://yoursite/admin/purgecaches.php

You change https://yoursite/ above to the URL of your site.

If you are not logged onto the site as an admin, you should be prompted to login and after that Moodle should forward you to the admin/purgecaches.php script.   In your version of Moodle that script is supposed to just do purges ... you will not see options form to choose what to purge.

One can do manual purges via cPanel ... and Visvanath Ratnaweera has already listed the directories you should purge: cache, localcache, and muc.   Those should be rebuld as site is used.

You should NOT do any more with folders and files in moodledata ... just the above.

If that doesn't clear up issues, then you need to turn on debugging ...

First see if you can get to the form for debugging directly:

https://yoursite/admin/settings.php?section=debugging

If you can set debugging to developer and then try to navigate to any other admin area.  If debugging shows something copy and paste to a local text document (like NotePad/TextEdit) ... then come back here and share what that said.

After you've done that, turn debugging off by going back to the debugging URL and turning it off.

IF you can't get to debugging that way, there is one alternative left and we can provide that when/if needed.

Without some 'techie info', anything would be a total guess and may not be anywhere close to resolving your issue.

It also wouldn't hurt to tell us something about where and how you are hosted ... hosting provider? ... shared hosting?  plan you lease? etc.

'SoS', Ken