Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default /tmp not full but PHP can not create sessions

    Earlier today all my sites started returning 500 errors intermittently. Over the last 20 hours a remote testing service that checks every 5 minutes has returned a 500 error at a rate of 15%.

    In the error logs it says:

    [26-Dec-2009 01:45:06] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_99ba9842d34c<masked>, O_RDWR) failed: No space left on device (28) in /home/<masked>/public_html/manager/includes/config.inc.php on line 140

    The hosting company says that /tmp is no where near full and that it is a problem with the script. So I created a test script as simple as

    <?php
    session_start();
    ?>

    This also generates the same errors, again intermittently.

    The hosting company is insisting that there is nothing wrong with the server as all there lights are green. Does anyone know what could be the matter?

  2. #2
    Member
    Join Date
    Jan 2008
    Posts
    141

    Default

    Please make sure that the permission to the /tmp folder is appropriately set by contacting your server admin.

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    The error "No space left on device" may occur because of semaphores as well. Kill the active semaphore proecss and try again.

    If there isn't a permission problem OR the semaphore problem as specified above, have someone look into your issue.

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default

    Thanks for your reply.

    This is an intermittent problem, i.e. most of the time it works. So unless the permissions are being changed often I can't see it being a permission problem.

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default

    madaboutlinux: Didn't see your reply there. Semaphores does sound like a possible suspect. I will have to convince the host there is a problem first before they will start killing processes.

Similar Threads & Tags
Similar threads

  1. Tmp Sessions created by a #
    By codegirl42 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-29-2006, 11:29 PM
  2. php sessions errors after PHP 4.4.1 and apache 1.3.4 upgrade
    By SupermanInNY in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 11-11-2005, 05:43 AM
  3. Very Strange Problem: No PHP Sessions and /tmp is Empty!
    By mss6 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-09-2005, 12:26 PM
  4. /tmp full of pictures which were properly uploaded by a php script
    By Tagor in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-08-2004, 07:35 AM
  5. problem with php sessions
    By cyon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-07-2003, 12:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube