Render server error

472 views
Skip to first unread message

Vijju

unread,
Dec 1, 2011, 5:50:00 AM12/1/11
to mwlib
Hi,

I have installed Collection extension on our media wiki portal. I get
below error message while i export a book in PDF.

Please help!!!


An error occured on the render server: RuntimeError: RuntimeError:
command failed with returncode 256: ['mw-zip', '-o', u'cache/0a/
0a8642c481e79fb9/collection.zip', '-m', u'cache/0a/0a8642c481e79fb9/
metabook.json', '--status', u'qserve://localhost:
14311/0a8642c481e79fb9:makezip', '--template-blacklist',
u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category',
u'Exclude in print', '--print-template-prefix', u'Print', '--print-
template-pattern', u'$1/Print', '--username', u'username', '--
password', '{OMITTED}', '--domain', u'thehackettgroup'] Last Output:
2011-12-01T10:24:11 mwlib.options.warn >> Both --print-template-
pattern and --print-template-prefix (deprecated) specified. Using --
print-template-pattern only. 1% creating nuwiki in u'cache/0a/
0a8642c481e79fb9/tmptiTpt0/nuwiki' removing tmpdir u'cache/0a/
0a8642c481e79fb9/tmptiTpt0' memory used: res=15.6 virt=120.3 1% error
Traceback (most recent call last): File "/home/pp/local/bin/mw-zip",
line 9, in <module> load_entry_point('mwlib==0.13.0',
'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 0x2a3fcd0>, 'content_type':
u'text/x-wiki', 'title': u'Main Page', 'timestamp': u'1305146262',
'type': 'article', 'revision': u'4214'}>) in function system, file ./
bin/nslave.py, line 37 in function qaddw, file /home/pp/local/lib/
python2.7/site-packages/qs/slave.py, line 66

Ralf Schmitt

unread,
Dec 1, 2011, 6:11:53 AM12/1/11
to mw...@googlegroups.com
Vijju <vijaya...@gmail.com> writes:

> Hi,
>
> I have installed Collection extension on our media wiki portal. I get
> below error message while i export a book in PDF.

we've had this error reported multiple times, but I can't reproduce it.
Can you try setting your $wgServer variable? Can you send me your
LocalConfig.php and the exact mediawiki version, OS, OS version that
you're running?

--
Cheers
Ralf

Vijay Arora

unread,
Dec 2, 2011, 1:29:41 AM12/2/11
to mw...@googlegroups.com
Hi Ralf,

Thank you for the respose. I have attached LocalSettings.php file for you and find below required details:

OS & OS Version: Linux 2.6.18-92.el5

Media Wiki Version Details:

ProductVersion
MediaWiki1.17.0
PHP 5.3.8 (apache2handler)
MySQL5.0.45-log

Please let me know if you need any other details.

Thanks,
Vijay



--
You received this message because you are subscribed to the Google Groups "mwlib" group.
To post to this group, send email to mw...@googlegroups.com.
To unsubscribe from this group, send email to mwlib+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.


LocalSettings.php

Ralf Schmitt

unread,
Dec 2, 2011, 10:46:50 AM12/2/11
to mw...@googlegroups.com
Vijay Arora <vijaya...@gmail.com> writes:

> Hi Ralf,
>
> Thank you for the respose. I have attached LocalSettings.php file for you
> and find below required details:

Can you try setting $wgServer (see
http://www.mediawiki.org/wiki/Manual:$wgServer) ?

Your LocalSettings.php contains passwords. You may want to change them.

--
Cheers
Ralf

Vijay Arora

unread,
Dec 5, 2011, 1:48:50 AM12/5/11
to mw...@googlegroups.com
Okay. I will try setting up $sgServer variable today and will see how it goes.

Thank you,
Vijay


--
Cheers
Ralf

Vijay Arora

unread,
Dec 5, 2011, 2:36:22 AM12/5/11
to mw...@googlegroups.com
Hi Ralf,

As per your advise, I have added $wgServer variable to my LocalSettings.php file and removed passwords field as well but it did not help.

Please find attached LocalSettings.php file for your review here.

Thanks,
Vijay


--
Cheers
Ralf

LocalSettings.php

Ralf Schmitt

unread,
Dec 5, 2011, 10:58:12 AM12/5/11
to mw...@googlegroups.com
Vijay Arora <vijaya...@gmail.com> writes:

> Hi Ralf,
>


> As per your advise, I have added $wgServer variable to my LocalSettings.php
> file and removed passwords field as well but it did not help.

You sent your passwords to a *public* list. You may want to change them.

>
> Please find attached LocalSettings.php file for your review here.

Can you add something like
$wgServer = "http://example.com/"
instead? What is the error you get then?

Vijay Arora

unread,
Dec 7, 2011, 1:22:34 AM12/7/11
to mw...@googlegroups.com
Hi Ralf,

I have set up $wgServer = 'http://wikidev.thehackettgroup.com';

But i still get the same error message, I have attached the LocalSettings.php file here

An error occured on the render server: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'cache/0f/0f8d62cb35a1f2d7/collection.zip', '-m', u'cache/0f/0f8d62cb35a1f2d7/metabook.json', '--status', u'qserve://localhost:14311/0f8d62cb35a1f2d7:makezip', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', u'Exclude in print', '--print-template-prefix', u'Print', '--print-template-pattern', u'$1/Print', '--username', u'username', '--password', '{OMITTED}', '--domain', u'thehackettgroup'] Last Output: 2011-12-07T06:20:48 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. 1% creating nuwiki in u'cache/0f/0f8d62cb35a1f2d7/tmpUjVw7J/nuwiki' removing tmpdir u'cache/0f/0f8d62cb35a1f2d7/tmpUjVw7J' memory used: res=15.6 virt=120.3 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.13.0', '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 0xc61cd0>, 'title': u'Main Page', 'url': u'http://wikidev.thehackettgroup.com/index.php/Main_Page', 'timestamp': u'1305146262', 'currentVersion': 1, 'content_type': u'text/x-wiki', 'revision': u'4214', 'type': 'article', 'latest': u'4214'}>) in function system, file ./bin/nslave.py, line 37 in function qaddw, file /home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66

LocalSettings.php

Ralf Schmitt

unread,
Dec 8, 2011, 4:55:55 AM12/8/11
to mw...@googlegroups.com
Vijay Arora <vijaya...@gmail.com> writes:

> Hi Ralf,
>


> I have set up $wgServer = 'http://wikidev.thehackettgroup.com';
>
> But i still get the same error message, I have attached the
> LocalSettings.php file here

it contains

,----
| /** URL of the server. It will be automatically built including https mode */
| $wgServer = 'http://wikidev.thehackettgroup.com';
| ...
| $wgServer = $wgProto.'://' . $wgServerName;
| # If the port is a non-standard one, add it to the URL
| if( isset( $_SERVER['SERVER_PORT'] )
| && !strpos( $wgServerName, ':' )
| && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
| || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
|
| $wgServer .= ":" . $_SERVER['SERVER_PORT'];
| }
`----

Can you please just set $wgServer once?

Vijay Arora

unread,
Dec 9, 2011, 1:19:32 AM12/9/11
to mw...@googlegroups.com
Hi Ralf,

I tried with only $wgServer variable but still the same error message.

Please advise.

Regards,
Vijay

Ralf Schmitt

unread,
Dec 27, 2011, 7:45:08 AM12/27/11
to mw...@googlegroups.com
Vijay Arora <vijaya...@gmail.com> writes:

> Hi Ralf,
>


> I tried with only $wgServer variable but still the same error message.
>

this is now being tracked in
https://github.com/pediapress/Collection/issues/1

Maaike

unread,
Jan 4, 2012, 6:55:39 AM1/4/12
to mw...@googlegroups.com
I have kind of the same error, but not using my wiki in a toplevel domain.

The error I get:

De renderserver gaf de volgende foutmelding: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', u'/home/pp/cache/13/13e021c3e07a9d77/collection.zip', '-m', u'/home/pp/cache/13/13e021c3e07a9d77/metabook.json', '--status', u'qserve://localhost:14311/13e021c3e07a9d77:makezip', '--config', u'http://jcz.nl:8080/maaike/qvn', '--template-blacklist', u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', u'Weglaten bij afdrukken', '--print-template-prefix', u'Afdruk', '--print-template-pattern', u'$1/Afdrukken', '--username', u'Maaike', '--password', '{OMITTED}'] Last Output: 2012-01-04T11:39:35 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/13/13e021c3e07a9d77/tmpSFzNux/nuwiki' 2012-01-04T11:39:36 mwlib.utils.info >> fetching u'null' Traceback (most recent call last): File "/home/pp/local/lib/python2.7/site-packages/gevent/greenlet.py", line 402, in run result = self._run(*self.args, **self.kwargs) File "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", line 116, in run self.licenses = get_licenses(self.metabook) File "/home/pp/local/lib/python2.7/site-packages/mwlib/metabook.py", line 231, in get_licenses expected_content_type='text/x-wiki', File "/home/pp/local/lib/python2.7/site-packages/mwlib/utils.py", line 190, in fetch_url result = opener.open(url, post_data) File "/home/pp/local/lib/python2.7/urllib2.py", line 386, in open protocol = req.get_type() File "/home/pp/local/lib/python2.7/urllib2.py", line 248, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type: null <Greenlet at 0x2ba6550: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x2bf7a50>>> failed with ValueError removing tmpdir u'/home/pp/cache/13/13e021c3e07a9d77/tmpSFzNux' memory used: res=16.5 virt=128.8 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 9, in <module> load_entry_point('mwlib==0.13.0', '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 193, in make_nuwiki pool.join(raise_error=True) File "/home/pp/local/lib/python2.7/site-packages/gevent/pool.py", line 105, in join raise greenlet.exception ValueError: unknown url type: null 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


It's a prive wiki, but setting the $wgGroupPermissions['*']['read'] to true won't work.

Here is my Localsettings.php:

[code]
<?php
# This file was automatically generated by the MediaWiki 1.18.0
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
        exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename      = "QuoVadis Weetjes";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath       = "/maaike/qvn";
$wgScriptExtension  = ".php";

## The protocol and server name to use in fully-qualified URLs
$wgServer           = "http://jcz.nl:8080";

## The relative URL path to the skins directory
$wgStylePath        = "$wgScriptPath/skins";

## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo             = "$wgStylePath/common/images/logo.png";
$wgFavicon          = "$wgScriptPath/favicon.ico";
## UPO means: this is also a user preference option

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "b...@bla.nl";
$wgPasswordSender   = "b...@bla.nl";

$wgEnotifUserTalk      = true; # UPO
$wgEnotifWatchlist     = true; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "bla";
$wgDBname           = "bla";
$wgDBuser           = "bla";
$wgDBpassword       = "bla";

# MySQL specific settings
$wgDBprefix         = "";

# MySQL table options to use during installation or update
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType    = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons  = false;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "nl";

$wgSecretKey = "shouldyouknowthis?";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "shouldyouknowthis?";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl  = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

# Query string length limit for ResourceLoader. You should only set this if
# your web server has a query string length limit (then set it to that limit),
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
# that value)
$wgResourceLoaderMaxQueryLength = -1;

# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;

# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
require_once( "$IP/extensions/Renameuser/Renameuser.php" );

$wgUseAjax = true;
require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/";
$wgCollectionMWServeCert = "null";
$wgEnableWriteAPI = true;
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['autoconfirmed']['collectionsaveascommunitypage'] = true;
$wgCollectionMWServeCredentials = "Maaike:6ho7urfFtq";
$wgCollectionFormats = array(
           'rl' => 'PDF',
           'odf' => 'ODT',
           'xhtml' => 'XHTML',
       );
$wgCollectionArticleNamespaces = array(
      NS_MAIN,
      NS_TALK,
      NS_USER,
      NS_USER_TALK,
      NS_PROJECT,
      NS_PROJECT_TALK,
      NS_MEDIAWIKI,
      NS_MEDIAWIKI_TALK,
      100,
      101,
      102,
      103,
      104,
      105,
      106,
      107,
      108,
      109,
      110,
      111,
    );
$wgCommunityCollectionNamespace = "NS_PROJECT";
$wgCollectionMaxArticles = "500";
$wgCollectionLicenseName = "null";
$wgCollectionLicenseURL = "null";
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['sysop']['collectionsaveascommunitypage'] = true;

require_once( "$IP/extensions/PdfBook/PdfBook.php" );

# End of automatically generated settings.
# Add more configuration options below.
[/code]

I don't have mwlib installed on my own server, since I'm using the pediapress server. Is that ok?

Can somebody maybe help me with this error?

Koba Pierre KOUNDE

unread,
Jan 21, 2012, 5:18:30 AM1/21/12
to mwlib
Hello,

I had this kind of problem . You probably use a wiki locked to
anonymous users. As a result, the site creator PDF (PediaPress) cannot
connect to your wiki to collect information and send the PDF. For make
this to work, you must set a specific login and password for
PediaPress, for example: $ wgCollectionMWServeCredentials =
"PediaPress: jojo#1" and also create the account on your wiki to the
site PediaPress can connect to it with the same data. The domain name
is unnecessary. Excuse my english
> #http://www.mediawiki.org/wiki/Manual:Configuration_settings
>
> # Protect against web entry
> if ( !defined( 'MEDIAWIKI' ) ) {
>         exit;
>
> }
>
> ## Uncomment this to disable output compression
> # $wgDisableOutputCompression = true;
>
> $wgSitename      = "QuoVadis Weetjes";
>
> ## The URL base path to the directory containing the wiki;
> ## defaults for all runtime URL paths are based off of this.
> ## For more information on customizing the URLs please see:
> ##http://www.mediawiki.org/wiki/Manual:Short_URL
> # InstantCommons allows wiki to use images fromhttp://commons.wikimedia.org
Reply all
Reply to author
Forward
0 new messages