Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Fatal error : Cannot write to cache directory /tmp  (Read 7098 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
Fatal error : Cannot write to cache directory /tmp
« on: March 24, 2018, 07:06:41 pm »
While accessing WebMail client getting an error as below -

    A fatal error has occurred
    Cannot write to cache directory /home/username/tmp
    Details have been logged for the administrator

    Solution -

    1. Make sure to check the disk usage of your account, it should not be full.
    2. Check the inode usage of your account, it should not be exceeded. You can fire below command to check the detailed inode usage of your account -
Code: [Select]
    echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"

   You can check the inode usage from cPanel >> Inode usage.

    You can follow below steps to reduce the inode usage -
    ==========================================================
    1. Remove all files/folders you don’t need.
    2. Check the number of cache files you have, applications such as Joomla can generate a lot of cache files.
    3. Make sure you check the mailbox regularly and delete all mails you don't need.
    4. Check your cPanel's main email account regularly, the mails for it are kept in:
Code: [Select]
    /home/username/mail/cur
    /home/username/mail/new
    where username is your cPanel username. You can manually delete the messages in these folders using cPanel's File Manager.
    5. You should also check your email accounts regularly and delete any spam messages from them.
    6. If you have email accounts you don't need or use, it would be best to remove them.
    ==========================================================