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
On 4 jan, 06:55, Maaike <[email protected]> wrote: > 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 = "[email protected]"; > $wgPasswordSender = "[email protected]"; > > $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 fromhttp://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? -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
