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

Random "key does not exist on the server" messages #541

Closed
rdecourtney opened this issue Nov 17, 2017 · 11 comments
Closed

Random "key does not exist on the server" messages #541

rdecourtney opened this issue Nov 17, 2017 · 11 comments

Comments

@rdecourtney
Copy link

Configuration:

PhpFastCache version: 7.0.0-alpha
PHP version: 7.1.11
Operating system: Windows 2012 Datacentre

Issue description:

Using couchbase server as a memcached server, I'm getting rare, but random errors:

Error Message: Uncaught Couchbase\Exception: LCB_KEY_ENOENT: The key does not exist on the server in W:\web\assets\plugins\phpFastCache.v7\src\phpFastCache\Drivers\Couchbase\Driver.php:128
Stack trace:
#0 W:\web\assets\plugins\phpFastCache.v7\src\phpFastCache\Drivers\Couchbase\Driver.php(128): Couchbase\Bucket->remove('05f4b82707ebca6...')
#1 W:\web\assets\plugins\phpFastCache.v7\src\phpFastCache\Core\Pool\CacheItemPoolTrait.php(153): phpFastCache\Drivers\Couchbase\Driver->driverDelete(Object(phpFastCache\Drivers\Couchbase\Item))
#2 W:\web\includes\library\custom.functions.php(70): phpFastCache\Drivers\Couchbase\Driver->getItem('profile_timelin...')
#3 W:\web\platform\profile\pages\default.php(212): cache(Array)
#4 W:\web\platform\profile\index.php(116): require('W:\web\platform...')
#5 W:\web\platform\error\404.php(88): require('W:\web\platform...')
#6 {main}
thrown
Error File: W:\web\assets\plugins\phpFastCache.v7\src\phpFastCache\Drivers\Couchbase\Driver.php
Error Line: 128

By default, keys are set to expire after 600 seconds, and I'm getting around 100,000 page views a day on the server with around 10 cached requests per page - I'm going to guess it's a resource / memory issue - but should driver.php gracefully handle the non-existent key or error out as above?

Thanks G!

@Geolim4 Geolim4 self-assigned this Nov 17, 2017
@Geolim4 Geolim4 added the 7.0 label Nov 17, 2017
@Geolim4 Geolim4 added this to Todo in V7 Roadmap via automation Nov 17, 2017
@Geolim4 Geolim4 added this to the 7.0.0 milestone Nov 17, 2017
@Geolim4
Copy link
Member

Geolim4 commented Nov 17, 2017

Hello,

Do you reproduce this bug with the V6 (final) ?

Also I may need to access and/or collaborate with your project on this bug since it appears to be really specific if you don't mind.

Cheers,
Georges

@Geolim4
Copy link
Member

Geolim4 commented Nov 17, 2017

I'm gonna push a fix for that, do you have any time to test it in real time with me ?

@rdecourtney
Copy link
Author

Hi G.. yes of course :-) I'm devving all day today - it has only been a random issue though that I can't reproduce, but I can push an update and then monitor over the next few days if that helps?

@Geolim4
Copy link
Member

Geolim4 commented Nov 18, 2017

Yes of course, I'll give you a patch in a moment

@Geolim4
Copy link
Member

Geolim4 commented Nov 18, 2017

@Geolim4
Copy link
Member

Geolim4 commented Nov 19, 2017

@rdecourtney bump :D

@Geolim4 Geolim4 modified the milestones: 7.0.0, 6.0.7 Nov 20, 2017
@rdecourtney
Copy link
Author

No errors so far! (I did comment on the update you pushed out, not here)..

@Geolim4
Copy link
Member

Geolim4 commented Nov 21, 2017

Okay I'll push a fix tonight !
Thanks you !

@Geolim4
Copy link
Member

Geolim4 commented Nov 23, 2017

Sorry my computer crashed 2 days ago, expect some days until I finished recovering my data.

My apologizes.

Cheers,
Georges

Geolim4 added a commit that referenced this issue Nov 23, 2017
Geolim4 added a commit that referenced this issue Nov 23, 2017
V7 Roadmap automation moved this from Todo to Done Nov 23, 2017
@rdecourtney
Copy link
Author

rdecourtney commented Nov 24, 2017 via email

@Geolim4
Copy link
Member

Geolim4 commented Nov 24, 2017

Not exactly, I did the commit from my work company ;)
I'll fix my computer tonight anyway, the hardest part was to retrieve my gpg signature to sign the commits above ;)

Cheers,
Georges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
V7 Roadmap
  
Done
Development

No branches or pull requests

2 participants