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

Error "60: Operation timed out" while connecting to Memcached #7

Closed
welcoMattic opened this issue Feb 10, 2015 · 11 comments
Closed

Error "60: Operation timed out" while connecting to Memcached #7

welcoMattic opened this issue Feb 10, 2015 · 11 comments

Comments

@welcoMattic
Copy link
Contributor

Hi!

I just install phpMemAdmin from composer and after configuring .config file, I catch this error :

Fatal error: Uncaught exception 'Clickalicious\Memcached\Exception' with message 'Error "60: Operation timed out" while connecting to Memcached on host: 127.0.0.1:11211 (UUID: 9c831bd84d21932d4738344f51dec12799849ad5)' in /workspace/phpMemAdmin/vendor/clickalicious/memcached.php/lib/Clickalicious/Memcached/Client.php on line 908

My OS : OS X 10.10.2

PHP -v :

PHP 5.6.5 (cli) (built: Jan 26 2015 11:37:54)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans

Memcache client : memcached 1.4.20

Thanks for your work ;)

@benjamin-carl
Copy link
Collaborator

Thanks for the provided environment information - I will check for this issue as soon as I'm back home :)

@dginat
Copy link

dginat commented Feb 10, 2015

@benjamin-carl
Copy link
Collaborator

The bug seems to be exactly at the position dginat postet in his solution. The bug itself is not a bug in phpMemAdmin - but more in Memcached.php the library used to talk to Memcached.

I tried the fix and got some more result i hoped cause it seems to fix another bug as well ;)
All tests still functional and successful.

Will release a new Memcached.php Version in a few minutes ...

@benjamin-carl
Copy link
Collaborator

Detected side effects. Will take some more time :)

@benjamin-carl
Copy link
Collaborator

I've updated Memcached.php just a few seconds ago. Try to update phpMemAdmin's composer dependencies (Memcached.php) - make sure to use >= v0.3.2

composer update

should do the trick.

@benjamin-carl
Copy link
Collaborator

Can you please confirm :)

@welcoMattic
Copy link
Contributor Author

Hi! Still not works on my side :/

Same error message with clickalicious/memcached.php (v0.3.2)

If you need more logs, tell me ;)

@welcoMattic
Copy link
Contributor Author

Hi!

I just fix the problem by set self::DEFAULT_TIMEOUT at 10.

Don't know why it is required on my side, but it works !

@seyfer
Copy link

seyfer commented Feb 13, 2015

Need timeout setting in config. Same error

@seyfer
Copy link

seyfer commented Feb 13, 2015

Just fix it!

nano /var/www/nesudba2.razlet.ru/vendor/clickalicious/memcached.php/lib/Clickalicious/Memcached/Client.php

and set const DEFAULT_TIMEOUT = 10

@benjamin-carl
Copy link
Collaborator

@see #6 (comment)

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

4 participants