Hey guys,
I've been getting a lot of session errors in my wiki lately.
Just now I got this message when I tried to save an edit to my wiki:
*Sorry! We could not process your edit due to a loss of session data.* Please try again. If it still does not work, try logging out http://wiki.jokefire.com/index.php/Special:UserLogout and logging back in.
And often times when I'm trying to login I get complaints about cookies needing to be enabled. Even though they are!
*Login error* Jokefire Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I have sessions set to be stored in my LocalSettings.php file:
$wgSessionsInMemcached = true;
These are all the memcached settings I have in my LocalSettings.php file:
$wgDisableCounters = true; $wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( "xx.xx.xx.xxx:11211", "xx.xx.xx.xxx:11211", "xx.xx.xx.xx:11211" ); $wgParserCacheType = CACHE_MEMCACHED; # optional $wgMessageCacheType = CACHE_MEMCACHED; # optional $wgSessionCacheType = CACHE_MEMCACHED; $wgSessionsInMemcached = true; $wgUseLocalMessageCache = true; $wgUseGzip = true; $wgGroupPermissions['*']['memcached'] = true;
I have these cookie settings in my php.ini
[root@ops1:~] #grep -i cookies /etc/php.ini | grep -v ';' session.use_only_cookies = 1 session.use_cookies = 1
I'm wondering if there's any way I can verify that user sessions for media wiki are being stored in memcached. And I'm wondering how I can best troubleshoot these session errors I'm getting.
Thanks, Tim
I've seen similar issues when memcached is getting close to its max capacity. Make sure stuff isn't getting evicted frequently.
You can also lookup the memcache key generation in the User class and look up the key directly, but I don't recall there being a good way to check it otherwise. On Oct 3, 2015 4:13 PM, "Tim Dunphy" bluethundr@gmail.com wrote:
Hey guys,
I've been getting a lot of session errors in my wiki lately.
Just now I got this message when I tried to save an edit to my wiki:
*Sorry! We could not process your edit due to a loss of session data.* Please try again. If it still does not work, try logging out http://wiki.jokefire.com/index.php/Special:UserLogout and logging back in.
And often times when I'm trying to login I get complaints about cookies needing to be enabled. Even though they are!
*Login error* Jokefire Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I have sessions set to be stored in my LocalSettings.php file:
$wgSessionsInMemcached = true;
These are all the memcached settings I have in my LocalSettings.php file:
$wgDisableCounters = true; $wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( "xx.xx.xx.xxx:11211", "xx.xx.xx.xxx:11211", "xx.xx.xx.xx:11211" ); $wgParserCacheType = CACHE_MEMCACHED; # optional $wgMessageCacheType = CACHE_MEMCACHED; # optional $wgSessionCacheType = CACHE_MEMCACHED; $wgSessionsInMemcached = true; $wgUseLocalMessageCache = true; $wgUseGzip = true; $wgGroupPermissions['*']['memcached'] = true;
I have these cookie settings in my php.ini
[root@ops1:~] #grep -i cookies /etc/php.ini | grep -v ';' session.use_only_cookies = 1 session.use_cookies = 1
I'm wondering if there's any way I can verify that user sessions for media wiki are being stored in memcached. And I'm wondering how I can best troubleshoot these session errors I'm getting.
Thanks, Tim -- GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Kur Lieuviu kalba? 2015 spa. 5 18:59 "Chris Steipp" csteipp@wikimedia.org rašė:
I've seen similar issues when memcached is getting close to its max capacity. Make sure stuff isn't getting evicted frequently.
You can also lookup the memcache key generation in the User class and look up the key directly, but I don't recall there being a good way to check it otherwise. On Oct 3, 2015 4:13 PM, "Tim Dunphy" bluethundr@gmail.com wrote:
Hey guys,
I've been getting a lot of session errors in my wiki lately.
Just now I got this message when I tried to save an edit to my wiki:
*Sorry! We could not process your edit due to a loss of session data.* Please try again. If it still does not work, try logging out http://wiki.jokefire.com/index.php/Special:UserLogout and logging back in.
And often times when I'm trying to login I get complaints about cookies needing to be enabled. Even though they are!
*Login error* Jokefire Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I have sessions set to be stored in my LocalSettings.php file:
$wgSessionsInMemcached = true;
These are all the memcached settings I have in my LocalSettings.php file:
$wgDisableCounters = true; $wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( "xx.xx.xx.xxx:11211", "xx.xx.xx.xxx:11211", "xx.xx.xx.xx:11211" ); $wgParserCacheType = CACHE_MEMCACHED; # optional $wgMessageCacheType = CACHE_MEMCACHED; # optional $wgSessionCacheType = CACHE_MEMCACHED; $wgSessionsInMemcached = true; $wgUseLocalMessageCache = true; $wgUseGzip = true; $wgGroupPermissions['*']['memcached'] = true;
I have these cookie settings in my php.ini
[root@ops1:~] #grep -i cookies /etc/php.ini | grep -v ';' session.use_only_cookies = 1 session.use_cookies = 1
I'm wondering if there's any way I can verify that user sessions for
media
wiki are being stored in memcached. And I'm wondering how I can best troubleshoot these session errors I'm getting.
Thanks, Tim -- GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org