LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Warning: Unknown: open(/tmp/sess_xxxxxxxxxx, O_RDWR) failed: Permission ... (https://www.linuxquestions.org/questions/linux-server-73/warning-unknown-open-tmp-sess_xxxxxxxxxx-o_rdwr-failed-permission-894678/)

deadeyes 07-30-2011 03:22 PM

Warning: Unknown: open(/tmp/sess_xxxxxxxxxx, O_RDWR) failed: Permission ...
 
Hi all,

Recently I am getting this message from time to time when loading a php page.

Code:

Warning: Unknown: open(/tmp/sess_xxxxxxxxxxxx, O_RDWR) failed: Permission denied (13) in Unknown on line 0
I don't know at what stage of changing the php script this issue was introduced.
And to be honest, I would think it is not related to the php script.

Anyone got this error or can point me out what is going wrong?

I didn't do any OS update.

I have used google but could not come up with a solution.

Thanks in advance

gilead 07-30-2011 04:00 PM

Do you have space in your /tmp directory? Also, what permissions is your /tmp area mounted with?

deadeyes 07-30-2011 08:16 PM

Quote:

Originally Posted by gilead (Post 4429506)
Do you have space in your /tmp directory? Also, what permissions is your /tmp area mounted with?

I do have space:
Code:

df -h /tmp
Filesystem    Size    Used  Avail Capacity  Mounted on
/dev/ad0s1e    496M    22K    456M    0%    /tmp

Permissions:
Code:

ls -ldh /tmp/
drwxrwxrwt  9 root  wheel  1.0K Jul 31 03:04 /tmp/

Note that I am not always getting this message.
I am using jquery to refresh a div tag.
So each 10 seconds the contents get reloaded.
I get this message frequently.

deadeyes 07-31-2011 07:08 AM

I just noticed I am experiencing this issue with phpMyAdmin as well.

deadeyes 08-02-2011 03:01 AM

I have rebooted the server and the issue seems to have gone away. :s


All times are GMT -5. The time now is 08:47 PM.