Last modified: 2011-08-15 22:57:25 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 T32184, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30184 - PDF export fails on test.wikipedia.org
PDF export fails on test.wikipedia.org
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: PediaPress Development Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-02 12:41 UTC by Brion Vibber
Modified: 2011-08-15 22:57 UTC (History)
5 users (show)

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


Attachments

Description Brion Vibber 2011-08-02 12:41:20 UTC
Tested from http://test.wikipedia.org/w/index.php?oldid=66359

Render server error

An error occured on the render server: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 'cache/82/8252f80fdaa1653c/collection.zip', '-m', 'cache/82/8252f80fdaa1653c/metabook.json', '--status', 'qserve://localhost:14311/8252f80fdaa1653c:makezip', '--config', '//test.wikipedia.org/w', '--template-blacklist', 'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', 'Exclude in print', '--print-template-prefix', 'Print', '--print-template-pattern', '$1/Print'] Last Output: 2011-08-02T12:36:58 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.12.14', 'console_scripts', 'mw-zip')() File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/apps/buildzip.py", line 147, in main env = parser.makewiki() File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/options.py", line 143, in makewiki env = wiki.makewiki(**kw) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/wiki.py", line 251, in makewiki res = _makewiki(config, metabook=metabook, **kw) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/wiki.py", line 225, in _makewiki raise RuntimeError("could not read config file %r" % (conf,)) RuntimeError: could not read config file u'//test.wikipedia.org/w' in function system, file /home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/EGG-INFO/scripts/nslave.py, line 37 in function qaddw, file /home/pp/local/lib/python2.6/site-packages/qs/slave.py, line 66


and for http://test.wikipedia.org/wiki/Konrad_Adenauer

An error occured on the render server: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 'cache/cc/ccde90d3616605e0/collection.zip', '-m', 'cache/cc/ccde90d3616605e0/metabook.json', '--status', 'qserve://localhost:14311/ccde90d3616605e0:makezip', '--config', '//test.wikipedia.org/w', '--template-blacklist', 'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', 'Exclude in print', '--print-template-prefix', 'Print', '--print-template-pattern', '$1/Print'] Last Output: 2011-08-02T12:38:45 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.12.14', 'console_scripts', 'mw-zip')() File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/apps/buildzip.py", line 147, in main env = parser.makewiki() File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/options.py", line 143, in makewiki env = wiki.makewiki(**kw) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/wiki.py", line 251, in makewiki res = _makewiki(config, metabook=metabook, **kw) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/mwlib/wiki.py", line 225, in _makewiki raise RuntimeError("could not read config file %r" % (conf,)) RuntimeError: could not read config file u'//test.wikipedia.org/w' in function system, file /home/pp/local/lib/python2.6/site-packages/mwlib-0.12.14-py2.6-linux-x86_64.egg/EGG-INFO/scripts/nslave.py, line 37 in function qaddw, file /home/pp/local/lib/python2.6/site-packages/qs/slave.py, line 66
Comment 1 Brion Vibber 2011-08-02 12:45:15 UTC
Probably related to the protocol-relative URLs -- looks like the script isn't recognizing '//test.wikipedia.org/w' as a base source URL and is thinking it's a config file instead.

Tweaking Collection to use the full-full URL should fix it...?
Comment 2 Siebrand Mazeland 2011-08-03 08:08:08 UTC
Categorising as major issue. If not resolved, this will cause Collection to stop working when protocol relative URLs are deployed on Wikimedia wikis.
Comment 3 Ralf Schmitt 2011-08-09 13:16:38 UTC
(In reply to comment #1)
> Probably related to the protocol-relative URLs -- looks like the script isn't
> recognizing '//test.wikipedia.org/w' as a base source URL and is thinking it's
> a config file instead.

right. we need a http or https url.
 
> Tweaking Collection to use the full-full URL should fix it...?

yes. Can you please just fix it? (we currently even lack a svn account: jojo, who wrote the php parts, left pediapress)
Comment 4 Roan Kattouw 2011-08-12 20:01:12 UTC
Hopefully fixed in r94376, will find out when I deploy it to testwiki on Monday.
Comment 5 Roan Kattouw 2011-08-15 22:51:10 UTC
"Download as PDF" works for me on that page after deploying r94376. Closing FIXED.
Comment 6 Brion Vibber 2011-08-15 22:57:25 UTC
Yay thanks!

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


Navigation
Links