WordPress not able login due to Inode is full

Strange problem when Inode has been fully utilise cause wordpress cannot login.

[ec2-user@xxxx log]$ df -ih
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/xvda1       1.3M  1.3M     0  100% /
devtmpfs         248K   428  248K    1% /dev
tmpfs            251K     1  251K    1% /dev/shm

Solution

I’ll start from the root directory to find out which folder give me the problem.

for i in /*; do echo $i; sudo find $i |wc -l; done

 

In my case, my var folder has taken longer time. So, further search again on /var/ folder

for i in /var/*; do echo $i; sudo find $i |wc -l; done

 

Now, it return spool folder, and search agains on /var/spool/ folder

for i in /var/spool/*; do echo $i; sudo find $i |wc -l; done

 

in return the result

/var/spool/clientmqueue, 1214186

 

Since the problem was cause my undeliverable email, so i need to stop the service.

sudo service sendmail status
sudo service sendmail stop

 

And delete all the files. It will take quite long time to delete it.

sudo rm -rf clientmqueue/*

 

Check Inode again

[ec2-user@xxx spool]$ df -ih
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/xvda1       1.3M  617K  664K   49% /
devtmpfs         248K   428  248K    1% /dev
tmpfs            251K     1  251K    1% /dev/shm

 

WordPress not able login due to Inode is full

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.