Question
After installing the current version of PublishContrib it is possible to publish files and generate .ZIP files.
However, whenever I try to generate a PDF the following error occurs which is reported in the log and in the warning file:
| 18 Oct 2008 - 18:14 | exec failed: No such file or directory at D:/twiki_neu/lib/TWiki/Sandbox.pm line 392.
In the specified publish directory the corresponding pages are written as html files - no PDF is generated.
The same holds, if I call the publish script from a command line.
htmldoc is installed and produces the expected output when it is called from a cygwin bash window.
Environment
--
MichaelSchmidt - 18 Oct 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
It sounds like the path to htmldoc in
configure is specified incorrectly. Perhaps it isn't on the path for the webserver user?
--
CrawfordCurrie - 20 Oct 2008
I can not see, where in configure this path has to be specified. I only see {Dir}, {URL} and {PDFCmd}.
htmldoc has been installed on the server and the path has been added to the environment variable PATH. I can see that this works, when I open a cygwin shell and type "htmldoc --version".
--
MichaelSchmidt - 20 Oct 2008
For cygwin you could check that the path to htmldoc is specified in {SafeEnvPath} ( configure -> security setup -> path ).
--
OlivierThompson - 20 Oct 2008
Thank you for the hint. The SAfeEnvPath was defined as "/bin". I set it to "/bin:/cygdrive/d/programs/htmldoc" according to the installation directory.
But this setting was not successful: The logging output of the publish script stopped when the first file was processed and the search functionality did not work any more (e.g. the TWikiGroups page showed only two of about 15 groups). Also the server became blocked by a non terminating process with 100% CPU usage.
--
MichaelSchmidt - 22 Oct 2008
You might find usefull to install
GenPDFAddOn. Can you run htmldoc after open a cygwin shell
and "su - " to your webserver's user ? ( if you change the webserver's login shell to do so, be carefull to put it back to its initial value e.g. MOTT something like /bin/false ).
100% CPU usage : ough ! if it's not the case already (?) , consider using a dedicated machine to validate your configuration changes before production environnement. Might be a lack of disk space : Try to publish or genpdf a single topic first ?
For cygwin installations, the
SafeEnvPath documentation section of the configure screen, tells to add
/cygdrive/c/windows/system32 to
SafeEnvPath.
Hope this helps.
--
OlivierThompson - 23 Oct 2008
Thanks again for your tips. I tried some settings of SafeEnvPath, but the result was the same as decribed above.
Then I saw a previous version of your tip and I added the full cygwin path to the variable {PDFCmd}. Now it works and I get the expected PDF files!
Thank you for your help!
--
MichaelSchmidt - 30 Oct 2008
I had exactly the same error message (running Win2000, apache, activeperl). Solved it by editing the "/bin/publish" script and correcting the path to perl in the first line (made it match all the other scripts). The installer doesn't seem to be adjusting for perl to be somewhere other than /usr/bin/perl.
--
PaulOpitz - 26 Nov 2008