Page MenuHomePhabricator

Server error 500 after uploading chunk
Open, Needs TriagePublicBUG REPORT

Description

Error while uploading https://en.wikisource.org/wiki/File:Land_and_Liberty,_Vol._20_-_1919.pdf
The source file is available online (383 MB). See description above.
This happened twice, exactly the same error.

Error
00924: 39/40> in progress Upload: 100%
00951: 39/40> Chunk uploaded
00951: 40/40> in progress Upload: 100%
00962: 40/40> upload is stuck
00962: 40/40> Connection seems to be okay. Waiting one more time...
00967: 40/40> upload is stuck
00967: 40/40> Connection seems to be okay. Waiting one more time...
00972: 40/40> upload is stuck
00972: 40/40> Connection seems to be okay. Waiting one more time...
01011: 40/40> upload is stuck
01011: 40/40> Connection seems to be okay. Waiting one more time...
01018: 40/40> Server error 504 after uploading chunk: 
Response: upstream request timeout
01018: 40/40> Connection seems to be okay. Waiting one more time... Upload: 100%
01034: 40/40> Server error 500 after uploading chunk: 
Response: {"error":{"code":"stashfailed","info":"The file mwstore://local-swift-eqiad/local-temp/7/7f/1a6bdm44kt7s.mxkko1.7.pdf.0 does not exist.","*":"See https://en.wikisource.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes."},"servedby":"mw1390"}<!DOCTYPE html>
<html><head><title>Internal error - Wikisource, the free onl
01034: 40/40> upload in progress Upload: 100%
01035: FAILED: uploadstash-file-not-found: Key "1a6bdm44kt7s.mxkko1.7.pdf" not found in stash.

Console on Chrome

Failed to load resource: the server responded with a status of 504 ()
/w/api.php:1     Failed to load resource: the server responded with a status of 500 ()
index.php?action=raw&ctype=text/javascript&title=User:Rillke/MwJSBot.js&_=2:1136 mwbot> uploadstash-file-not-found: Key "1a6bdm44kt7s.mxkko1.7.pdf" not found in stash.  {"error":{"code":"uploadstash-file-not-found","info":"Key \"1a6bdm44kt7s.mxkko1.7.pdf\" not found in stash.","*":"See https://en.wikisource.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes."},"servedby":"mw1361"}
Impact

File failed to upload.

Event Timeline

Aklapper changed the subtype of this task from "Production Error" to "Bug Report".Jul 2 2023, 1:16 AM

In fact the file key has been changed when uploadstash-file-not-found error occured. Need to go to Special:UploadStash to find the new correct key and manually recover, see https://commons.wikimedia.org/wiki/User:MidleadingBot.

This still happens on Wikisource, and there is no file on Special:UploadStash. This is weird, as I was able to upload a 1 GB PDF file on Commons recently.

Why not upload all these files on Commons so that they can be used on any Wikimedia project? I have been able to upload PDFs from 1GB to 3GB on Commons 100% successful with the method I mentioned, so maybe the tool you use could be improved.

These may not be in the public domain in UK, the source country, however they are in the public domain in USA.