Page MenuHomePhabricator

PDF export fails on test.wikipedia.org
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: major

Details

Reference
bz30184
TitleReferenceAuthorSource BranchDest Branch
perform-release: Add GitLab supportrepos/releng/scap!16dancydancy-review-scap-release-9.99.9master2
perform-release: Add GitLab supportrepos/releng/scap!12dancyreview-add-gitlab-support-to-release-scriptmaster
Replace some references to gerrit with gitlabrepos/releng/scap!10dancyreview-gerrit-to-gitlabmaster
bin/install_local_version.sh: Update verify_source_dir for GitLabrepos/releng/scap!9dancyreview-T321847-1master
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:49 PM
bzimport added a project: Collection.
bzimport set Reference to bz30184.

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...?

Categorising as major issue. If not resolved, this will cause Collection to stop working when protocol relative URLs are deployed on Wikimedia wikis.

ralf_wikimedia wrote:

(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)

Hopefully fixed in r94376, will find out when I deploy it to testwiki on Monday.

"Download as PDF" works for me on that page after deploying r94376. Closing FIXED.