Last modified: 2014-09-23 22:41:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42178, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40178 - File pages with upload versions but no page revisions (revision #0 does not exist)
File pages with upload versions but no page revisions (revision #0 does not e...
Status: RESOLVED DUPLICATE of bug 32551
Product: Wikimedia
Classification: Unclassified
Media storage (Other open bugs)
unspecified
All All
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/wiki/Fi...
: platformeng
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-12 08:04 UTC by Derk-Jan Hartman
Modified: 2014-09-23 22:41 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Derk-Jan Hartman 2012-09-12 08:04:47 UTC
A user uploaded a new version of a file, and this seems to have led to the disappearance of the page belonging to that file. The logs also do not show the original upload and page creation.
Comment 1 Dereckson 2012-09-12 09:07:15 UTC
[ Raising importance to High, as this could be a bug related to data corruption. ]
Comment 2 Andre Klapper 2012-09-14 16:14:08 UTC
(In reply to comment #0)
> A user uploaded a new version of a file, and this seems to have led to the
> disappearance of the page belonging to that file. 

Could you clarify what you mean by "page belonging to that file" in this case?
Comment 3 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-14 16:30:59 UTC
See https://commons.wikimedia.org/w/index.php?title=File:Audio-mp3.svg&action=history

All edits in history are from September 12th, and then review the file history, it has (currently) 2 versions, first one uploaded on February 22. So the file description page (File:Audio-mp3.svg) is missing the revision from February 22 (at least).

The file comment from February 22 is also missing in the file history, and it's strange since the comment is separate from the file description page (see http://www.mediawiki.org/wiki/Manual:Image_table and http://www.mediawiki.org/wiki/Manual:Oldimage_table, img_description and oi_description fields respectively), which could mean that the comment and page description was lost on the first upload, or it never existed.
Comment 4 Waldir 2013-02-11 20:21:46 UTC
I just came across bug this as well. There are a buch of these: http://toolserver.org/~krinkle/BlankPages.php?action=view&ns=6&p=commons.wikimedia

I'll transcribe below the current list generated by the tool, for archival purposes:

* [[c:File:Bruxelles Java Masque Wayang 02 10 2011 06.jpg]]
* [[c:File:Coxeter diagram finite rank4 correspondence.png]]
* [[c:File:Kit body brugge1314.png]]
* [[c:File:Kit body union1314.png]]
* [[c:File:Kit left arm union1314.png]]
* [[c:File:Kit right arm union1314.png]]
* [[c:File:Luftaufnahmen Nordseekueste 2012 05 D50 by-RaBoe 066.jpg]]
* [[c:File:Luftaufnahmen Nordseekueste 2012 05 D50 by-RaBoe 067.jpg]]
* [[c:File:Médaille UNION NATIONALE DES CHEMINOTS. Graveur François MOURGUES (2).JPG]]
* [[c:File:Mérite national chevalier FRANCE.jpg]]
* [[c:File:Ogeret.JPG]]
* [[c:File:POSTERMENDOZA.JPG]]
* [[c:File:Pastel Raymond Martin 2.jpg]]
* [[c:File:RUS-CZE 2012-06-08 pl.svg]]
* [[c:File:SANTA MARIA DE PUIG-AGUILAR - 7.JPG]]

The file pages do show the image, but below it there's the following error text:

"The revision #0 of the page named <filename.ext> does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log."

And the deletion log is empty. The *upload* log, OTOH, does show the upload of the file itself.
Comment 6 Waldir 2013-02-11 20:35:12 UTC
somehow I reverted sumana's importance/priority settings with my last comment. restoring. sorry all for the spam.
Comment 7 Aaron Schulz 2013-02-11 21:20:37 UTC
I don't think those pages ever existed, they probably failed partially (leaving a broken page row), causing the user to upload a second time (since they thought it failed), resulting in two files.

This requires two bugs:
1) Something issuing COMMIT while the page stub row with page_latest=0 is inserted (this should never happen). Given how laughably fragile this code is, that would not be surprising at all. It can be a core function or extension hook handler from anywhere.
2) Something causing an fatal or exception afterwards, so the stub row is never removed/completed. I recall exceptions with ApiUpload not that many months ago, so it's not implausible.
Comment 8 Andre Klapper 2013-02-12 18:08:20 UTC
<AaronSchulz> andre__: sounds like some bug where the file but not the page was stored on upload for some time in the past
<AaronSchulz> from the report alone, it's not really immediate priority
<andre__> Thanks. Would you go ahead and decrease prio, or shall I?
<AaronSchulz> you can if you want
Comment 9 Aaron Schulz 2013-02-28 18:25:20 UTC
In any case, https://gerrit.wikimedia.org/r/#/c/50037/ might help. The dberror log should be monitored too see what transaction problems are left.
Comment 10 Andre Klapper 2013-02-28 19:24:14 UTC
Patch mentioned by Aaron has been merged on 22nd.

Waldir, Jesús, DJ:
Retesting this in March (see https://www.mediawiki.org/wiki/MediaWiki_1.21/Roadmap ) is highly welcome!
Comment 11 Waldir 2013-03-01 17:49:36 UTC
(In reply to comment #10)
> Retesting this (...) is highly welcome!
I don't think any of us had the error occur to us directly, we simply found those pages. I am not sure how to reproduce the problem, so can you clarify how can testing be done?
Comment 12 Jesús Martínez Novo (Ciencia Al Poder) 2013-03-01 17:59:08 UTC
Look, it seems we just got another one today: [1]

The only way I can think about "retest" this is to keep an eye on the BlankPages tool described on comment #4 to see if new pages appear.

----

[1] http://commons.wikimedia.org/wiki/File:Alyona_lanskaya.jpg
Comment 13 Jesús Martínez Novo (Ciencia Al Poder) 2013-03-01 18:13:27 UTC
(In reply to comment #12)
> Look, it seems we just got another one today: [1]

Well, maybe I'm wrong. The history page is there, just empty. The user probably haven't filled the edit form on upload. That's different than not having a page at all.
Comment 14 Rob Lanphier 2013-03-22 23:33:19 UTC
Aaron put some logging in place and fixed the problems exposed by the logging at least.  We're not seeing new issues here, so if there are recent examples of this problem that crop up, please reopen.
Comment 17 Marco 2014-04-05 21:04:13 UTC
Probably a full list:
https://commons.wikimedia.org/w/index.php?oldid=120695825

(~70 files)
Comment 18 Bawolff (Brian Wolff) 2014-04-05 21:12:03 UTC

*** This bug has been marked as a duplicate of bug 32551 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links