The session partition is full

The session partition is full

deur Alfred Barton -
Getal antwoorde: 19
After a successful installation _ all OKs and before going past the setting up of the config we get this error-

The session partition is full. It is not possible to login at this time.

Please notify server administrator.

What does this mean? and how can we fix it?

Thanks
Gemiddeld van beoordelings:Useful (1)
In antwoord op Alfred Barton

Re: The session partition is full

deur Howard Miller -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers
You've run out of disk space?!?

At least it *thinks* you've run out of disk space which is not always the same thing.
Gemiddeld van beoordelings:Useful (1)
In antwoord op Howard Miller

Re: The session partition is full

deur Alfred Barton -
999 Gigs available, could this be a permissions thing? and if so where to fix?
Thanks
Gemiddeld van beoordelings: -
In antwoord op Alfred Barton

Re: The session partition is full

deur victor acosta -
try to install 1.9.5(not 1.9.5+) it works for me, i have the same error on a server of byethost, i guess is a bug i dont know, sorry for my english im still learnig.


greetings from mexico..

Gemiddeld van beoordelings: -
In antwoord op victor acosta

Re: The session partition is full

deur Alfred Barton -
Yes we ended up with the most current build that was one week later and it installed without problems.
Thanks
Gemiddeld van beoordelings: -
In antwoord op victor acosta

Re: The session partition is full

deur Marco Mendoza -

I did install 1.9.5 version not plus, but I got same error,

May somebody helpme?

Instalattion was successfull without problems,

I did pass all OK´s

Regards,

Gemiddeld van beoordelings: -
In antwoord op Marco Mendoza

Re: The session partition is full

deur Iñaki Arenaza -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Particularly helpful Moodlers Prentjie van Peer reviewers Prentjie van Plugin developers

There's a bug in some PHP versions on Linux (and probaly other Unices aswell) where disk_free_space returns false when the free space is very large (larger than what can be stored in a C long int variable). In that case, even if you have tons of free space, it simply returns false (i.e., no free space at all).

If you are really sure you have free space in the partition that holds your $CFG->datatroot directory, then edit lib/setup.php and comment out the following lines of code (it seems they are going to be removed in the 1.9.x version anyway, see MDL-19222):

        // Need to disable debugging since disk_free_space()
        // will fail on very large partitions (see MDL-19222)
        $freespace = @disk_free_space($CFG->dataroot.'/sessions');
        if (!($freespace > 2048) and $freespace !== false) {
            echo '<html><body>';
            echo '<table align="center"><tr>';
            echo '<td style="color:#990000; text-align:center; font-size:large; border-width:1px; '.
                '    border-color:#000000; border-style:solid; border-radius: 20px; border-collapse: collapse; '.
                '    -moz-border-radius: 20px; padding: 15px">';
            echo '<p>The session partition is full. It is not possible to login at this time.</p>';
            echo '<p>Please notify server administrator.</p>';
            echo '</td></tr></table>';
            echo '</body></html>';
            die;
        }

Saludos. Iñaki.

Gemiddeld van beoordelings: -
In antwoord op Marco Mendoza

Re: The session partition is full

deur Alfred Barton -
Same result - all OKs then error message.
After several tries tried the latest weekly release and it installed fine and correctly- using it without problems now.
Gemiddeld van beoordelings: -
In antwoord op Marco Mendoza

Re: The session partition is full

deur Karim Jaffer -
Marco, Any luck so far?
Aanhangsel setup_page.jpg
Gemiddeld van beoordelings: -
In antwoord op Karim Jaffer

Re: The session partition is full

deur Marco Mendoza -

No yet,

I'm trying to upload appplication in another server,

I did upload 1.89 version and did work fine, but it is incomplete for my needs,

I need install 1.95 version,

Thanks & Regards,

Gemiddeld van beoordelings: -
In antwoord op Marco Mendoza

Re: The session partition is full

deur Cleber Krauskopf -

I've solved the problem by editing the lib/setup.php. Only delete this lines:

//// LINE 423 TO 434 /////

if (!(disk_free_space($CFG->dataroot.'/sessions') > 0)) {
                echo '<html><body>';
                echo '<table align="center"><tr>';
                echo '<td style="color:#990000; text-align:center; font-size:large; border-width:1px; '.
                    '    border-color:#000000; border-style:solid; border-radius: 20px; border-collapse: collapse; '.
                    '    -moz-border-radius: 20px; padding: 15px">';
                echo '<p>The session partition is full. It is not possible to login at this time.</p>';
                echo '<p>Please notify server administrator.</p>';
                echo '</td></tr></table>';
                echo '</body></html>';
                die;
            }

And it will continue installing normaly.

Gemiddeld van beoordelings: -
In antwoord op Cleber Krauskopf

Re: The session partition is full

deur Craig Rugh -

I have upgraded to 2.0 from 1.9.10 and getting the message:

The session partition is full. It is not possible to login at this time.
Please notify server administrator.

I have enough space on my server.

Where can I edit this line in version 2.0?

 

Thanks in advance.

Gemiddeld van beoordelings: -
In antwoord op Craig Rugh

Re: The session partition is full

deur Colin Fraser -
Prentjie van Documentation writers Prentjie van Testers

I am pretty certain that the whole concept of sessions has been changed in Moodle 2.0. I think you might be better off looking at either the General forum or the Developer's forum than here.

Gemiddeld van beoordelings: -
In antwoord op Colin Fraser

Re: The session partition is full

deur Brian Yare -

I had the same problem this morning while upgrading from 1.9.6 to 2.0.2.

I located the code that needs to be disabled in \lib\sessionlib.php

After disabling lines 345 to 347 the install proceded normally.

The lines to comment out are:

if (!($freespace > 2048) and $freespace !== false) {
print_error('sessiondiskfull', 'error');
}

I hope that this helps someone.

Gemiddeld van beoordelings:Useful (1)
In antwoord op Brian Yare

Re: The session partition is full

deur Brian Yare -

Well, it certainly helped me when I hit this same problem after updating to the latest weekly version. I had kept no personal record of this customisation. Serves me right!

Gemiddeld van beoordelings: -
In antwoord op Alfred Barton

Re: The session partition is full

deur Pablo Reyes -
In antwoord op Pablo Reyes

Re: The session partition is full

deur Dave Feasey -

link is dead.

Gemiddeld van beoordelings: -
In antwoord op Dave Feasey

Re: The session partition is full

deur Gordon Toudt -

We are having the same problem  Suddenly in 2.6.4 today.  The site was working fine then suddenly it stopped.

Gemiddeld van beoordelings: -
In antwoord op Dave Feasey

Re: The session partition is full

deur Luis de Vasconcelos -

Not surprising considering that the message was posted three years ago. Try:

https://web.archive.org/web/*/http://www.reubuntu.com/linux/error-moodle-the-session-partition-is-full/

 

Gemiddeld van beoordelings: -
In antwoord op Luis de Vasconcelos

Re: The session partition is full

deur Dave Feasey -

What that says is to change line 345 in /lib/sessionlib.php

from

345: if (!($freespace > 2048) and $freespace !== false) {

to

if (!($freespace > 2048) and $freespace !== false and $freespace !== null)

which seems cleaner than just commenting out the whole error message suggested above. Thanks!

Gemiddeld van beoordelings: -