Warning : session_start(): open(/home/vol19_2/epizy.com/epiz_34088188/htdocs/edu/moodledata/sessions/sess_3e135b52c33690ff8a2e77363a17b67f, O_RDWR) failed: Disk quota exceeded (122) in /home/vol19_2/epizy.com/epiz_34088188/htdocs/edu/lib/classes/session/handler.php on line 45
Warning : session_start(): Failed to read session data: files (path: /home/vol19_2/epizy.com/epiz_34088188/htdocs/edu/moodledata/sessions) in /home/vol19_2/epizy.com/epiz_34088188/htdocs/edu/lib/classes/session/handler.php on line 45
hello, I have the following problem. I put LMS MOODLE on hosting and was developing my course. Today, when logging into the administrator account, I get the following error (1 screen)
Then I tried to go in and look at the Moodle settings in the control panel and there it also gives an error (2 screen)
After studying the errors, most say that disk space has run out, disk quota exceeded, although this is not the case (3 screen)
A “quota” error means that the limit is hit for the account, not for the server. If the server was full, you’d see an error like “No space left on device”.
It’s really stupid you’re getting this error though. Or rather, really stupid from Moodle.
Our servers by default have a session save path set. That’s on a separate storage device that’s optimized for fast, effortless session storage, which doesn’t have account level limits on how much sessions you have. But for some reason, the Moodle developers thought it was a good idea to override the session storage directory so the session files are stored directly on the account, which is slower, less secure, and subject to inode limits. Had Moodle not changed decided to change this behavior, you wouldn’t have this issue.
I didn’t quite understand what you wanted to say, is it possible to somehow transfer my moodle work to another hosting or will I have to do it all over again?
I suppose you could try to clear the session storage by hand.
Looking at the error message, it appears that Moodle stores sessions in the directory htdocs/edu/moodledata/sessions/ in your account. If you go into that directory and delete everything there, it should free up some inodes with minimal impact to visitors.
As explained by the Admin above, Moodle by default changes the default session storage to a folder stored inside your account, subjecting it to inode limits and breaking your website as a result.
Those 2 lines were the ones given by Moodle in the documentation link I sent above to change the session storage path, in particular this line:
set the session storage to session_save_path(), which is a PHP function that fetches the current directory used to save session data (in our case, since this is the initial configuration, this fetched InfinityFree’s default session storage which isn’t subjected to the inode limit your account is).