Last modified: 2013-10-08 12:13:41 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 T40187, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38187 - RuntimeError: command failed with returncode 256
RuntimeError: command failed with returncode 256
Status: RESOLVED DUPLICATE of bug 37868
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
REL1_19-branch
PC Linux
: Normal major with 1 vote (vote)
: MW 1.19 version
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-05 06:18 UTC by Artem A Klevtsov
Modified: 2013-10-08 12:13 UTC (History)
4 users (show)

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


Attachments

Description Artem A Klevtsov 2012-07-05 06:18:27 UTC
I installded Collection extention with instruction. Put followin in the localSettings.php
 require_once( "$IP/extensions/Collection/Collection.php" );
I can't use mvlib on my server and i want use PediaPress.

When i try Download As PDF, i get error:
<code>RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'/home/pp/cache/ce/ce21a325a1031a95/collection.zip', '-m', u'/home/pp/cache/ce/ce21a325a1031a95/metabook.json', '--status', u'qserve://localhost:14311/ce21a325a1031a95:makezip', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', u'\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0435\u0447\u0430\u0442\u0438', '--print-template-prefix', u'\u041f\u0435\u0447\u0430\u0442\u044c', '--print-template-pattern', u'$1/\u041f\u0435\u0447\u0430\u0442\u044c'] Last Output: 2012-04-20T22:43:24 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. 1% creating nuwiki in u'/home/pp/cache/ce/ce21a325a1031a95/tmpkvsX2V/nuwiki' removing tmpdir u'/home/pp/cache/ce/ce21a325a1031a95/tmpkvsX2V' memory used: res=15.7 virt=122.5 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')() File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 151, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", line 152, in make_nuwiki assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" % (x.wikiident, x) AssertionError: no wikiconf for None (<article {'_env': <mwlib.wiki.Environment object at 0x1666250>, 'content_type': u'text/x-wiki', 'title': u'\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430', 'timestamp': u'1326466208', 'type': 'article', 'revision': u'2311'}>) in function system, file ./bin/nslave.py, line 63 in function qaddw, file /home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66</code>

Note: $wgScriptPath       = ""; (may be it help)
Comment 1 josmart 2012-09-07 08:01:02 UTC
I have the same problem. New installation of MW 1.19, no firewall.
Collection version 1.5 (offered for MW 1.19). I also tried recent version 1.6.1 with the same result.

I have a render server installed, which works well with my other wiki (MW 1.17).
This server, and the render server of Pediapress, don't work with MW 1.19.
Comment 2 Ralf Schmitt 2012-09-07 10:09:08 UTC
see https://github.com/pediapress/Collection/issues/1 for more information.
Comment 3 josmart 2012-09-07 10:57:10 UTC
Thanks a lot. I tried this yesterday with no success. But I had a recommended version of Collection for MW 1.19.

Now with Collection 1.6.1 following workaround works:

I replaced Collection_body.php text 
"'base_url' => wfExpandUrl( $wgScriptPath, PROTO_CURRENT ),"
with
"'base_url' => 'mywikiurl',".

I have one more issue, rendered PDF contains only references and licence, article's text is missing. But it's another story.
Comment 4 Artem A Klevtsov 2012-09-07 11:41:56 UTC
@Ralf Schmitt: workground from there not work for me.
Comment 5 josmart 2012-09-07 11:51:52 UTC
My working configuration: MW1.19 + Collection 1.6.1

LocalSettings.php:
$wgEnableAPI = true;
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/";

Collection.body.php: 
base_url replaced (3 occurences) with my wikiurl (with http and no slash at the end).
Comment 6 Artem A Klevtsov 2012-09-07 12:40:43 UTC
@josmart: confrimed, you workgrond works fine.
Comment 7 Marcin Cieślak 2013-10-03 23:12:49 UTC
What is your $wgScriptPath? If empty, or something without a slash, it is a duplicate of bug 37868
Comment 8 josmart 2013-10-04 06:45:22 UTC
You're right, my $wgScriptPath = "". But it works ok now with a corrected  Collection.body.php.
Comment 9 Andre Klapper 2013-10-08 12:13:41 UTC

*** This bug has been marked as a duplicate of bug 37868 ***

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


Navigation
Links