Find the answer to your Linux question:
Results 1 to 3 of 3
Hello: When I login to root (via su -), I'm getting the following error: Code: Null message body; hope that's ok /tmp/Rsoph96A: No space left on device I am also ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    24

    Problem with /tmp - "No space" Error


    Hello:

    When I login to root (via su -), I'm getting the following error:

    Code:
    Null message body; hope that's ok
    /tmp/Rsoph96A: No space left on device
    I am also getting other errors relating to the /tmp directory:
    1. Uploading files via html/php fail because of this problem.
    2. MySQL errors (I think 2 indicating a problem with the disk being full.

    The think is that the partitions are not full. Here is the output from # df -h:

    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/simfs             40G   11G   30G  26% /
    tmpfs                 3.9G  4.0M  3.9G   1% /tmp
    As you can see, there is A LOT of available room.

    I thought I had this fixed last week. I deleted everything in the /tmp directory and created two directories:

    /tmp/sessions (chmod 777)
    /tmp/uploads (chmod 777)

    Then I edited the php.ini file and made sure to set these directories for save.session_path and upload_tmp_dir

    It seemed to work but after a few days I'm in the same mess.

    A little while ago my host for my VPS decided to run updates on all the VPS' and lock down the /tmp directories. However, in this process they messed up a LOT of programs that I had running. I spend 2 or three days completely offline, then I was finally able to get PHP re-compiled again, but was unable to get eAccelerator working correctly (I think it isn't compatible with PHP 5.2.9).

    Anyway... I have no clue what they did to the /tmp directory, and I have no clue how to debug or fix this problem.

    Can anyone help me with this please?

  2. #2
    Just Joined!
    Join Date
    Jun 2009
    Posts
    29
    The tmpfs uses RAM as disk space and your /tmp directory is located right in it. After some RAM would become full and you would have no space left in the /tmp directory.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,558
    When you use a ramdisk for /tmp it will "logically" allocate a lot of space (as you see), but how much it really gets depends upon how much RAM your system has and how much your are using for the OS and user processes. Personally, I always put /tmp on a hard drive with enough space for any forseeable uses (usually on / or /usr). Just to satisfy my curiosity, how much RAM does your system have, excluding swap?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •