Render server error

395 views
Skip to first unread message

warzog

unread,
Nov 6, 2009, 11:51:17 AM11/6/09
to mwlib
Hello,

Before all, sorry for my poor english skill :)

I've installed a rendering server on an internal machine (debian 5 on
a WMWare before installing on the final machine) which also hosts
mediawiki but I ran into an error when trying to get a PDF from my
wiki.
The error is : "An error occured on the render server: bad base_url
'http://127.0.0.1/mediawiki2'. check your $wgServer and $wgScriptPath
variables".
After some searches I can't find the solution so if someone could help
me, it would be nice :)

My LocalSettings.php custom configurations are :
----------------------------------------------------------------------
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = 'http://127.0.0.1:8899';

My mw-serve is launched with :
---------------------------------------------
LOG_PATH=/var/log/mw-lib
PID_FILE=/var/run/mw-lib/mw-serve.pid
su -c "/usr/bin/mw-serve \
--protocol=http \
--port=8899 \
--interface=127.0.0.1 \
--pid-file=$PID_FILE \
--daemon \
--logfile=$LOG_PATH/mw-serve.log \
--mwrender-logfile=$LOG_PATH/mw-render.log \
--mwpost-logfile=$LOG_PATH/mw-post.log \
--mwzip-logfile=$LOG_PATH/mw-zip.log" www-data

In my log files i ONLY have a mw-serve.log which contains :
-----------------------------------------------------------------------------------
2009-11-06T11:59:47 mw-serve.info >> serving http on 127.0.0.1:8899
2009-11-06T11:59:53 mwlib.serve.info >> Creating directory '/var/cache/
mw-serve/81/819c720d80f7ba7f'
2009-11-06T11:59:53 mwlib.serve.bad >> bad base_url: 'http://127.0.0.1/
mediawiki2'
localhost - - [06/Nov/2009 11:59:53] "POST / HTTP/1.1" 200 104

I've tried to run some tests :
----------------------------------------
# mw-render --config=http://127.0.0.1/mediawiki2 --writer=rl --
output=./test.pdf Main_Page
Gives me a good PDF file
# mw-zip --config=http://127.0.0.1/mediawiki2 --output=./test.zip
Main_Page
Gives me a ZIP file which contains json files and a revision*.txt

Does some see a mistake or something I could test to have it work ?

Thanks

warzog

unread,
Nov 7, 2009, 4:31:28 AM11/7/09
to mwlib
Ok I've solved the problem so may be it'll help other people : after
trying to set $wgCollectionMWServeURL and the mw-serve interface to
values like that :
- 127.0.0.1
- localhost
- 192.168.1.119

The thing that worked is the local name of my machine, here debian5
(http://debian5/mediawiki).

warzog

unread,
Nov 7, 2009, 7:11:51 AM11/7/09
to mwlib
Precision: the $wgServer needs to be changed (and maybe it's the only
that needs to be changed)

bantl

unread,
Apr 12, 2012, 11:03:53 PM4/12/12
to mw...@googlegroups.com
Thanks for posting after you got it working! Helped me out! I read that the developers block IP addresses 127.0.xx, 192.168.xx and localhost for security reasons.


On Saturday, November 7, 2009 7:11:51 AM UTC-5, warzog wrote:
Precision: the $wgServer needs to be changed (and maybe it's the only
that needs to be changed)

Reply all
Reply to author
Forward
0 new messages