Page MenuHomePhabricator

SDC: SimpleCacheWithBagOStuff throwing CacheInvalidArgumentException due to invalid cache key on Commons
Closed, ResolvedPublic

Description

A couple examples from today's commonswiki error log:

Wikibase\Lib\CacheInvalidArgumentException from line 282 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/Wikibase/lib/includes/SimpleCacheWithBagOStuff.php: Cache key contains characters that are not allowed: `Q484768_982

Wikibase\Lib\CacheInvalidArgumentException from line 282 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/Wikibase/lib/includes/SimpleCacheWithBagOStuff.php: Cache key contains characters that are not allowed: `Q274193_123

I'm not sure what's causing it, but I assume it's related to SDC since the error is thrown by Wikibase.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kaldari renamed this task from SDC throwing fatal error due to invalid cache key to SDC throwing exception due to invalid cache key.Jul 21 2020, 11:39 PM

This looks like T245396, which @Ladsgroup @Addshore and @hoo worked on just a few months ago. I think they have more expertise here than we do 🙂

Krinkle renamed this task from SDC throwing exception due to invalid cache key to SDC: SimpleCacheWithBagOStuff throwing CacheInvalidArgumentException due to invalid cache key on Commons.Jul 22 2020, 2:16 AM
Krinkle triaged this task as High priority.
Krinkle moved this task from Untriaged to Jul 2020 on the Wikimedia-production-error board.
Krinkle added a project: Wikidata-Campsite.

This thing again. It's like a whac-a-mole now. @Michael done the most recent work on it AFAIK.

This seems to have been one single spike over a span of maybe 3 minutes on 2020-07-19:

image.png (242×450 px, 7 KB)
image.png (188×1 px, 19 KB)

Maybe some strange misaligned versions during deployment?

The regex was changed in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/607544 and now the underscore is allowed. I would assume this cannot happen again. Please have a look at the logs if there are still issuses.

The patch set is part of wmf/1.35.0-wmf.40, while this error is filled under wmf/1.35.0-wmf.39, but the stacktrace shows .41

Also related:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/607579

Addshore claimed this task.

I'll go ahead and resolve this for now!