Warning: session_start() [function.session-start]: open(/tmp/sess_) failed: No space left on device (28)

Kinds of error: Warning: session_start() [function.session-start]: open(/tmp/sess_48a3ebbf3ad82e85cf97ec720dbbde18, O_RDWR) failed: No space left on device (28) in /home/user/public_html/admin/add-file.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/user/public_html/admin/add-file.php:5) in /home/user/public_html/admin/add-file.php on line 5

Warning: Unknown: open(/tmp/sess_48a3ebbf3ad82e85cf97ec720dbbde18, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Error in specific kind of Scripts and software like wordpress while updating or uploading any image: 

The update process is starting. This process may take a while on some hosts, so please be patient.
Enabling Maintenance mode…
Updating Theme Twenty Eleven (1/2)
Downloading update from http://wordpress.org/extend/themes/download/twentyeleven.1.5.zip…

Warning: touch() [function.touch]: Unable to create file /tmp/twentyeleven.tmp because No space left on device in /home/user/public_html/wp-admin/includes/file.php on line 179

Warning: unlink(/tmp/twentyeleven.tmp) [function.unlink]: No such file or directory in /home/user/public_html/wp-admin/includes/file.php on line 493
An error occurred while updating Twenty Eleven: Download failed. Could not open handle for fopen() to /tmp/twentyeleven.tmp.
Updating Theme Twenty Ten (2/2)
Downloading update from http://wordpress.org/extend/themes/download/twentyten.1.5.zip…

Warning: touch() [function.touch]: Unable to create file /tmp/twentyten.tmp because No space left on device in /home/user/public_html/wp-admin/includes/file.php on line 179

Warning: unlink(/tmp/twentyten.tmp) [function.unlink]: No such file or directory in /home/user/public_html/wp-admin/includes/file.php on line 493
An error occurred while updating Twenty Ten: Download failed. Could not open handle for fopen() to /tmp/twentyten.tmp.

 

Cause of error: The only cause of above given errors is the no more space left in the /tmp folder of the server’s file system, whenever any activity like cpanel, admin login is made and files uploaded even to any website hosted in that specific server, there is a log created in your /tmp folder and also the temporary files created under any account of the server saved in that /tmp folder. So as a result, after a period of time, the space of /tmp folder become over and you got the above given errors.

Solution: You can delete all the unnecessary files stored in /tmp folder to resolve this issue.

How to check whether your /tmp folder is over space?: You may run the below given command to check the file system space usage after login using root credentials via console or a software like putty.

# df -hi
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda5 29M 3.7M 26M 13% /
tmpfs 454K 1 454K 1% /dev/shm
/dev/sda1 26K 46 26K 1% /boot
/dev/sda3 128K 128K 0 100% /tmp

How to delete files from /tmp folder of the dedicated linux server?:  You may run below given command to delete all the sessions log saved in /tmp folder of your server.

# find . -type f -name “sess*” -delete

Once you delete these sessions log, you will find that there is no more above errors. Hope it will help you.

Add a Comment

*