Page MenuHomePhabricator
Paste P2904

Unexpected offset before chunk-too-small error
ActivePublic

Authored by zhuyifei1999 on Apr 14 2016, 11:59 AM.
Tags
None
Referenced Files
F3872797: Unexpected offset before chunk-too-small error
Apr 14 2016, 11:59 AM
Subscribers
$ python debug.py -log -verbose -debug
WARNING: /usr/local/lib/python2.7/dist-packages/pywikibot/version.py:101: DeprecationWarning: pywikibot.version.getversion_svn is deprecated; use getversion_svn_setuptools instead.
(tag, rev, date, hsh) = vcs_func(_program_dir)
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.
tag, rev, date = svn_rev_info(_program_dir)
Pywikibot rc80c9e184da41f3a73769e71d4a6b19d62078229
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2]
Found 1 commons:commons processes running, including this one.
Sleeping for 9.8 seconds, 2016-04-14 11:53:42
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Submitting unthrottled action 'upload'.
Old offset: 121634816; Returned offset: 125164627; Chunk size: 3529812
WARNING: Unexpected offset.
Submitting unthrottled action 'upload'.
WARNING: API error chunk-too-small: Minimum chunk size is 1024 bytes for non-final chunks
API Error: query=
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']}"
response=
{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'}}
Traceback (most recent call last):
File "debug.py", line 38, in <module>
site.upload(page, source_filename=filename, comment=comment, text=filedesc, chunk_size=chunked, ignore_warnings=['exists-normalized'])
File "/usr/local/lib/python2.7/dist-packages/pywikibot/tools/__init__.py", line 1370, in wrapper
return obj(*__args, **__kw)
File "/usr/local/lib/python2.7/dist-packages/pywikibot/site.py", line 5871, in upload
raise error
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]
Dropped throttle(s).
<class 'pywikibot.data.api.APIError'>
CRITICAL: Closing network session.
Network session closed.