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

Problem with new version memcached-1.4.24 #203

Closed
ali88code opened this issue Nov 25, 2015 · 22 comments
Closed

Problem with new version memcached-1.4.24 #203

ali88code opened this issue Nov 25, 2015 · 22 comments
Milestone

Comments

@ali88code
Copy link

I have installed memcached ,php-pecl-memcached and libmemcached.
1.memcached (1.4.24)
2.php5.5.30 , php-pecl-memcached (2.2.0)
3.libmemcached(1.0.18)

I try with php script test.php

addServer('127.0.0.1',11211); $stats = $mc->getAllKeys(); echo "Return code:", $mc->getResultCode()."\n"; echo "Retucn Message:", $mc->getResultMessage () ."\n"; print_r ($stats); ?>

Return code:9
Retucn Message:CLIENT ERROR

I look the log on memcached server log
<36 stats cachedump 57 0
<36 stats cachedump 58 0
<36 stats cachedump 59 0
<36 stats cachedump 60 0
<36 stats cachedump 61 0
<36 stats cachedump 62 0
<36 stats cachedump 63 0

36 CLIENT_ERROR Illegal slab id
<36 quit
<36 connection closed.

I change to memcached version 1.4.15 ,and try php script test.php

Return code:0
Retucn Message:SUCCESS
Array
(
[0] => qinyao
[1] => andy
)

@scottchiefbaker
Copy link

scottchiefbaker commented Apr 27, 2016

I came here to report the same thing. This bug should be be changed from "Problem with new version memcached-1.4.24" to "getAllKeys() fails with result code 9" as it's more descriptive and will help the developer categorize things better.

I'm running PHP 7.0.5 and php-memcached compiled from git two months ago and I'm getting the same error.

getAllKeys() returns false
getResultCode() returns 9
getResultMessage() returns CLIENT ERROR

@DerDu
Copy link

DerDu commented May 24, 2016

Same here..

Error: 9 - CLIENT ERROR

PHP Version 7.0.4-7ubuntu2 (16.04 LTS, memcached 1.4.25)
php-memcached compiled from git today (24 May 2015, branch php7)

@billynoah
Copy link

Same problem here. If anyone has a workaround other than going to an older version of memcached please post.

@andrewnicols
Copy link

Still an issue on memcached 1.4.33.
It looks like this issue first appeared in 1.4.23.

Causes major issues for us.

@andrewnicols
Copy link

This is actually a bug in libmemcached: https://bugs.launchpad.net/libmemcached/+bug/1534062

@Mattie112
Copy link

Oh yes that bug, took quite some time to find that issue. If everybody can mark that issue as "this affects me" (top left) then I hope I will finally get a reply on it!

@andrewnicols
Copy link

Given the last release of libmemcached was two years ago, I'm not holding out much hope I admit :/

I've just proposed an alternate fix route, but I've not written c for many years so I'm unlikely to e able to work on this myself.

@Mattie112
Copy link

Well yes, I noticed that already when submitting that bug :p Still hoping that someday it will be fixed, for now using 1.4.22 just works fine for us.

@sodabrew
Copy link
Contributor

sodabrew commented Nov 1, 2016

Good find! We should be able to work around this in the client code php-memcached.

@nadavkav
Copy link

nadavkav commented Nov 5, 2016

This causes major issues for us too.
Can any core developer confirm it and give any status about this?
It would be very much appreciated

@sodabrew
Copy link
Contributor

sodabrew commented Nov 5, 2016

@nadavkav #203 (comment)

@nadavkav
Copy link

nadavkav commented Nov 5, 2016

@sodabrew , are you php-memcached core developer?

@sodabrew
Copy link
Contributor

sodabrew commented Nov 5, 2016

Yes, I'm a member of this repo. Sorry for the curt note, here's a longer explanation:

A quick read of the libmemcached code suggests that the CLIENT_ERROR status comes back from libmemcached after php-memcached has already processed the return data callbacks. I need to verify this, and then ignore the particular error in the event that we've already got data in-hand.

@nadavkav
Copy link

nadavkav commented Nov 5, 2016

Great! thank you very much for the quick reply and explanation of the possible cause for this issue.

@Mattie112
Copy link

Ah great, I've only reported it at libmemcached, never thought of reporting it here :) But thanks!

@comensee
Copy link

Hi people,
Any updates about this issue ?
Thanks

@sodabrew
Copy link
Contributor

@comensee Yes, this is the most recent status: #203 (comment)

@unnamed1git
Copy link

unnamed1git commented Feb 6, 2017

Hi Aaron,

have you been able to fix it? last comment from Nov 2016 is unclear about if its fixed or not.

We cant use memcached 1.4.24+ for more than one year, sadly AWS and others do not allow versions < 1.4.24 anymore so we cant use memcached anymore.

Also ubuntu 16.04 is on memcached 1.4.25 so the php module wont work.
see https://launchpad.net/ubuntu/xenial/+source/memcached

regards
Tibor

@sodabrew
Copy link
Contributor

sodabrew commented Feb 6, 2017

I haven't started work on this issue yet. "Soon" - I'm putting together some important fixes for the next minor release already!

@deatharse
Copy link

still an issue on debian version php-memcached (3.0.1+2.2.0-1)

@scottchiefbaker
Copy link

This isn't fixed until 3.0.3.

@deatharse
Copy link

[correction] it does appear to work in 3.0.1

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