Page MenuHomePhabricator

Upload cache not invalidated after purge
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

On beta commons, if I do action=purge on a file, when I download it from upload.wikimedia.beta.wmflabs.org it still reports a cache hit and I get an out-of-date image.

I notice that reverse-proxy-staging.php still has the IP address for upload04, which does not exist anymore. Perhaps it should be updated to the IP address for upload06.

Steps to reproduce problem
  1. Go to https://commons.wikimedia.beta.wmflabs.org/wiki/File:100_Years_War_France_1435-sr.svg?action=purge and click "OK"
  2. Open up browser developer tools and go to https://upload.wikimedia.beta.wmflabs.org/wikipedia/commons/a/ae/100_Years_War_France_1435-sr.svg
  3. In the Network tab, find the request for the file (something like: https://upload.wikimedia.beta.wmflabs.org/wikipedia/commons/a/ae/100_Years_War_France_1435-sr.svg)
  4. Inspect the response headers

Expected behavior: x-cache-status should report miss
Observed behavior: x-cache-status reports hit-remote

Event Timeline

Change 723216 had a related patch set uploaded (by Reedy; author: Reedy):

[operations/mediawiki-config@master] [beta] Update wgCdnServersNoPurge

https://gerrit.wikimedia.org/r/723216

Change 723216 merged by jenkins-bot:

[operations/mediawiki-config@master] [beta] Update wgCdnServersNoPurge

https://gerrit.wikimedia.org/r/723216

I notice that reverse-proxy-staging.php still has the IP address for upload04, which does not exist anymore. Perhaps it should be updated to the IP address for upload06.

Definitely won't be helping, that's for sure

Mentioned in SAL (#wikimedia-operations) [2021-09-23T14:58:54Z] <reedy@deploy1002> Synchronized wmf-config/reverse-proxy-staging.php: T291643 (duration: 01m 05s)

Change 723216 merged by jenkins-bot:

[operations/mediawiki-config@master] [beta] Update wgCdnServersNoPurge

https://gerrit.wikimedia.org/r/723216

FTR, I am still observing this issue even after this change.

Change 723216 merged by jenkins-bot:

[operations/mediawiki-config@master] [beta] Update wgCdnServersNoPurge

https://gerrit.wikimedia.org/r/723216

FTR, I am still observing this issue even after this change.

Actually, I don't see it anymore.

Reedy claimed this task.

Gonna mark it as closed then. Feel free to reopen if you experience it again