[pmwiki-users] odd error report

Patrick R. Michaud pmichaud at pobox.com
Sun Oct 1 10:24:50 CDT 2006


On Sat, Sep 30, 2006 at 10:08:33PM -0400, Henrik Bechmann wrote:
> Thanks Patrick, good to know.
> 
> I've checked the tmp dir, and it has rights of 776.

FWIW, it's not just the permissions of the /tmp directory,
it's how the filesystem is mounted.  For example, I can have
777 permissions on /tmp, but if I boot the computer and tell
the OS to mount the drive containing /tmp as "read-only",
then the permissions on /tmp don't make any difference,
because the OS won't write to the drive anyway.

> The problem has since disappeared, so I'm putting down to a flaky 
> webhost or some kind of server maintenance going on.

That appears to be what happened in this case, because
the error message said "Read-only file system".  If it
had been a permissions problem, then the message would've
said something like "Permission denied".

Pm

> Patrick R. Michaud wrote:
> >On Sat, Sep 30, 2006 at 11:30:20AM -0400, Henrik Bechmann wrote:
> >  
> >>One of my authors reported the following (version 2.1.26):
> >>
> >>-----------------------------------------------------------
> >>
> >>Some problem has got into the web home page: top of every page shows this:
> >>
> >>Warning: session_write_close(): 
> >>open(/tmp/sess_ad06b97fe8aa2cbda863267ec31e2245, O_RDWR) failed: 
> >>Read-only file system (30) in /var/www/html/common/wiki/pmwiki.php on 
> >>line 1613
> >>[...]
> >>Any ideas?
> >>    
> >
> >Ooooh, that's bad.  According to the error message, it looks as
> >though your /tmp filesystem has somehow been mounted "read only",
> >such that PHP is unable to write session files to the directory.
> >But if /tmp truly is mounted read-only, then I suspect a lot more
> >is breaking on the system than just PmWiki.
> >
> >One workaround might be to create a directory somewhere else for
> >PHP to store its session files (give the directory 777 permissions),
> >and then tell PHP to use that directory for storing session data:
> >
> >    session_save_path('/path/to/session/dir');
> >
> >Pm
> >
> >  
> 
> -- 
> 
> Henrik Bechmann
> www.osscommons.ca
> www.bechmannsoftware.com
> Webmaster, www.dufferinpark.ca
> 
> 




More information about the pmwiki-users mailing list