php lock errors after 3.3.0 update

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

php lock errors after 3.3.0 update

Post 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
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5471
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: php lock errors after 3.3.0 update

Post by Marc »

Make sure your cache folder, located in the root of your forum, is writable.
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post by webants »

it is 777

someone in another topic says it is a DB problem of my hosting comapny strato.nl hmm
User avatar
AbaddonOrmuz
Recognised Extension Developer
Posts: 1003
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: php lock errors after 3.3.0 update

Post 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.
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :lock: Auto-lock Topics
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post 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?
User avatar
3Di
Former Team Member
Posts: 16039
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: php lock errors after 3.3.0 update

Post by 3Di »

It should not auto regenerate both, just the production one.
To request support for our extensions you can also contact me here: phpBB Studio

Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
🚀 Looking for a specific feature or alternative option? We will rock you! 🚀
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post 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:
Attachments
cache.png
Last edited by webants on Thu Jan 09, 2020 10:01 am, edited 1 time in total.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68181
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: php lock errors after 3.3.0 update

Post by Lumpy Burgertushie »

is the folder named install still on the server? if so, rename it or remove it and test.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post 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.
User avatar
Chris1278
Jr. Extension Validator
Posts: 69
Joined: Thu Mar 14, 2019 6:07 pm

Re: php lock errors after 3.3.0 update

Post 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.
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post 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.
User avatar
Chris1278
Jr. Extension Validator
Posts: 69
Joined: Thu Mar 14, 2019 6:07 pm

Re: php lock errors after 3.3.0 update

Post 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.
webants
Registered User
Posts: 92
Joined: Sat Jan 07, 2006 8:42 pm

Re: php lock errors after 3.3.0 update

Post by webants »

i know, seems a database problem with my hoster and the flock file. strange 3.2.9 works fine
omeroon
Registered User
Posts: 26
Joined: Thu Apr 26, 2018 1:39 pm

Re: php lock errors after 3.3.0 update

Post 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.
User avatar
IMC_Ger
Registered User
Posts: 3
Joined: Mon Jan 20, 2020 8:59 pm
Location: Lüneburg, Germany
Contact:

Re: php lock errors after 3.3.0 update

Post 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))
Post Reply

Return to “[3.3.x] Support Forum”