The file in question: https://v2c.wmflabs.org/temp.webm, using pywikibot chunked uploading (stash=true, async=false):
| 1 | $ python debug.py -log -verbose -debug |
|---|---|
| 2 | WARNING: /usr/local/lib/python2.7/dist-packages/pywikibot/version.py:101: DeprecationWarning: pywikibot.version.getversion_svn is deprecated; use getversion_svn_setuptools instead. |
| 3 | (tag, rev, date, hsh) = vcs_func(_program_dir) |
| 4 | |
| 5 | WARNING: /usr/local/lib/python2.7/dist-packages/pywikibot/version.py:252: DeprecationWarning: pywikibot.version.svn_rev_info is deprecated; use getversion_svn_setuptools instead. |
| 6 | tag, rev, date = svn_rev_info(_program_dir) |
| 7 | |
| 8 | Pywikibot rc80c9e184da41f3a73769e71d4a6b19d62078229 |
| 9 | Python 2.7.9 (default, Mar 1 2015, 12:57:24) |
| 10 | [GCC 4.9.2] |
| 11 | |
| 12 | Found 1 commons:commons processes running, including this one. |
| 13 | |
| 14 | Sleeping for 9.8 seconds, 2016-04-14 11:53:42 |
| 15 | Submitting unthrottled action 'upload'. |
| 16 | Submitting unthrottled action 'upload'. |
| 17 | Submitting unthrottled action 'upload'. |
| 18 | Submitting unthrottled action 'upload'. |
| 19 | Submitting unthrottled action 'upload'. |
| 20 | Submitting unthrottled action 'upload'. |
| 21 | Submitting unthrottled action 'upload'. |
| 22 | Submitting unthrottled action 'upload'. |
| 23 | Submitting unthrottled action 'upload'. |
| 24 | Submitting unthrottled action 'upload'. |
| 25 | Submitting unthrottled action 'upload'. |
| 26 | Submitting unthrottled action 'upload'. |
| 27 | Submitting unthrottled action 'upload'. |
| 28 | Submitting unthrottled action 'upload'. |
| 29 | Submitting unthrottled action 'upload'. |
| 30 | Submitting unthrottled action 'upload'. |
| 31 | Submitting unthrottled action 'upload'. |
| 32 | Submitting unthrottled action 'upload'. |
| 33 | Submitting unthrottled action 'upload'. |
| 34 | Submitting unthrottled action 'upload'. |
| 35 | Submitting unthrottled action 'upload'. |
| 36 | Submitting unthrottled action 'upload'. |
| 37 | Submitting unthrottled action 'upload'. |
| 38 | Submitting unthrottled action 'upload'. |
| 39 | Submitting unthrottled action 'upload'. |
| 40 | Submitting unthrottled action 'upload'. |
| 41 | Submitting unthrottled action 'upload'. |
| 42 | Submitting unthrottled action 'upload'. |
| 43 | Submitting unthrottled action 'upload'. |
| 44 | Old offset: 121634816; Returned offset: 125164627; Chunk size: 3529812 |
| 45 | WARNING: Unexpected offset. |
| 46 | Submitting unthrottled action 'upload'. |
| 47 | WARNING: API error chunk-too-small: Minimum chunk size is 1024 bytes for non-final chunks |
| 48 | API Error: query= |
| 49 | u"{u'ignorewarnings': [False], u'maxlag': ['5'], u'format': [u'json'], u'filekey': [u'13y76lyal8og.e9uyal.1803702.webm'], u'stash': [True], u'filename': [u'Bernie Supporters at the Bernie Sanders rally in Philadelphia, PA, April 2016.webm'], u'assert': [u'user'], u'token': [u'0d2cab<REDACTED>570f84c6+\\\\'], u'filesize': [125164628], u'offset': [125164627], u'action': [u'upload']}" |
| 50 | response= |
| 51 | {u'servedby': u'mw1206', u'error': {u'info': u'Minimum chunk size is 1024 bytes for non-final chunks', u'code': u'chunk-too-small', u'help': u'See https://commons.wikimedia.org/w/api.php for API usage'}} |
| 52 | Traceback (most recent call last): |
| 53 | File "debug.py", line 38, in <module> |
| 54 | site.upload(page, source_filename=filename, comment=comment, text=filedesc, chunk_size=chunked, ignore_warnings=['exists-normalized']) |
| 55 | File "/usr/local/lib/python2.7/dist-packages/pywikibot/tools/__init__.py", line 1370, in wrapper |
| 56 | return obj(*__args, **__kw) |
| 57 | File "/usr/local/lib/python2.7/dist-packages/pywikibot/site.py", line 5871, in upload |
| 58 | raise error |
| 59 | pywikibot.data.api.APIError: chunk-too-small: Minimum chunk size is 1024 bytes for non-final chunks [help:See https://commons.wikimedia.org/w/api.php for API usage] |
| 60 | Dropped throttle(s). |
| 61 | <class 'pywikibot.data.api.APIError'> |
| 62 | CRITICAL: Closing network session. |
| 63 | Network session closed. |
| 1 | 2016-04-14 11:55:26 api.py, 1980 in submit: DEBUG API response received from commons:commons: |
|---|---|
| 2 | {"upload":{"result":"Continue","offset":125164627,"filekey":"13y76lyal8og.e9uyal.1803702.webm"}} |
| 3 | 2016-04-14 11:55:26 site.py, 5896 in upload: VERBOSE Old offset: 121634816; Returned offset: 125164627; Chunk size: 3529812 |
| 4 | 2016-04-14 11:55:26 site.py, 5897 in upload: WARNING Unexpected offset. |
| 5 | 2016-04-14 11:55:26 api.py, 1473 in __init__: DEBUG Adding user assertion |
| 6 | 2016-04-14 11:55:26 api.py, 1925 in submit: VERBOSE Submitting unthrottled action 'upload'. |
| 7 | 2016-04-14 11:55:26 api.py, 1947 in submit: DEBUG API request to commons:commons (uses get: False): |
| 8 | Headers: {'Content-Type': u'multipart/form-data; boundary="===============6100145239360526832=="', 'MIME-Version': '1.0'} |
| 9 | URI: u'/w/api.php' |
| 10 | Body: '--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="maxlag"\n\n5\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="format"\n\njson\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="filekey"\n\n13y76lyal8og.e9uyal.1803702.webm\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="stash"\n\n\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="filename"\n\nBernie Supporters at the Bernie Sanders rally in Philadelphia, PA, April 2016.webm\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="assert"\n\nuser\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="token"\n\n0d2ca<REDACTED>84c6+\\\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="filesize"\n\n125164628\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="offset"\n\n125164627\n--===============6100145239360526832==\nContent-Type: text/plain\nMIME-Version: 1.0\nContent-disposition: form-data; name="action"\n\nupload\n--===============6100145239360526832==\nContent-Type: application/octet-stream\nMIME-Version: 1.0\nContent-disposition: form-data; name="chunk"; filename="FAKE-NAME"\nContent-Transfer-Encoding: binary\n\n\r\n--===============6100145239360526832==--\n' |
| 11 | 2016-04-14 11:55:26 api.py, 1980 in submit: DEBUG API response received from commons:commons: |
| 12 | {"servedby":"mw1206","error":{"code":"chunk-too-small","info":"Minimum chunk size is 1024 bytes for non-final chunks","*":"See https://commons.wikimedia.org/w/api.php for API usage"}} |
| 13 | 2016-04-14 11:55:26 api.py, 2087 in submit: WARNING API error chunk-too-small: Minimum chunk size is 1024 bytes for non-final chunks |
| 14 | 2016-04-14 11:55:26 api.py, 2177 in submit: VERBOSE API Error: query= |
| 15 | u"{u'ignorewarnings': [False], u'maxlag': ['5'], u'format': [u'json'], u'filekey': [u'13y76lyal8og.e9uyal.1803702.webm'], u'stash': [True], u'filename': [u'Bernie Supporters at the Bernie Sanders rally in Philadelphia, PA, April 2016.webm'], u'assert': [u'user'], u'token': [u'0d2ca<REDACTED>84c6+\\\\'], u'filesize': [125164628], u'offset': [125164627], u'action': [u'upload']}" |
| 16 | 2016-04-14 11:55:26 api.py, 2179 in submit: VERBOSE response= |
| 17 | {u'servedby': u'mw1206', u'error': {u'info': u'Minimum chunk size is 1024 bytes for non-final chunks', u'code': u'chunk-too-small', u'help': u'See https://commons.wikimedia.org/w/api.php for API usage'}} |
| 18 | 2016-04-14 11:55:26 __init__.py, 886 in _flush: DEBUG _flush() called |
| 19 | 2016-04-14 11:55:26 __init__.py, 921 in _flush: VERBOSE Dropped throttle(s). |
| 20 | 2016-04-14 11:55:26 http.py, 97 in _flush: CRITICAL Closing network session. |
| 21 | 2016-04-14 11:55:26 http.py, 101 in _flush: VERBOSE Network session closed. |