The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not writable

Discussion in 'General Discussion' started by dannymichel, Feb 27, 2015.

  1. dannymichel

    dannymichel Member

    Joined:
    Aug 13, 2013
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I got an email this morning saying 'fatal,Can not upgrade because /tmp is not writable'.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please post the output from:

    Code:
    mount|grep tmp
    stat /tmp
    Also, do you receive any error messages when creating a file in the /tmp directory? EX:

    Code:
    touch /tmp/cptest123
    Thank you.
     
  3. dannymichel

    dannymichel Member

    Joined:
    Aug 13, 2013
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you.
    Output.

    Code:
    danny@s [~]# mount|grep tmp
    shm on /dev/shm type tmpfs (rw,size=256M)
    /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
    /tmp on /var/tmp type none (rw,noexec,nosuid,bind)
    tmpfs on /dev/shm type tmpfs (rw)
    danny@s [~]# stat /tmp
      File: `/tmp'
      Size: 12288           Blocks: 24         IO Block: 4096   directory
    Device: 700h/1792d      Inode: 2           Links: 17
    Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2015-02-26 04:00:55.000000000 -0500
    Modify: 2015-02-26 14:27:36.000000000 -0500
    Change: 2015-02-26 14:27:36.000000000 -0500
    danny@s [~]# touch /tmp/cptest123
    touch: cannot touch `/tmp/cptest123': No space left on device
    danny@s [~]# 
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The output indicates your out of disk space or inodes on the tmp directory. You can verify this via:

    Code:
    df -h
    df -i
    
    These threads should help:

    Tmpwatch
    Tmpwatch Cron Job

    Thank you.
     
  5. dannymichel

    dannymichel Member

    Joined:
    Aug 13, 2013
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    this is so weird. i cant imagine why.
    Code:
    touch: cannot touch `/tmp/cptest123': No space left on device
    danny@s [~]# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/xvda        24G   16G  7.2G  69% /
    shm             496M  4.0K  496M   1% /dev/shm
    /usr/tmpDSK     870M  201M  624M  25% /tmp
    tmpfs           496M  4.0K  496M   1% /dev/shm
    danny@s [~]# df -i
    Filesystem      Inodes  IUsed   IFree IUse% Mounted on
    /dev/xvda      1556480 397117 1159363   26% /
    shm             126832      2  126830    1% /dev/shm
    /usr/tmpDSK      57600  57600       0  100% /tmp
    tmpfs           126832      2  126830    1% /dev/shm
    danny@s [~]#
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The following commands from https://github.com/tripflex/inodes should help you track down where the usage is coming from:

    Code:
    cd /tmp
    echo "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"
    Thank you.
     
  7. dannymichel

    dannymichel Member

    Joined:
    Aug 13, 2013
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  8. alexiboucher

    alexiboucher Registered

    Joined:
    Feb 28, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks , i had almost the same issue, working now :)
     
Loading...

Share This Page