Thread:Project:Current issues/Error on 'mwlib' server

Hi,

Does anybody knows this issue?

When converting a page to PDF, I have an error in the mwlib server.

RuntimeError: RuntimeError: command failed with returncode 256: so with the results is this one below: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here's my setup: MediaWiki	1.26alpha Collection	1.7.0	GPL-2.0+	Create books

My config: require_once "$IP/extensions/Collection/Collection.php";

$wgEnableAPI = true;

$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;

$wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;

$wgCollectionFormats = array(   'rl' => 'PDF',    'odf' => 'ODT', );

$wgCollectionMWServeURL = "http://hc.dev:8899/";

$wgCollectionMWServeCredentials = ' : ';

$wgCollectionMaxArticles = 150;

$wgCollectionArticleNamespaces = array(     NS_MAIN,      NS_TALK,      NS_USER,      NS_USER_TALK,      NS_PROJECT,      NS_PROJECT_TALK,      NS_MEDIAWIKI,      NS_MEDIAWIKI_TALK,      NS_CATEGORY,      100,      101,      102,      103,      104,      105,      106,      107,      108,      109,      110,      111 );

Complete logs:

256 1.30313515663 ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--username', 'Ace-hotcopper', '--password', '{O MITTED}'] 1% /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock import gevent, gevent.pool, gevent.coros, gevent.event /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url') if l.get('mw_license_url'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text') if l.get('mw_rights_text'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page') if l.get('mw_rights_page'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url') if l.get('mw_rights_url'): Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run result = self._run(*self.args, **self.kwargs) File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run api = self.get_api File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api api.login(self.username, self.password, self.domain) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login res = self._post(**args) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post res = loads(self._fetch(req)) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads return json.loads(s) File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end) JSONDecodeError: Expecting value: line 1 column 1 (char 0) >> failed with JSONDecodeError

creating nuwiki in u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki' removing tmpdir u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe' memory used: res=20.4 virt=390.9 1% error Traceback (most recent call last): File "/usr/bin/mw-zip", line 9, in    load_entry_point('mwlib==0.15.15', 'console_scripts', 'mw-zip') File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki pool.join(raise_error=True) File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join raise greenlet.exception simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

error: command failed with returncode 256: ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--username', 'Ace-hotc opper', '--password', '{OMITTED}'] Last Output: 1% /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock import gevent, gevent.pool, gevent.coros, gevent.event /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url') if l.get('mw_license_url'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text') if l.get('mw_rights_text'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page') if l.get('mw_rights_page'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url') if l.get('mw_rights_url'): Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run result = self._run(*self.args, **self.kwargs) File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run api = self.get_api File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api api.login(self.username, self.password, self.domain) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login res = self._post(**args) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post res = loads(self._fetch(req)) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads return json.loads(s) File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end) JSONDecodeError: Expecting value: line 1 column 1 (char 0) >> failed with JSONDecodeError

creating nuwiki in u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki' removing tmpdir u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe' memory used: res=20.4 virt=390.9 1% error Traceback (most recent call last): File "/usr/bin/mw-zip", line 9, in        load_entry_point('mwlib==0.15.15', 'console_scripts', 'mw-zip') File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki pool.join(raise_error=True) File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join raise greenlet.exception simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

error finish: 78a10694db6e0745:makezip: 'RuntimeError: command failed with returncode 256: [\'mw-zip\', \'-o\', \'/home/vagrant/cache/78/78a10694db6e0745/collection.zip\', \'-m\', \'/home/vagrant/cache/78/78a10694db6e0745/metabook.json\', \'--status\', \'qserve://localhost:14311/78a10694db6e0745:mak ezip\', \'--config\', \'http://hc.dev/w\', \'--username\', \'Ace-hotcopper\', \'--password\', \'{OMITTED}\']\nLast Output:\n   1%  /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock\n      import gevent, gevent.pool, gevent.coro s, gevent.event\n   /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get(\'mw_license_url\')\n      if l.get(\'mw_license_url\'):\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get(\'mw_rights_text\')\n if l.get(\'mw_rights_text\'):\n   /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get(\'mw_rights_page\')\n      if l.get(\'mw_rights_page\'):\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get(\ 'mw_rights_url\')\n      if l.get(\'mw_rights_url\'):\n    Traceback (most recent call last):\n      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run\n        result = self._run(*self.args, **self.kwargs)\n      File "/usr/lib64/python2 .6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run\n        api = self.get_api\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api\n        api.login(self.username, self.password, self.domain)\n      File "/usr/lib64/python2.6/site-packages/mw lib/net/sapi.py", line 194, in login\n       res = self._post(**args)\n      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post\n        res = loads(self._fetch(req))\n      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads\n        return j son.loads(s)\n      File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads\n        return _default_decoder.decode(s)\n      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode\n        obj, end = self.raw_decode(s)\n      File "/usr/lib 64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode\n       return self.scan_once(s, idx=_w(s, idx).end)\n    JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n    >> failed with JSONDecodeError\n    \n    creating nuwiki in u\'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki\'\n    removing tmpdir u\'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe\'\n    memory used: res=20.4 virt=390.9\n    1% error Traceback (most recent call last ):\n      File "/usr/bin/mw-zip", line 9, in \n        load_entry_point(\'mwlib==0.15.15\', \'console_scripts\', \'mw-zip\')\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main\n        make_zip(output, options, env.metabook, podclient=podclient, stat us=status)\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip\n        make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_n uwiki\n       pool.join(raise_error=True)\n      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join\n        raise greenlet.exception\n    simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n     in function syste m, file /usr/lib64/python2.6/site-packages/mwlib/nslave.py, line 64' error: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--userna me', 'Ace-hotcopper', '--password', '{OMITTED}'] Last Output: 1% /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock import gevent, gevent.pool, gevent.coros, gevent.event /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url') if l.get('mw_license_url'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text') if l.get('mw_rights_text'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page') if l.get('mw_rights_page'): /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url') if l.get('mw_rights_url'): Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run result = self._run(*self.args, **self.kwargs) File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run api = self.get_api File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api api.login(self.username, self.password, self.domain) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login res = self._post(**args) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post res = loads(self._fetch(req)) File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads return json.loads(s) File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end) JSONDecodeError: Expecting value: line 1 column 1 (char 0) >> failed with JSONDecodeError

Any help is appreciated.

Kind Regards, Ace