Extension talk:Collection/2014
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Collection always generates pdf File
Hello everybody!
i use the Collection extension with Mediawiki 1.22.0. Actually i use the public rendering server.
I wrote in my LocalSettings.php:
$wgCollectionFormats = array(
'rl' => 'PDF',
'odf' => 'ODT',
'docbook' => 'DocBook XML',
'xhtml' => 'XHTML 1.0 Transitional',
'epub' => 'e-book (EPUB',
'zim' => 'Kiwix (OpenZIM)',
);
Well, everytime i render a book: I get ALWAYS a PDF File. There is no possibility to get an ODT-File.
Do i have to make any other configuration settings? Thanks for your help!
Daniel 62.226.14.156 08:25, 7 January 2014 (UTC)
- What version are you using? There's been such a bug for a few days, it's possible it was included in the REL1_22 version. Nemo 08:32, 7 January 2014 (UTC)
- I use mediawiki 1.22.0 as i wrote before... Collection is also up2date: 1.6.1 (2013-06-03)
- Didnt found any bugs, sorry! 62.226.7.174 12:54, 7 January 2014 (UTC)
- The version number was not changed recently, so it's not indicative: can you please tell the exact revision? It should show up on Special:Version. Nemo 13:54, 7 January 2014 (UTC)
- Is this the information you need?
- Collection (Version 1.6.1) (df1d348) 62.226.7.174 22:36, 7 January 2014 (UTC)
- Thanks. That's indeed a bugged version, because it comes before . You need to upgrade to the last git version, or to the version I linked. Nemo 22:00, 9 January 2014 (UTC)
- The version number was not changed recently, so it's not indicative: can you please tell the exact revision? It should show up on Special:Version. Nemo 13:54, 7 January 2014 (UTC)
The file you are trying to download does not exist...
Hello. I have tried the mwlib mailing list first but it seems to be rather "dead". We have been using the Collection extension and our own render server for some time now (on Ubuntu Server 12.04 LTS). It generates pdf's and it worke(d) like a charm. We recently encountered a strange problem, we noticed that it was still possible to render a page or book but it was not possible to download the pdf anymore. When you then press "Download the file" the following message pops up:
File not found: The file you are trying to download does not exist: Maybe it has been deleted and needs to be regenerated. Return to ........</pre> We have been updating to MW 1.22.0 recently but we noticed this behavior also in MW.1.21.x. To make a long story a little shorter, I can get it working again when I open (reload) our wiki's "main page" in a browser on the Web server itself. After that I can download generated pdf files again from any computer on the network. But after a couple of minutes it stops working again. In Collection.body.php I found <code>'coll-download_notfound_text'</code> which is probably responsible for the message: <source lang="php"> $info = false; if ( isset( $r['url'] ) ) { $req = MWHttpRequest::factory( $r['url'] ); $req->setCallback( array( $this, 'writeToTempFile' ) ); if ( $req->execute()->isOK() ) { $info = true; } $content_type = $r['content_type']; $content_length = $r['content_length']; $content_disposition = $r['content_disposition']; } else { $info = self::mwServeCommand( 'download', array( 'collection_id' => $request->getVal( 'collection_id' ), 'writer' => $request->getVal( 'writer' ), ) ); $content_type = $info['content_type']; $content_length = $info['download_content_length']; $content_disposition = null; } if ( !$info ) { $this->getOutput()->showErrorPage( 'coll-download_notfound_title', 'coll-download_notfound_text' ); return; } </source> I am not a programmer but does anyone know what the above code does and in witch situation it will show the message ('<code>coll-download_notfound_text</code>'): 'The file you are trying to download does not exist'? We are running our Wiki on Windows Server 2008 and are using XCache but we have been using XCache for some time now and never encountered problems like this before. It also makes no difference if I run the Wiki with the caching disabled. I also tried several versions of the Collection extension form Git but to no avail. Any help would be appreciated. Thanks. [[User:Jongfeli|Felipe]] ([[User talk:Jongfeli|talk]]) 08:37, 4 February 2014 (UTC) :I have seen this problem today for the first time at http://espiral.org :We still haven't succeed downloading a proper PDF (not true, I just got one for a stub, next to +20 failed attempts). :I wonder whether such PDF is supposed to be found in the PediaPress servers, or in my host. [[User:Qgil|Qgil]] ([[User talk:Qgil|talk]]) 21:51, 3 March 2014 (UTC) :Hi Felipe, :I have the same problem... :Did you find a solution? :Thanks :Pivic [[Special:Contributions/86.31.250.143|86.31.250.143]] 17:30, 23 August 2014 (UTC) ::Hello Pivic. No I did not find a proper solution yet. I must say that I did not spend or had any time on finding one. Our quick and dirty one was and still is a job that re-load's the main wiki page on the server every 2 minutes. What would be interesting is what the message exactly means. Is the download url "broken"? If so what is wrong with it? Regards. [[User:Jongfeli|Felipe]] ([[User talk:Jongfeli|talk]]) 11:06, 26 August 2014 (UTC) :::Hi, :::I tried your technique but I don't get it to work... I wonder how to double check the URL.. When I look at it, it does not make sense... Maybe someone can post his working URL to see if they are completely diffrent? :::The Download button points to: http://www.WEBSITENAME.co.uk/wiki/index.php?title=Special:Book&bookcmd=download&collection_id=9b69472ee6d59d3e&writer=rl&return_to=ARTICLE_NAME :::When I try to download my file from my wiki, the render server shows: :::213.251.182.12 - - [2014-09-20 14:35:53] "POST /cache/ HTTP/1.0" 200 496 0.049885 Pivic 13:40, 20 September 2014 (UTC) ::::But if I type: ::::192.168.0.7:8898/cache/9b/9b69472ee6d59d3e/output.rl in the browser on my personnal render server then I can download the PDF.... ::::Then if I replace 192.168.0.7 by what google gives me as "what's my IP", then I can download the file with my phone on 3G. ::::How can I get the URL from my wiki to point to the actual file correctly? [[User:Pivicalex|Pivic]] ([[User talk:Pivicalex|talk]]) 15:19, 20 September 2014 (UTC) :::::To carry on the debug, in ''Collection.body.php'' I added ''echo " $url "'' at line 1164 (in the ''if(!info){}'') and read: http://192.168.0.7:8898/cache/9b/9b69472ee6d59d3e/output.rl :::::I read this from my phone on 3G, from a computer connected to the same router and also if I do it from the render server itself. :::::This URL works (I can download the rendered file) if I type it in the browser of my server and other computers on the local network. But it wouldn't work from anywhere else (i.e. on 3G).. :::::I think I should see My Actual IP instead of the 192.168.0.7 local one... And also, I should '''not''' be reaching this ''"if(!info) {}'' as it is an error.. :::::What is the reason for ''$url = $r->get( 'url' );'' to fetch the file address with the render server local IP? How can I fix it? :::::And how can the Download button on mediawiki triggers a "file not found" from computers on the local network even though the $url is correct? [[User:Pivicalex|Pivic]] ([[User talk:Pivicalex|talk]]) 17:29, 20 September 2014 (UTC) ::::::I was able to resolve this by changing the port for nslave ::::::<code>mw-qserve&nserve --port 8080&nslave --cachedir ~/cache/ --serve-files-port 80&postman&</code> [[User:Legaulph|Legaulph]] ([[User talk:Legaulph|talk]]) 12:44, 19 March 2015 (UTC) == Clicking Disable triggers Fatal Exception == MediaWiki 1.22.2 (66e64fc) PHP 5.3.15 (apache2handler) MySQL 5.0.77 Collection 1.6.1 Starting the Create a Book function works, and the addition of pages works, but clicking Disable returns " Fatal exception of type MWException". Enabling verbose errors doesn't show anything extra. [[User:Wmat|Wmat]] ([[User talk:Wmat|talk]]) 16:42, 20 February 2014 (UTC) :Please file a bug, fatals and exceptions should always be filed. [[User:Nemo_bis|Nemo]] 22:15, 6 March 2014 (UTC) ::My bad. I wasn't running the correct version of Collection. [[User:Wmat|Wmat]] ([[User talk:Wmat|talk]]) 12:38, 28 March 2014 (UTC) == I really need help! == Hi, I realy don´t know what I can try anymore. Maybe I´m too blind to see my error. Everytime I try to make a PDF from a document collection in our mediawiki I get the folowing error message: <code>Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', '/home/pp/cache/89/8914d5b69d18d2ba/collection.zip', '-m', '/home/pp/cache/89/8914d5b69d18d2ba/metabook.json', '--status', 'qserve://localhost:14311/8914d5b69d18d2ba:makezip', '--username', 'trainer', '--password', '{OMITTED}'] Last Output: 1% creating nuwiki in u'/home/pp/cache/89/8914d5b69d18d2ba/tmpZFLyur/nuwiki' removing tmpdir u'/home/pp/cache/89/8914d5b69d18d2ba/tmpZFLyur' memory used: res=16.0 virt=89.6 1% error Traceback (most recent call last): File "/home/pp/local/bin/mw-zip", line 37, in <module> sys.exit(mwlib.apps.buildzip.main()) File "/home/pp/.buildout/cache/eggs/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/apps/buildzip.py", line 155, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/home/pp/.buildout/cache/eggs/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/home/pp/.buildout/cache/eggs/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/apps/make_nuwiki.py", line 151, 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 0x1c61410>, 'title': u'Der magische Zollstock', 'url': u'http://wiki.kraeftespiel.de/index.php?title=Der_magische_Zollstock', 'timestamp': u'1363687602', 'currentVersion': 1, 'content_type': u'text/x-wiki', 'revision': u'665', 'type': 'article', 'latest': u'665'}>) in function system, file /home/pp/.buildout/cache/eggs/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/nslave.py, line 64 in function qaddw, file /home/pp/.buildout/cache/eggs/qserve-0.2.8-py2.7.egg/qs/slave.py, line 66</code> In my localsettings.php I added the folowing lines: <source lang="php"> require_once("$IP/extensions/Collection/Collection.php"); # End of automatically generated settings. # Add more configuration options below. $wgEnableApi = true; $wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/"; $wgCollectionMWServeCredentials = "xxxxxx:yyyyyyy"; $wgCollectionFormats=array( 'rl' => 'PDF', )</source> I would be very glad if anyone can help me. I don´t know so much about all this stuff all I can do is reading README files und install instructions. thanks allot! Frank [[Special:Contributions/188.100.27.194|188.100.27.194]] 12:11, 28 February 2014 (UTC) == What styles are not displayed? == I can see that pdf export doesn't render padding, margin used in some templates. However, I can see that indentation can be rendered using MediaWiki syntax. <font> tag are also not ignored. Thus I am wondering what css and tags are ignored by pdf export? [[User:Gleki.arxokuna|Gleki.arxokuna]] ([[User talk:Gleki.arxokuna|talk]]) 09:53, 21 April 2014 (UTC) == sections in contents == Can someone guide me on how add support for handling sections in the contents? What it means is that the TOC of the page would be also part of the sections in the book. [[User:Nischayn22|Nischayn22]] ([[User talk:Nischayn22|talk]]) 14:14, 14 June 2014 (UTC) == How to move to the toolbar? == CustomNavBlocks makes the Collection toolbar not visible. How to add it to the default mediawiki's "tb" (left toolbar)? [[User:Gleki.arxokuna|Gleki.arxokuna]] ([[User talk:Gleki.arxokuna|talk]]) 16:14, 25 June 2014 (UTC) == Disable hover text? == Hi. I use this on a site for people with disabilities and the "Add linked wiki page to your book" when you hover a link interferes with screen readers. Is there a way to disable this? Thanks. [[User:Mitchelln|Mitchelln]] ([[User talk:Mitchelln|talk]]) 15:17, 18 July 2014 (UTC) == Inline "thumb" images lost in ODF export == When exporting to odf, inline "thumb" images are missing in the resulting file. The situation is a little tricky: # Save Collection as Book # From the Books page download the PDF first (which has thumb images) # From the Books page download the ODF (images get in from the cache) The resulting ODF has a Pictures sub-folder with all the images inside, yet they are not displayed in Writer. # unzip the downloaded ODF # prettify content.xml (eg. xmllint -format) # in content.xml move any "<draw:frame...> nodes below the next "<text:p" node # zip the directory to "newfile.odf" The new file shows the inline images perfectly! http://odf-validator.rhcloud.com/ does not find any errors in content.xml. Here's to the specification http://docs.oasis-open.org/office/v1.2/cd05/OpenDocument-v1.2-cd05-part1.html#element-draw_frame Should be OK as is, but lo! [[Special:Contributions/188.22.192.225|188.22.192.225]] 13:06, 26 July 2014 (UTC) == Creating a book with multiple pages fails == After much effort I got the Collection extension to work great on my wiki for PDF'ing single articles. Unfortunately it still is not working for multiple pages, and I haven't spotted anyone else having the same issue. Using "Create a Book" with 1 page renders perfectly, but the moment I have more than one article in the book it fails with this error: <code>An error occured on the render server: RuntimeError: command failed with returncode 256: ['mw-render', '-w', 'rl', '-c', '/data/mwcache/02/02fc74869a562e0a/collection.zip', '-o', '/data/mwcache/02/02fc74869a562e0a/output.rl', '--status', 'qserve://localhost:14311/02fc74869a562e0a:render-rl', '--language', 'en'] Last Output: /usr/local/lib/python2.7/dist-packages/mwlib.ext-0.13.2-py2.7-linux-x86_64.egg/mwlib/ext/reportlab/pdfbase/pdfmetrics.py:35: UserWarning: pyfribidi is not installed - RTL not supported warnings.warn('pyfribidi is not installed - RTL not supported') /usr/local/lib/python2.7/dist-packages/mwlib.ext-0.13.2-py2.7-linux-x86_64.egg/mwlib/ext/reportlab/pdfgen/textobject.py:23: UserWarning: pyfribidi is not installed - RTL not supported warnings.warn('pyfribidi is not installed - RTL not supported') MISSING FONTS: 'AR PL UMing HK','Nazli','UnBatang','Arundina Serif','Lohit Telugu','Sarai','Gujarati','Lohit Punjabi','Lohit Oriya','AnjaliOldLipi','Kedage','LikhanNormal','Lohit Tamil','Khmer' 1% reading /tmp/tmp-mw-renderAlpxOB/tmpWpUPd8/revisions-1.txt set locale to 'en_US.UTF-8' based on the language 'en' 1% laying out 2014-07-31T10:17:17 rlwriter.info >> rendering: 'http://anchqqsl25wiki/index.php?oldid=313' 1% laying out Technical FAQ38.0% laying out Technical FAQ2014-07-31T10:17:17 rlwriter.info >> rendering: 'http://anchqqsl25wiki/index.php?oldid=2499' 38.0% laying out Client Installs2014-07-31T10:17:17 rlwriter.warning >> converting broken image failed (OSError): '/tmp/tmp-mw-renderAlpxOB/tmpWpUPd8/images/safe/ca8db071b65ebc3e6a65d95c91939ac9.png' Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/mwlib.rl-0.14.5-py2.7.egg/mwlib/rl/rlwriter.py", line 1445, in writeImageLink ret = self._fixBrokenImages(img_node, img_path) File "/usr/local/lib/python2.7/dist-packages/mwlib.rl-0.14.5-py2.7.egg/mwlib/rl/rlwriter.py", line 1403, in _fixBrokenImages ret = subprocess.call(cmd) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory 2014-07-31T10:17:17 rlwriter.warning >> image skipped 75.0% laying out Client Installs75.0% rendering 2014-07-31T10:17:17 rlwriter.info >> start rendering: u'/data/mwcache/02/02fc74869a562e0a/tmpc1or8s.rl' 2014-07-31T10:17:17 rlwriter.info >> memory usage after laying out: 270.8046875 76.7659574468% rendering 82.1276595745% rendering 82.3829787234% rendering 88.0% rendering 90.5531914894% rendering 91.3191489362% rendering 91.829787234% rendering 93.6170212766% rendering 96.170212766% rendering 97.7021276596% rendering 100.0% rendering 2014-07-31T10:17:18 rlwriter.warning >> TOC not rendered. Probably pdftk is not properly installed. returncode: 1 2014-07-31T10:17:18 rlwriter.info >> memory usage after reportlab rendering: 285.60546875 2014-07-31T10:17:18 rlwriter.info >> RENDERING OK 100.0% error removing '/tmp/tmp-mw-renderAlpxOB/tmpWpUPd8' Traceback (most recent call last): File "/usr/local/bin/mw-render", line 9, in <module> load_entry_point('mwlib==0.15.14', 'console_scripts', 'mw-render')() File "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/apps/render.py", line 243, in main return Main()() File "/usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/apps/render.py", line 209, in __call__ os.rename(tmpout, options.output) OSError: [Errno 2] No such file or directory in function system, file /usr/local/lib/python2.7/dist-packages/mwlib-0.15.14-py2.7-linux-x86_64.egg/mwlib/nslave.py, line 64</code> Here is the command I'm using for my local PDF generation service (using supervisord): [program:nserve] command=nserve [program:qserve] command=mw-qserve [program:nslave] command=nslave --cachedir /data/mwcache [program:postman] command=postman --cachedir /data/mwcache And the relevant section of my LocalSettings.php: require_once "$IP/extensions/Collection/Collection.php"; $wgCollectionMWServeURL = 'http://127.0.0.1:8899'; Again, this configuration works great for single-article PDFs; only multi-article PDFs are failing. Any help would be appreciated! [[Special:Contributions/24.21.88.119|24.21.88.119]] 18:24, 31 July 2014 (UTC) :Are you sure it's about the number of articles and not their content? Have you tried installing pyfribidi mentioned there? If requirements are not mentioned on the extension page, they should be added. [[User:Nemo_bis|Nemo]] 06:59, 1 August 2014 (UTC) ::I'm pretty sure that pyfribidi is only needed for expanded languages where bidirectional text is concerned. I've tried a number of articles that consist of just pure text, and none of them are printing properly when in a multi-page book. If I print those same articles direct to PDF they render fine. ::It might also be good to note that when downloading the book as PDF it appears to get through the entire rendering process before it fails, so I'm thinking it has nothing to do with the contents of the articles, more the configuration of the extension. [[Special:Contributions/24.21.88.119|24.21.88.119]] 16:29, 1 August 2014 (UTC) :::Exact the same problem here :( Have you find a solution in the meantime? It would be a great help! [[Special:Contributions/2A02:2C40:100:B210:0:0:1:1C7E|2A02:2C40:100:B210:0:0:1:1C7E]] 08:36, 17 November 2014 (UTC) ::::Did you install pyfribidi? [[User:Nemo_bis|Nemo]] 07:31, 18 November 2014 (UTC) :::::Yes, I did. Unfortunately it doesn't make a difference :( [[Special:Contributions/2A02:2C40:100:B210:0:0:1:1C7E|2A02:2C40:100:B210:0:0:1:1C7E]] 09:29, 19 November 2014 (UTC) ::::::Installing PDFtk did the job! [[Special:Contributions/2A02:2C40:100:B210:0:0:1:1C7E|2A02:2C40:100:B210:0:0:1:1C7E]] 10:39, 24 November 2014 (UTC) :::::::Well that's weird, according to docs that's only needed if you set up your own PDF render server and only to make the TOC. Anyway, adding to docs now. [[User:Nemo_bis|Nemo]] 07:45, 28 November 2014 (UTC) == Book rendering failed == Hi All, Setting up this Extension seemed relatively simple. I've done everything I needed in terms of configuration: <pre>require_once "$IP/extensions/Collection/Collection.php"; $wgCollectionPODPartners = false; $wgEnableWriteAPI = true; $wgCollectionMWServeURL = "http://tools.pediapress.com/mw-serve/"; $wgCollectionMWServeCredentials = "user:userpass";
$wgCollectionFormats = array( 'rl' => 'PDF', # enabled by default 'odf' => 'ODT', 'docbook' => 'DocBook XML', 'xhtml' => 'XHTML 1.0 Transitional', 'epub' => 'e-book (EPUB)', 'zim' => 'Kiwix (OpenZIM)', ); $wgGroupPermissions['sysop']['collectionsaveascommunitypage'] = true; $wgGroupPermissions['sysop']['collectionsaveasuserpage'] = true;
However all I get after clicking Download as PDF is "There was an error while attempting to render your book.". No details to help me debug it. is there any way to enable some more detailed error reports or does anyone know if there's anything wrong with my config? Edga (talk) 11:10, 1 August 2014 (UTC)
- I am having the same problem and it's driving me crazy , been sitting at my computer for more than 10 hours without any success !
- the test (mw-zip and mw-render) works fine on the render server's console. but my wiki won't connect to the render server. it doesn't even show any activity on the render server's log. it's just the plain "There was an error while attempting to render your book." ...
- I even installed a new virtual machine and set the render server up again from scratch, same results.
- appreciate any help / idea
- (wiki site : www.fidicterms.org)
- (temporary render server : 107.170.1.247) Fidicterms (talk) 01:21, 11 August 2015 (UTC)
- do you solved the probelm? 80.147.138.211 (talk) 12:52, 28 October 2015 (UTC)
- Could this be related to "The Book Creator software has been broken since it was rebuilt in 2014, the management process is inactive, and no fixes are in sight." from https://en.wikipedia.org/wiki/Help:Books? PhotographerTom (talk) 17:39, 4 November 2015 (UTC)
- Hi,
- If you use your own renderer, take care to specify port number used by nserve (8899 by default) in LocalSettings.php :
$wgCollectionMWServeURL = 'http://mywebsite:8899'
- And don't use 'localhost' or IP like 192.168... It's necessary to set a "real" name :
- $wgServer = "http://mywebsite"; Raiemaille (talk) 16:50, 24 February 2016 (UTC)
- I was getting the same error upon setting up this extension and then realized access to my wiki was restricted to logged in users only and the public http://tools.pediapress.com/mw-serve/ needed to access the page in order to render it.
- So on a private wiki, you can use the following hack to give access to tools.pediapress.com (78.46.16.76). Keep in mind that an ip address is easily spoofed so use at your own risk.
- Tinss (talk) 05:53, 22 September 2016 (UTC)
if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '78.46.16.76') { $wgGroupPermissions['*']['read'] = true; }
- Did not see this before but there is also the "$wgCollectionMWServeCredentials" configuration parameter used like
$wgCollectionMWServeCredentials = 'user:pass';
[[kgh]] (talk) 06:59, 22 September 2016 (UTC)
Collection with mwlib on private server problem
Hello All,
I have a mediawiki 1.23.2 installed on a web-hosting service (so ssh). I installed Ubuntu 14.04.1 lts desktop on a private machine and installed mwlib on it following: Tutorial
I ran Test_your_server and it works fine.
In a starserver.sh I wrote:
#!/bin/bash
nserve & mw-qserve & nslave --cachedir /data/mwcache & postman --cachedir /data/mwcache
And then can see:
cepeeng@j446-pc2:~$ /home/cepeeng/Desktop/starserver.sh
listening on 0.0.0.0:14311
=== report Wed Aug 20 13:04:27 2014 ===
have 0 jobs
count: 0
all channels idle
pulling jobs from localhost:14311 for post
serving files from '/data/mwcache' at url http://193.63.131.223:8898/cache
pulling jobs from localhost:14311 for makezip, render
using the following writers ['odf', 'rl', 'xhtml', 'xl', 'zim']
listening on 0.0.0.0:8899
watch: localhost:14311: resuming operation
From another computer, this one on windows 7, I change the LocalSettings.php and replace
- $wgCollectionMWServeURL = ("http://tools.pediapress.com/mw-serve/");
to
- $wgCollectionMWServeURL = 'http://193.63.131.223/cache';
Trying to "Download at PDF" I get: Book rendering failed There was an error while attempting to render your book.
However, $wgCollectionMWServeURL = ("http://tools.pediapress.com/mw-serve/"); works correctly.
From my windows machine in cmd, ping 193.63.131.223 works fine....
I'm quite new in this but I think my problem comes from the fact that my render server is behind a proxy. The ping works because the render server and my windows machine are both behind the same proxy.. My Mediawiki,that is hosted in an other country, does not find my render server because their is a proxy in between. Does that sound correct?
What can I do to get it to work?
Any help would be appreciated! Pivic Pivic02 (talk) 12:36, 20 August 2014 (UTC)
- Hi,
- I found a solution! I was using the wrong IP for $wgCollectionMWServeURL .... I used the IP from "ifconfig" instead of "What's my IP" (on google). Now my server is accessible from the server hosting my mediawiki.
- Now the pdf is generated on the render server but when I try to download the file it gives me an error...:
- File not found:
- The file you are trying to download does not exist: Maybe it has been deleted and needs to be regenerated.
- Return to ........
- How can I debug/fix this?
- Thanks,
- Pivic 193.63.131.137 10:29, 26 August 2014 (UTC)
cache file cleanup
Hi.
I have this all running on an ubuntu based server and it works fine. However, it creates a file for each generated book. The disk usage will just grow and grow.
How do I get it to clean up cached files after a certain time period?
Bug day: Book tool/Collection/PDF, 2014-10-08, 14–22 UTC
Hello! Please join us on the next Wikimedia bug day: 2014-10-08, 14:00–22:00 UTC in #wikimedia-tech on IRC.
We will be triaging bug reports for the Collection extension (Book tool) in general and PDF export in particular, which were just switched to a new backend (OCG). We have two immediate goals:
- recover 100 % of the relevant reports from the defunct PediaPress tracker;
- get a clean list of known PDF issues that the new backend didn't fix.
Everyone is welcome to join any time these weeks, and no technical knowledge is needed! It's an easy way to get involved or to give something back. We encourage you to record your activity on the etherpad. See also:
- this information, participants list and more (please sign!);
- more information on triaging in general.
I look forward to seeing you there. Please distribute further by email, talk pages etc. (Collection is used on almost 2 thousands wikis!)
Nemo 19:14, 29 September 2014 (UTC)
MediaWiki message delivery (talk) 19:14, 29 September 2014 (UTC)
Math / Formula in Collection
Hi,
Im trying to get Collection working with our student wiki. I have two problems im not able to solve;
First, all images are implemented as thumbnails. Is there any way to get the images printed in a proper resolution?
Second, formulae are not printed... When using texvc, only empty boxes occur istead of the formula, when using mathjax, the formula source code occurs.
Thanks for help! 134.147.44.160 11:59, 28 October 2014 (UTC)
- What format are you talking of? Nemo 14:23, 29 October 2014 (UTC)
- It is PDF... sorry for the delay 134.147.44.160 14:15, 19 December 2014 (UTC)