Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Lock issue with libmemcached version 1.0.18 #14

Open
imthy opened this issue Jun 26, 2018 · 6 comments
Open

Session Lock issue with libmemcached version 1.0.18 #14

imthy opened this issue Jun 26, 2018 · 6 comments

Comments

@imthy
Copy link

imthy commented Jun 26, 2018

Hi,

Maintaining session in elasticache worked fine with PHP 5.6 and aws elastic cache cluster client with memcached 2.1.0 and libmemcached 1.0.8. But, after upgrading to PHP 7 and aws elastic cache cluster client with memcached 3.0.3 and libmemcached 1.0.18, facing issues with maintaining session in elasticache. Getting the below error:
session_start(): Unable to clear session lock record

Followed the suggestions in many forum's and tried changing the session settings in ini files, but nothing worked.

Any help would be appreciated !!

@QuChen88 @malyeyev-AMZN @subuk @danzamansky @hyandell

@sodabrew
Copy link

See php-memcached-dev/php-memcached#399 (comment) for the underlying php-memcached issue and steps to resolve.

@woolardfa
Copy link

Made this comment also in #399 - Just an FYI... have tested PHP 7.2 (7.2.6), the underlying issue where session_start returns true when it in fact failed to acquire the session lock, and subsequently corrupts the existing session data, has been fixed.

A call to session_start() now returns false when it failed to acquire the session lock.

@ultrageoff
Copy link

Just to mention that an upgrade from PHP 7.1 to 7.2 brought instantly snappier response and an instant fix for the session lock issues I was seeing.

@stephenbaugh
Copy link

stephenbaugh commented Sep 3, 2019

Just to mention that an upgrade from PHP 7.1 to 7.2 brought instantly snappier response and an instant fix for the session lock issues I was seeing.

@ultrageoff are you using an amazon instance? I tried to upgrade to php 7.2 using apache on the 2108 amazon instance, against elasticache memcache and the amazon auto configure memcached client. This had PHP warnings as 7.2 uses libmemcached 1.0.8. When I downgraded to php 7.0 the warnings stoped as the 7.0 client uses libmemcached 1.0.18

I can't (a) understand why libmemcached was downgraded to a earlier version in the 7.2 client and (b) can't get it to compile due to warnings and therefore building my own isn't possible.

Bit shocked it's 12 months later and the 7.2 client hasn't been updated to a version that uses the later libmemcached version as this must be a widespread issue.

@ultrageoff
Copy link

ultrageoff commented Sep 3, 2019

@stephenbaugh I'm on a 'cloud-based' hosting package from TSOhost. I honestly didn't look very deeply into the causes of the issues - beyond reading about the implication of libmemcached versions. As switching up a PHP version was very easy (using TSOhosts control panel, an equivalent to cPanel or similar) and delivered a fix, I thought I'd share. I didn't go into it any further, but thanks for your insight on the version downgrading, which seems likely to be relevant.

@stephenbaugh
Copy link

@ultrageoff thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants