Hello,

could somebody give me an advise installing mw-render for an intranet
wiki?

The situation:
I set up on Ubuntu 10.04 with LAMP and Mediawiki, fresh install. I
want to install a renderserver on that box too, to run a wiki with pdf-
book-extension.
I sit behind an ISA-Proxy, that's why I took the box to my home, where
I could install following
http://edutechwiki.unige.ch/en/Mediawiki_collection_extension_installation#mwlib_installation_on_Ubuntu
via git successfully. ( Behind the proxy I don't get to port 9418)
I didn't test the render-server with direct access to the internet,
though.

Now, back behind the ISA-Proxy in the office again, I trie to setup
everything. But no luck.



It doesn't render anything, neither from 127.0.0.1 nor from the net.

I appended my LocalSettings.php to. Here are the relevant changes:

require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://127.0.0.1/mw-serve";;
$wgCollectionMWServeCredentials="administrator:<Password>:local";
$wgCollectionFormats = array( 'rl' => 'PDF', 'odf' => 'ODT', );

Wouldn't it be possible to put everything that's needed to install a
stable version of the render-server (excluded those things one could
get over normal repositories)
into a .tarball or something from witch one could install from behind
a ISA-Server?

I would really appreciate some help, because I don't have sound
knowlegde of Mediawiki & stuff.



Michael







Accessing a wiki in Internet with no success:


administra...@ubuntubox1004:/var/lib/mediawiki$ sudo mw-render --
config=http://de.wikipedia.org/wiki/Mama  --writer=odf --output=./
test.odt TEST
creating nuwiki in '/tmp/tmpY0DG5c/nuwiki'
retrying: could not fetch 'http://de.wikipedia.org/wiki/Mama/api.php?
action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|
namespacealiases|magicwords|rightsinfo&format=json'
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: exceptions.RuntimeError: could not get collection params
fatal: could not get collection params [[Failure instance: Traceback
(failure with no frames): <class
'twisted.internet.error.DNSLookupError'>: DNS lookup failed: address
'de.wikipedia.org' not found: [Errno -5] No address associated with
hostname.
]]
Traceback (most recent call last):
Failure: twisted.internet.error.DNSLookupError: DNS lookup failed:
address 'de.wikipedia.org' not found: [Errno -5] No address associated
with hostname.
removing tmpdir '/tmp/tmpY0DG5c'
Traceback (most recent call last):
  File "/usr/local/bin/mw-render", line 9, in <module>
    load_entry_point('mwlib==0.12.13', 'console_scripts', 'mw-render')
()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 214, in main
    return Main()()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 169, in __call__
    env = self.get_environment()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 101, in get_environment
    self.zip_filename = make_zip(output=self.options.keep_zip,
options=self.options, metabook=env.metabook, status=self.status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/buildzip.py", line 58, in make_zip
    make_nuwiki(fsdir, metabook=metabook, options=options,
podclient=podclient, status=status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/make_nuwiki.py", line 188, in make_nuwiki
    raise RuntimeError(str(val))
RuntimeError: [Failure instance: Traceback (failure with no frames):
<type 'exceptions.RuntimeError'>: could not get collection params
]





Accessing a local Mediawiki-Page.


administra...@ubuntubox1004:/var/lib/mediawiki$ mw-render --
config=http://127.0.0.1/mediawiki/index.php/Hauptseite --writer=odf --
output=./test.odt TEST
creating nuwiki in '/tmp/tmppbNz36/nuwiki'
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: exceptions.RuntimeError: could not get collection params
fatal: could not get collection params [[Failure instance: Traceback:
<type 'exceptions.ValueError'>: No JSON object could be decoded
/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-
i686.egg/twisted/web/client.py:175:handleResponse
/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-
i686.egg/twisted/web/client.py:340:page
/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:280:callback
/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:354:_startRunCallbacks
--- <exception caught here> ---
/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-
i686.egg/twisted/internet/defer.py:371:_runCallbacks
/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-linux-
i686.egg/mwlib/net/mwapi.py:436:done
/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-linux-
i686.egg/mwlib/net/mwapi.py:22:loads
/usr/lib/python2.6/json/__init__.py:307:loads
/usr/lib/python2.6/json/decoder.py:319:decode
/usr/lib/python2.6/json/decoder.py:338:raw_decode
]]
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-
linux-i686.egg/twisted/web/client.py", line 175, in handleResponse
    self.factory.page(response)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-
linux-i686.egg/twisted/web/client.py", line 340, in page
    self.deferred.callback(page)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 280, in callback
    self._startRunCallbacks(result)
  File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 354, in
_startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-
linux-i686.egg/twisted/internet/defer.py", line 371, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/net/mwapi.py", line 436, in done
    r = loads(r)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/net/mwapi.py", line 22, in loads
    return json.loads(s)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
exceptions.ValueError: No JSON object could be decoded
removing tmpdir '/tmp/tmppbNz36'
Traceback (most recent call last):
  File "/usr/local/bin/mw-render", line 9, in <module>
    load_entry_point('mwlib==0.12.13', 'console_scripts', 'mw-render')
()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 214, in main
    return Main()()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 169, in __call__
    env = self.get_environment()
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/render.py", line 101, in get_environment
    self.zip_filename = make_zip(output=self.options.keep_zip,
options=self.options, metabook=env.metabook, status=self.status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/buildzip.py", line 58, in make_zip
    make_nuwiki(fsdir, metabook=metabook, options=options,
podclient=podclient, status=status)
  File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.13-py2.6-
linux-i686.egg/mwlib/apps/make_nuwiki.py", line 188, in make_nuwiki
    raise RuntimeError(str(val))
RuntimeError: [Failure instance: Traceback (failure with no frames):
<type 'exceptions.RuntimeError'>: could not get collection params
]


LocalSettings.php:


<?php

# This file was automatically generated by the MediaWiki 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

# If you customize your file layout, set $IP to the directory that
contains
# the other MediaWiki files. It will be used as a base to locate
files.

# We define this to allow the configuration file to be explicitly
# located in /etc/mediawiki.
# Change this if you are setting up multisite wikis on your server.
define('MW_INSTALL_PATH','/var/lib/mediawiki');

if( defined( 'MW_INSTALL_PATH' ) ) {
        $IP = MW_INSTALL_PATH;
} else {
        $IP = dirname( __FILE__ );
}

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR .
get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );

# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {
        if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD',
$_SERVER ) ) {
                die( "This script must be run from the command line\n" );
        }
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename         = "Wiki";

## 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       = "/mediawiki";
$wgScriptExtension  = ".php";

$wgLogo = "/GelbesRad135.png";

## 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         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "root";
$wgDBpassword       = "<PASSWORD>";

# MySQL specific settings
$wgDBprefix         = "wi_";

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

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

## 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       = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

## 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;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;

$wgLocalInterwiki   = strtolower( $wgSitename );

$wgLanguageCode = "de";

$wgSecretKey =
"6bd36e432429ecdb0d4e016cc99a9553d722773b65571421e94f7d774800f923";

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

## 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.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes
your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";

# debian specific include:
if (is_file("/etc/mediawiki-extensions/extensions.php")) {
        include( "/etc/mediawiki-extensions/extensions.php" );
}

require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://127.0.0.1/mw-serve";;
$wgCollectionMWServeCredentials="administrator:<Password>:local";
$wgCollectionFormats = array( 'rl' => 'PDF', 'odf' => 'ODT', );



# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis',
@filemtime( __FILE__ ) ) );

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

Reply via email to