Page MenuHomePhabricator

Run refreshMetadata --force for two broken midi files
Closed, ResolvedPublic

Description

Media files:

These are very old files that were undeleted recently. Apparently their metadata was not properly extracted in the olden days.

php maintenance\run.php refreshImageMetadata --mediatype AUDIO --mime audio/mid --force --start=Segne_du,_Maria.mid --end=Segne_du,_Maria.mid
php maintenance\run.php refreshImageMetadata --mediatype AUDIO --mime audio/mid --force --start=Honeysuckle_Rose_for_wikipedia.mid  --end=Honeysuckle_Rose_for_wikipedia.mid

After running these commands these files should have a duration.

Possibly we have more old files like this, so we may also want to run

php maintenance\run.php refreshImageMetadata --mediatype AUDIO --mime audio/mid --force ---oldimage

for each wiki, to regenerate the metadata of old deleted midi files

Event Timeline

Mentioned in SAL (#wikimedia-operations) [2026-01-19T16:55:43Z] <ammarpad@deploy2002> mwscript-k8s job started: refreshImageMetadata.php --wiki=commonswiki --mediatype=AUDIO --mime=audio/mid --force --start=Segne_du,_Maria.mid --end=Segne_du,_Maria.mid # T414642

Mentioned in SAL (#wikimedia-operations) [2026-01-19T17:08:29Z] <ammarpad@deploy2002> mwscript-k8s job started: refreshImageMetadata.php --wiki=commonswiki --mediatype=AUDIO --mime=audio/midi --force --start=Honeysuckle_Rose_for_wikipedia.mid --end=Honeysuckle_Rose_for_wikipedia.mid # T414642

php maintenance\run.php refreshImageMetadata --mediatype AUDIO --mime audio/mid --force --start=Segne_du,_Maria.mid --end=Segne_du,_Maria.mid

mime should be 'audio/midi'. I rerun with the correct one

Seems like this didn't do anything anyway

ammarpad@deploy2002:~$ mwscript-k8s --comment="T414642" --follow --sal -- refreshImageMetadata.php --wiki=commonswiki --mediatype="AUDIO" --mime="audio/midi" --force --start="Honeysuckle_Rose_for_wikipedia.mid" --end="Honeysuckle_Rose_for_wikipedia.mid"
⏳ Starting refreshImageMetadata.php on Kubernetes as job mw-script.codfw.ssaesd7f ...
🚀 Job is running.
📜 Streaming logs:
Processing next 1 row(s) starting with Honeysuckle_Rose_for_wikipedia.mid.

Finished refreshing file metadata for 1 files. 0 needed to be refreshed, 1 did not need to be but were refreshed anyways.

Duration is empty : https://commons.wikimedia.org/wiki/File:Honeysuckle_Rose_for_wikipedia.mid

Ammarpad subscribed.
TheDJ claimed this task.

Both files have a duration now and work. Might be that you got an old cached version of the page.