Login problem - PHP Errors

Got problems with your B2 or B3? Share and get helped!
Post Reply
udo
Posts: 17
Joined: 25 Sep 2008, 18:10

Login problem - PHP Errors

Post by udo » 20 Aug 2010, 15:32

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

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Login problem - PHP Errors

Post by RandomUsername » 20 Aug 2010, 18:57

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.

udo
Posts: 17
Joined: 25 Sep 2008, 18:10

Re: Login problem - PHP Errors

Post by udo » 20 Aug 2010, 19:00

Thanks. Just found it out ... the root partioning was 100% full. For some reason, I had a 6.5G root mail folder.

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Login problem - PHP Errors

Post by RandomUsername » 20 Aug 2010, 19:02

That's weird. Did you see what was in it?

udo
Posts: 17
Joined: 25 Sep 2008, 18:10

Re: Login problem - PHP Errors

Post by udo » 20 Aug 2010, 19:17

No, I did not check the mails.

yooakim
Posts: 43
Joined: 08 May 2007, 08:58

Re: Login problem - PHP Errors

Post by yooakim » 31 Aug 2010, 13:30

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!

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Login problem - PHP Errors

Post by RandomUsername » 31 Aug 2010, 14:38

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).

jallee
Posts: 46
Joined: 12 Jun 2009, 13:15

Re: Login problem - PHP Errors

Post by jallee » 31 Aug 2010, 15:55

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

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Login problem - PHP Errors

Post by RandomUsername » 31 Aug 2010, 15:59

D'oh, wasn't paying attention. Ignore my post. Might be worth looking in /tmp as well though.

yooakim
Posts: 43
Joined: 08 May 2007, 08:58

Re: Login problem - PHP Errors

Post by yooakim » 31 Aug 2010, 16:22

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!

Post Reply