Page 1 of 1

Login problem - PHP Errors

Posted: 20 Aug 2010, 15:32
by udo
After a Bubba2 running without problems for several months, web browsing started to fail today. I tried to login via the web interface. It turned out to not be possible. The web interface displayed two error messages, see below and pushing the login button does not result in anything. SSH login is still possible. I restarted (power button) and web browsing is now working again but the two error messages remains and it is still not possible to login via the web interface (SSH is still fine).

Any suggestions how to solve this?

Code: Select all

A PHP Error was encountered

Severity: Warning

Message: Unknown: write failed: No space left on device (28)

Filename: Unknown

Line Number: 0

Code: Select all

A PHP Error was encountered
Severity: Warning
Message: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (0;660;/var/lib/php5)
Filename: Unknown
Line Number: 0

Re: Login problem - PHP Errors

Posted: 20 Aug 2010, 18:57
by RandomUsername
Message: Unknown: write failed: No space left on device (28)
Could be the problem.

SSH into the box and run this command:

Code: Select all

df -h
it should tell you if you're out of space on one of your volumes.

Re: Login problem - PHP Errors

Posted: 20 Aug 2010, 19:00
by udo
Thanks. Just found it out ... the root partioning was 100% full. For some reason, I had a 6.5G root mail folder.

Re: Login problem - PHP Errors

Posted: 20 Aug 2010, 19:02
by RandomUsername
That's weird. Did you see what was in it?

Re: Login problem - PHP Errors

Posted: 20 Aug 2010, 19:17
by udo
No, I did not check the mails.

Re: Login problem - PHP Errors

Posted: 31 Aug 2010, 13:30
by yooakim
This weekend I have the same issue as reported above.

My root volume is full.

My problem is that i am not a seasoned Debian admin so I am not sure who to find and delete the files that are swamping my root drive.

This is what my df -h output looks like:

Code: Select all

xyz@BUBBA:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.2G  9.2G     0 100% /
tmpfs                 125M     0  125M   0% /lib/init/rw
udev                   10M   24K   10M   1% /dev
tmpfs                 125M  4.0K  125M   1% /dev/shm
/dev/mapper/bubba-storage
                      907G  344G  517G  40% /home
So the root is full. What is the best way to find out which files I need and can delete? I am aware of the du command but wouldn't mind some tips!

Re: Login problem - PHP Errors

Posted: 31 Aug 2010, 14:38
by RandomUsername
If you're problem is similar to the OP, then the files will be in your mail folder which should be ~/Mail.

So, log on via SSH and do this:
cd ~/Mail
du -hs
That should give you the size of your Mail folder.

Also, if you have any other users on your box have a look at theirs too
cd /home/[username]/Mail
(you will need to be root to do that probably - use the command su).

Re: Login problem - PHP Errors

Posted: 31 Aug 2010, 15:55
by jallee
It is /dev/sda1 who is full.
Do:

Code: Select all

du -h /var
Then you should see if some ting is wrong there.
My /var is 118M

Re: Login problem - PHP Errors

Posted: 31 Aug 2010, 15:59
by RandomUsername
D'oh, wasn't paying attention. Ignore my post. Might be worth looking in /tmp as well though.

Re: Login problem - PHP Errors

Posted: 31 Aug 2010, 16:22
by yooakim
Thanks!

By using

Code: Select all

 sudo du -h /var | grep "G"
(yes, I'm sure you can do this 'better' but I'm not a Linux expert :-)

I found that it was the maildrop directory that took all my discspace! I have no mailbooxes on the server so I am wondering what this is about?

Code: Select all

xyz@BUBBA:~$ sudo du -h /var | grep "G"
8.3G    /var/spool/postfix/maildrop
8.3G    /var/spool/postfix
8.3G    /var/spool
8.4G    /var

Anyway, I'm now abble to free up som space to make everything work again!

Thanks!