php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76465 Getting session_start(): Unable to clear session lock record
Submitted: 2018-06-13 07:37 UTC Modified: 2021-06-09 11:56 UTC
Votes:29
Avg. Score:4.2 ± 0.9
Reproduced:27 of 27 (100.0%)
Same Version:9 (33.3%)
Same OS:6 (22.2%)
From: kmurugan1987 at gmail dot com Assigned: cmb (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 7.0.30 OS:
Private report: No CVE-ID: None
 [2018-06-13 07:37 UTC] kmurugan1987 at gmail dot com
Description:
------------
We configured session store as memcached, it was working fine in PHP 5.6.X,
after upgraded to PHP 7.0.30, when we start session its throwing error as "session_start(): Unable to clear session lock record", below are the configuration we are using,

PHP Version 7.0.30
memcached   3.0.3
libmemcached version  1.0.18
ZendFramework 2.4.13

below are the memcached settings configured in ini,

memcached.sess_lock_expire => 0 => 0
memcached.sess_lock_max_wait => not set => not set
memcached.sess_lock_retries => 5 => 5
memcached.sess_lock_wait => not set => not set
memcached.sess_lock_wait_max => 2000 => 2000
memcached.sess_lock_wait_min => 1000 => 1000
memcached.sess_locking => 1 => 1
memcached.sess_number_of_replicas => 0 => 0
memcached.sess_persistent => 0 => 0
memcached.sess_prefix => memc.sess. => memc.sess.

also we have tried with below configuration changes,

memcached.sess_lock_retries => 10 => 10 // 50 also tried
memcached.sess_lock_wait_max => 150 => 150
memcached.sess_lock_wait_min => 150 => 150

session.lazy_write => Off => Off

but it didn't work, keep on getting "session_start(): Unable to clear session lock record"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-09 11:56 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:56 UTC] cmb@php.net
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <https://github.com/php-memcached-dev/php-memcached/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC