Page 1 of 2

php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 5:53 pm
by webants
I get the below errors and cant access admin anymore.

The errors show on the bottom of the page on the index.
In the Admin area it only shows the flock erros

https://klassiekerplein.nl/
php 7.3
Fatal error: Uncaught phpbb\exception\http_exception: Failure while aqcuiring locks. in /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/lock/flock.php:106 Stack trace: #0 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(531): phpbb\lock\flock->acquire() #1 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(76): phpbb\cache\driver\file->_write('data_global') #2 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/base.php(83): phpbb\cache\driver\file->save() #3 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(59): phpbb\cache\driver\base->unload() #4 [internal function]: phpbb\cache\driver\file->unload() #5 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/service.php(96): call_user_func_array(Array, Array) #6 /mnt/web223/b2/91/54354691/htdocs/classiccars/includes/functions.php(4527): phpbb\cache\service->__call('unload', Array) #7 /mnt/web223/b2/91/54354691/htdocs/classiccars/includes/functions.php(4496): garbage_collection() in /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/lock/flock.php on line 106

Code: Select all

Fatal error: Uncaught phpbb\exception\http_exception: Failure while aqcuiring locks. in /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/lock/flock.php:106 Stack trace: #0 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(531): phpbb\lock\flock->acquire() #1 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(76): phpbb\cache\driver\file->_write('data_global') #2 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/base.php(83): phpbb\cache\driver\file->save() #3 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/driver/file.php(59): phpbb\cache\driver\base->unload() #4 [internal function]: phpbb\cache\driver\file->unload() #5 /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/cache/service.php(96): call_user_func_array(Array, Array) #6 /mnt/web223/b2/91/54354691/htdocs/classiccars/includes/functions.php(4527): phpbb\cache\service->__call('unload', Array) #7 /mnt/web223/b2/91/54354691/htdocs/classiccars/includes/functions.php(4496): garbage_collection() in /mnt/web223/b2/91/54354691/htdocs/classiccars/phpbb/lock/flock.php on line 106

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 7:52 pm
by Marc
Make sure your cache folder, located in the root of your forum, is writable.

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 8:21 pm
by webants
it is 777

someone in another topic says it is a DB problem of my hosting comapny strato.nl hmm

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 9:13 pm
by AbaddonOrmuz
The cache/production/ directory must also be writable.

You could try to remove all the content of that directory (cache/production/), they will be generated again.

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 9:19 pm
by webants
it does autogenerate both (installer and production) folder if removed, i dont think that is the problem .. seems to be something with miriaddb?

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 9:22 pm
by 3Di
It should not auto regenerate both, just the production one.

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 9:34 pm
by webants
why does it create both of them on my server? if i remove installer and production and i refresh both are back in there :shock:

Re: php lock errors after 3.3.0 update

Posted: Wed Jan 08, 2020 10:40 pm
by Lumpy Burgertushie
is the folder named install still on the server? if so, rename it or remove it and test.

robert

Re: php lock errors after 3.3.0 update

Posted: Thu Jan 09, 2020 10:00 am
by webants
no i removed it, thus the install folder is gone,

I do have some slight experience with phpbb installs. :)

The 3.3.0 update goes perfectly but after deleting the install folder i get above errors.

There must be someone who understands the errors, if it is a database problem, or?

my host uses this database : MySQL(i) 5.6.42-log
php version : 7.2.25

i reverted to 3.2.9 for now until there is a solution.

Re: php lock errors after 3.3.0 update

Posted: Thu Jan 09, 2020 5:58 pm
by Chris1278
Hi there. The folder must contain .htaccess and index.html. Everything else can be deleted. Then clear the browser cache and try again.

The Production folder will then be created again anyway.

Re: php lock errors after 3.3.0 update

Posted: Thu Jan 09, 2020 6:07 pm
by webants
Chris1278 wrote:
Thu Jan 09, 2020 5:58 pm
Hi there. The folder must contain .htaccess and index.html. Everything else can be deleted. Then clear the browser cache and try again.

The Production folder will then be created again anyway.
Done that 20 plus times, it then shows the site for a second with errors on the bottom and after that the errors above on a white page.

Re: php lock errors after 3.3.0 update

Posted: Thu Jan 09, 2020 7:09 pm
by Chris1278
Then in my opinion that doesn't seem to be due to the cache folder itself. If you delete everything except the files mentioned and the production directory is created again each time, at least the access rights are correct.

Re: php lock errors after 3.3.0 update

Posted: Thu Jan 09, 2020 7:19 pm
by webants
i know, seems a database problem with my hoster and the flock file. strange 3.2.9 works fine

Re: php lock errors after 3.3.0 update

Posted: Mon Jan 20, 2020 7:08 pm
by omeroon
Does Strato support other caching like MemCache or Redis?

If so change the cache driver from "file" to "[insert cache driver here]" in the config.php:

Code: Select all

$acm_type = 'phpbb\\cache\\driver\\redis';
Ofcourse this is not resolving the issue, but it could keep you going while the issue is under investigation.

Re: php lock errors after 3.3.0 update

Posted: Mon Jan 20, 2020 9:18 pm
by IMC_Ger
Hello,

here is my fix for the STRATO problem with the function flock().

Find in the file phpbb/lock/flock.php line 104.

Code: Select all

if (!@flock($this->lock_fp, LOCK_EX))
And replace:

Code: Select all

if (!@flock($this->lock_fp, $mode == 'wb' ? LOCK_EX : LOCK_SH))