I am trying to use the commons upload feature (for the first time) to upload videos from my computer to commons and all my uploads failed with the error '[uploaddisabled] Uploads disabled" in the output column 'Wikibase editing results'.
Since this is my first attempt using it I'm not sure whether I'm doing something wrong or if this is an error others are experiencing... anyone else getting this? I didn't find much from googling the error except this seems to be an error that might be coming from mediawiki itself.
That's a curious error, I certainly wouldn't expect uploads to Commons to be disabled… The contents of this column are indeed directly obtained from MediaWiki. It could be that the raw JSON response from the API would have more explicit explanations of the error, maybe we should log those.
Have you tried making a sample upload manually, with the same account and files? It could be that this error message is a poor approximation for some permissions issues (account too new to upload files?), forbidden file types, blacklisted content…
It's definitely not account too new as I've logged in as User:Mvolz! I've uploaded many similar files manually with the same account and got tired of that, those are here: Category:Videos removed from DVIDS - Wikimedia Commons
File sizes range from 200 kb to 325 MB, I get the same error for every single file.
This is the sample of the openrefine output when this error is saved:
10:31:11.553 [ refine] GET /command/database/saved-connection (19ms)
10:31:11.556 [ butterfly] GET /extension/commons/scripts/index/import-from-commons-form.html [main] (2ms)
10:31:11.592 [ butterfly] GET /images/large-spinner.gif [main] (36ms)
10:31:11.628 [ refine] GET /command/core/get-preference (35ms)
10:31:29.101 [ refine] GET /command/wikidata/login (17472ms)
10:31:29.112 [ refine] POST /command/wikidata/preview-wikibase-schema (11ms)
10:32:03.008 [ refine] POST /command/wikidata/perform-wikibase-edits (33896ms)
10:32:03.039 [..mWikibaseEditsOperation] Performing edits (30ms)
10:32:03.040 [..ting.EditBatchProcessor] Requesting documents (1ms)
10:33:37.225 [...editing.MediaFileUtils] Uploading large file in chunks. (94185ms)
10:33:45.369 [..e.io.FileProjectManager] Saving some modified projects ... (8144ms)
10:33:45.389 [ project_utilities] Saved project '2134684936496' (20ms)
10:33:45.392 [ FileProjectManager] Saved workspace (2ms)
10:35:02.116 [...editing.MediaFileUtils] Uploading large file in chunks. (76724ms)
10:35:31.506 [..mWikibaseEditsOperation] Storing editing results in: Wikibase editing results (29390ms)
I unfortunately don't see anything super useful there...
I think we need to see the full API response from MediaWiki to understand what's going on here.
I have made you a patched version of OpenRefine which logs the full JSON response from MediaWiki in OpenRefine's server logs. Could you try running your upload with that version and let us know what you see in the logs? Hopefully we can adjust our logic to extract the informative part of the error and put that in the grid instead.
03:42:02.351 [..mWikibaseEditsOperation] Performing edits (43ms)
03:42:02.352 [..ting.EditBatchProcessor] Requesting documents (1ms)
03:42:22.384 [..kibaseapi.ApiConnection] Got MediaWiki error: {"error":{"code":"uploaddisabled","info":"Uploads disabled.","*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."},"servedby":"mw-api-ext.eqiad.main-68b59fcc8c-n98df"} (20031ms)
03:42:40.069 [..kibaseapi.ApiConnection] Got MediaWiki error: {"error":{"code":"uploaddisabled","info":"Uploads disabled.","*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."},"servedby":"mw-api-ext.eqiad.main-68b59fcc8c-8drc5"} (17685ms)
Aha. I think it's trying to upload it to wikidata, not to commons? Is what it sounds like? I might have configured something wrong?
I'm still puzzled by the fact that you were able to create a schema with media entities in it, with Wikidata as target instance. That should not normally be able to happen. When I create a schema on a project with Wikidata selected as Wikibase instance, it only lets me add items in the schema, not media files. Do you have any tips how we could reproduce your Wikidata schema with media entities? Did you follow a particular tutorial?
I noticed when I tried to reconcile the media files, it only offered wikidata, so I manually added the commons entity api url. So this is what allowed me to reconcile the files against commons, but then because the "main" wikibase was wikidata, it still tried to upload to wikidata even though the column was reconciled against commons. I think!
I was approximately following Commons:OpenRefine/Uploading_files_with_OpenRefine but I have been known to not follow directions exactly.