From: Alan H. <ala...@gm...> - 2005-06-18 23:40:53
|
I'm running PHPwiki RC3 on Fedora Core 3 with php-4.3.11-2.5 and using flatfiles for my DB. It had been running for a couple of months without any problems, but sometime recently it started failing with the following error: Fatal Error: lib/DbaDatabase.php:54: Error: dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed to open stream: Permission denied file: /home/alanh/public_html/wiki/pages/pagedb.flatfile mode: w handler: flatfile lib/DbaDatabase.php:54: Error: dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed to open stream: Permission denied file: /home/alanh/public_html/wiki/pages/pagedb.flatfile mode: w handler: flatfile I know that I didn't change anything on the machine (I'm the only user). It just spontaneously started happening. drwxrwxr-x 12 alanh alanh 4096 May 10 15:54 wiki/ $ ls -al|grep pages;ls -l pages drwxrwxrwx 2 alanh apache 4096 May 9 11:12 pages/ total 12312 -rwxrwxrwx 1 apache apache 3787408 Jun 13 09:54 pagedb.flatfile* -rwxrwxrwx 1 apache apache 8787161 Jun 13 09:54 session.flatfile* I don't know why this is going on. =20 --=20 Alan Hoyle - al...@un... - http://www.alanhoyle.com/ "I don't want the world, I just want your half." -TMBG Get Horizontal, Play Ultimate. |
From: Reini U. <ru...@x-...> - 2005-06-19 10:35:05
|
Alan Hoyle schrieb: > I'm running PHPwiki RC3 on Fedora Core 3 with php-4.3.11-2.5 and using > flatfiles for my DB. First of all: You're not using flatfiles, you are using DATABASE_TYPE=dba with DATABASE_DBA_HANDLER=flatfile, which is totally untested and not recommended at all. DATABASE_TYPE=file would create a single file per page in page_data/ and ver_data/ > It had been running for a couple of months without any problems, but > sometime recently it started failing with the following error: > > Fatal Error: > lib/DbaDatabase.php:54: Error: > dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed > to open stream: Permission denied > file: /home/alanh/public_html/wiki/pages/pagedb.flatfile > mode: w > handler: flatfile So your db got locked somehow, and you have to unlock it. I assume your system uses OS-level locks. Please read the dba docs how to unlock these two files. > lib/DbaDatabase.php:54: Error: > dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed > to open stream: Permission denied > file: /home/alanh/public_html/wiki/pages/pagedb.flatfile > mode: w > handler: flatfile > > I know that I didn't change anything on the machine (I'm the only > user). It just spontaneously started happening. > > drwxrwxr-x 12 alanh alanh 4096 May 10 15:54 wiki/ > $ ls -al|grep pages;ls -l pages > drwxrwxrwx 2 alanh apache 4096 May 9 11:12 pages/ > total 12312 > -rwxrwxrwx 1 apache apache 3787408 Jun 13 09:54 pagedb.flatfile* > -rwxrwxrwx 1 apache apache 8787161 Jun 13 09:54 session.flatfile* > > I don't know why this is going on. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://phpwiki.org/ |
From: Reini U. <ru...@x-...> - 2005-06-19 16:09:34
|
Alan Hoyle schrieb: > On 6/19/05, Reini Urban <ru...@x-...> wrote: >>Alan Hoyle schrieb: >>>I'm running PHPwiki RC3 on Fedora Core 3 with php-4.3.11-2.5 and using >>>flatfiles for my DB. >> >>First of all: >>You're not using flatfiles, you are using DATABASE_TYPE=dba with >>DATABASE_DBA_HANDLER=flatfile, which is totally untested and not >>recommended at all. >> >>DATABASE_TYPE=file would create a single file per page in page_data/ and >>ver_data/ >> >>So your db got locked somehow, and you have to unlock it. >>I assume your system uses OS-level locks. >> >>Please read the dba docs how to unlock these two files. > > Gah! Whoops! > > "man dba", "man -k dba", "info dba", and "info --apropos dba" give me > nothing apropos. It's not a soft lock, as rebooting my machine didn't > help. I don't see anything in /tmp > > I don't have a command "dba" but I do have several db_* commands > (db_archive, db_checkpoint, etc....) But can't seem to find any docs > on them in either the man pages or the info pages either. > > Googling doesn't give me anything either: I mostly get oracle related > documents. > "dba" appears to be an overloaded acronym..... > > help? php_dba flatfile => http://www.php.net/manual/en/ref.dba.php List of DBA handlers -------------------- "This is available since PHP 4.3.0 for compatibility with the deprecated dbm extension only and should be avoided. However you may use this where files were created in this format. That happens when configure could not find any external library." -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://phpwiki.org/ |