Jump to content

Unable to obtain lock for session


Luigi
 Share

Recommended Posts

Hello,

I have a lot of problem with this exception:

Exception: Unable to obtain lock for session (retry in 30s) (in wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module line 96)

#0 [internal function]: SessionHandlerDB->read('69f8229e5ff1e62...')
#1 wire/core/Session.php (319): session_start(Array)
#2 wire/core/Wire.php (414): Session->___init()
#3 wire/core/WireHooks.php (951): Wire->_callMethod('___init', Array)
#4 wire/core/Wire.php (485): WireHooks->runHooks(Object(Session), 'init', Array)
#5 wire/core/Session.php (201): Wire->__call('init', Array)
#6 wire/core/ProcessWire.php (577): Session->__construct(Object(ProcessWire))
#7 wire/core/ProcessWire.php (313): ProcessWire->load(Object(Config))
#8 index.php (52): ProcessWire->__construct(Object(Config))
#9 {main}
 

I installed local versions of my site on my computer and inside some docker container. I tried it with mariadb and mysql.
The exception comes almost always at the first start of the website after I started my computer but it also appears a lot through the day.

the pages are really slow when the exception does not appear.

Another page of mine, a shopware instance, runs quite faster in comparison to the processwire page and I don't have the problem with this exception on my regular server.

Has anyone an idea what the problem could be?

 

thanks a lot.

Link to comment
Share on other sites

Hi @Luigi,

This is something that happens to some of our websites, some more info here: 

I've never been able to solve the issue, although as it is infrequent and has always passed before I notice the email error notifications, I've never really spent a lot of time trying to replicate and debug it.

In the linked thread it was said that disabling Tracy Debugger worked - I don't have this on the sites where this error tends to happen, but if you do perhaps that will solve it.

Cheers,

Chris

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...