On 27/11/11 16:45, Brendan Jurd wrote:
On 25/11/11 19:17, Hans Hagen wrote:
On 25-11-2011 06:12, Brendan Jurd wrote:
I have a PHP application which generates documentation on the fly with
context. This has been working really well, but I am now testing
deployment on a new server with a more recent version of context, and it
seems to be somehow getting itself into a tight loop.

in such cases I always run with --batch to make sure that the job
itself cannot block

Thanks for the response. I tried running with --batch and it made no
difference to the outcome. The mtxrun process still got jammed up in
exactly the same manner.

Regressing to the ubuntu 'lucid' packages resolved the problem for me,
so whatever is wrong has gone wrong somewhere in the combination of
packages in ubuntu 'natty'.


I did eventually get to the bottom of this. Turns out that mtxrun was failing to find a writable cache path (from mtxrun line 9269).

To find a cache path, mtxrun searches through the environment variables TEXMFCACHE, TMPDIR, TEMPDIR, TMP, TEMP, HOME, HOMEPATH.

The apache worker process had no such environment variables, so mtxrun failed. Once I added the following line to my PHP script, everything started working just fine:

putenv('TEMPDIR=/tmp');

--
Regards,
Brendan Jurd

Software Engineer
Achieve, Corp

brendan.j...@achievecorp.com.au
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to