Squiz matrix error - nonce


#1

** Version 5.4.3.1:**

Hi team,

When we upgraded matrix we noticed we are getting allot of nonce errors.

Generally you would get an error if you had multiple instances of edit+ or admin open in a session - or if they didn’t log out correctly and attempted to open anther session.

However some editors are finding hey are not having multiple sessions and are still getting errors.

Here is one type of error -

[512:matrix warning][R] JS API Error: nonce token is invalid at packages/web_services/js_api/js_api.inc:6073
Current Memory: 39 MB
Peak Memory: 40 MB
Backtrace: function js_api_error_handler( file=)
function trigger_error(line=6073 file=js_api.inc)
function buildError(line=6107 class=js_api object=JS_Api)
function returnError(line=345 class=js_api object=JS_Api)
function printFrontend(line=5536 class=mysource object=JS_Api)
function _printAssetFrontend(line=641 class=mysource object=MySource)
function start(line=30 class=index object=MySource)

Our current memory limits on authoring

Web Memory Limit
1024 MB

Cron Memory Limit
512 MB

Any advice - cheers fuzz


(David Schoen) #2

Are you using memcache for sessions?

If so, can you provide info about what value is set for memcache.lock_timeout, e.g:

$ php -i | grep memcache.lock_timeout
memcache.lock_timeout => 15 => 15

and what version of the PECL is running e.g:

$ php -i | grep -A1 '^memcache support'
memcache support => enabled
Version => 3.0.8

Are the problem requests failing at the right time to be hitting the lock_timeout?


#3

Thanks David! i’ll check with the team. We are using memcache though