Last modified: 2014-10-24 20:00:38 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 T56028, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54028 - <api-error-stasherror>
<api-error-stasherror>
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Gilles Dubuc
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-11 19:31 UTC by Dave Kennard
Modified: 2014-10-24 20:00 UTC (History)
10 users (show)

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


Attachments
Screenshot of error (117.35 KB, image/png)
2013-09-11 19:31 UTC, Dave Kennard
Details
Chunked-Upload-Wizard-Screenshot-Internal-Error-2013-09-26-2.17PM - See Comment 4 - first error message (212.83 KB, image/png)
2013-09-27 19:15 UTC, Fabrice Florin
Details
Chunked-Upload-Wizard-Screenshot-Stash-Error-2013-09-26-2.20PM - See Comment 4, second error message (203.14 KB, image/png)
2013-09-27 19:16 UTC, Fabrice Florin
Details

Description Dave Kennard 2013-09-11 19:31:18 UTC
Created attachment 13271 [details]
Screenshot of error

When using the Wikimedia Commons Upload Wizard today I got the error <api-error-stasherror> listed for each file when it came to adding the files (the stage after adding descriptions).

I was trying to add 5 files, and adding each of them to a new category as well as two other existing categories. The files are all jpeg images, around 40-100kB in size.

Browser is Google Chrome 29.0.1547.66 m
Comment 1 Bryan Davis 2013-09-19 18:29:02 UTC
(In reply to comment #0)
> When using the Wikimedia Commons Upload Wizard today I got the error
> <api-error-stasherror> listed for each file when it came to adding the files
> (the stage after adding descriptions).

Do you by any chance have the "chunked upload" preference enabled on commons?
Comment 2 Dave Kennard 2013-09-20 06:34:16 UTC
In the Upload Wizard preferences "Chunked uploads for files over 1MB in Upload Wizard" is unchecked. So no, unless there is another chunked upload setting somewhere else.
Comment 3 Raimond Spekking 2013-09-23 08:15:41 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > When using the Wikimedia Commons Upload Wizard today I got the error
> > <api-error-stasherror> listed for each file when it came to adding the files
> > (the stage after adding descriptions).
> 
> Do you by any chance have the "chunked upload" preference enabled on commons?

I got the same error today and I have enabled the "chunked upload" preference. 

But prior the above error I got the message "Bad token" for 1 of 5 files and after retrying to publish the missing 1 file I got the <api-error-stasherror> error.
Comment 4 Fabrice Florin 2013-09-27 19:12:03 UTC
I also experienced a similar issue yesterday when uploading this 132 Mb WebM video file with 'chunked upload' preferences enabled:

http://commons.wikimedia.org/wiki/File:Engagement_Roundtable_1_-_Part_2.webm

After my first attempt to upload that file, I got this message (see attached screenshots):

Internal error: Could not determine if the copy succeeded.

I refreshed my Contributions page, and there was no mention of this particular file upload, suggesting that this upload had not been successful. 

I then clicked on 'Retry failed uploads', and got this second error message:

Unknown error: "stasherror"

I then clicked on 'Retry failed uploads' again, but that attempt was unsuccessful, even after a couple retries.

I then shut down my Mac Chrome 29 browser (which had 10 tabs open) and restarted the upload again from scratch, with fewer tabs. This time, the upload was successful, with no issues.

I should point out that I uploaded 9 other large video files yesterday with no issues either (and I kept adding more tabs throughout the day, which may rule out local browser memory allocation issues):
https://meta.wikimedia.org/wiki/Roundtables/Roundtable_1#Videos

All these uploads were done under the same conditions, both before and after the issue reported above. So this issue appears to be intermittent and difficult to reproduce. 

Lastly, I should note that I experienced a similar issue last week, with this 453 Mb WebM video file:
https://meta.wikimedia.org/wiki/File:Multimedia_Roundtable_-_Part_1.webm

It gave me yet another error message ('An unknown error occurred'), but I was able to upload that file successfully, despite that message.
Comment 5 Fabrice Florin 2013-09-27 19:15:35 UTC
Created attachment 13396 [details]
Chunked-Upload-Wizard-Screenshot-Internal-Error-2013-09-26-2.17PM - See Comment 4 - first error message
Comment 6 Fabrice Florin 2013-09-27 19:16:45 UTC
Created attachment 13397 [details]
Chunked-Upload-Wizard-Screenshot-Stash-Error-2013-09-26-2.20PM - See Comment 4, second error message
Comment 7 Nemo 2013-12-26 10:57:41 UTC
Bryan Davis, is still in your plans to work on this? Now there are some nice scripts on Commons to make Special:UploadStash more usable, that could help you in debugging.
Comment 8 Bryan Davis 2014-01-05 22:57:05 UTC
(In reply to comment #7)
> Bryan Davis, is still in your plans to work on this? Now there are some nice
> scripts on Commons to make Special:UploadStash more usable, that could help
> you in debugging.

It's still on my list of "things to get to someday" but sadly I haven't looked at the problem of months. There is some hope however as the Multimedia team has been talking about a bug squash sprint for Upload Wizard.
Comment 9 Gilles Dubuc 2014-01-10 13:31:56 UTC
Since the original reporter's files were way below 5MB and since I've seen the exact same bug experienced by a user who freshly created an account on one of our usertesting.com UX tests, I doubt that this one is caused by chunked uploads.
Comment 10 Mark Holmquist 2014-10-24 20:00:38 UTC
FYI I have two patches:

* https://gerrit.wikimedia.org/r/168649
* https://gerrit.wikimedia.org/r/168659

Together they should at least make it so errors from the stash API are legible and point to actual problems, instead of the illegible crap we've had thus far.

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


Navigation
Links