From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: calling ConTeXt as a background process
Date: Fri, 8 Oct 2010 10:00:43 +0200 [thread overview]
Message-ID: <2932BD8B-6EC7-4D37-A816-467484051DE8@fiee.net> (raw)
In-Reply-To: <4CAE0E7B.4000307@elvenkind.com>
Summary so far:
* Machine: virtual server on Debian 5.0 (x86_64) (I thought it was
Ubuntu, because I run that on my other Linux machines, sorry).
* Webserver: Django 1.2/fcgi (Python 2.5) behind Nginx
I can run ConTeXt without any problems from the shell, also as the
same user that runs the server process.
From the shell it doesn't matter if I call it as "context" (that's a
shell script calling mtxrun), "mtxrun", other shell script or simple
Python script.
I want to run ConTeXt from the server process (at the end I want it to
run via Celery/RabbitMQ, but that doesn't matter at the moment), but
it hangs at the texlua process and doesn't do anything.
- With an unmodified mtxrun that hangs at its external "uname" call
(gets "defunct"); I patched it to just take "x86_64" instead of
calling uname.
- After that it doesn't matter how I call ConTeXt, it always hangs at
texlua.
- I tried os.system (that directly uses C's system call) and several
variants of subprocess.Popen
- I tried calling setuptex as well as setting PATH, TEXROOT and
TEXMFOS for the environment of the process and checked that they exist
in the call.
- Calls of several linux tools via os.system or subprocess.Popen worked.
I suspected SElinux settings, Taco hinted at AppArmor, but both aren't
active, as far as I can tell.
So, the problem is with the web server and texlua. Django/fcgi
unfortunately swallows error messages (known problem of the fcgi mode).
Next I'll try a different server setup. Unfortunately Apache with
mod_wsgi or mod_python is too heavy for my virtual server (with Nginx
I can run more that 5 Django sites, with Apache I had massive
ressource problems with 3-4).
Green Unicorn (http://gunicorn.org/) looks good for my purpose.
Sorry for the OT thread, I suspected the problem being more in the
LuaTeX area.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-10-08 8:00 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 7:06 Henning Hraban Ramm
2010-10-07 7:34 ` Henning Hraban Ramm
2010-10-07 8:42 ` Taco Hoekwater
2010-10-07 9:00 ` Henning Hraban Ramm
2010-10-07 9:06 ` Taco Hoekwater
2010-10-07 10:19 ` Henning Hraban Ramm
[not found] ` <90F33E64-7BB9-4DEB-9E89-A4FC99169401@awi.de>
2010-10-07 15:55 ` Henning Hraban Ramm
2010-10-07 16:32 ` Florian Wobbe
2010-10-08 7:36 ` Henning Hraban Ramm
2010-10-08 7:59 ` Florian Wobbe
2010-10-08 8:43 ` Henning Hraban Ramm
2010-10-08 9:25 ` Florian Wobbe
2010-10-08 10:00 ` Henning Hraban Ramm
2010-10-08 11:46 ` Florian Wobbe
2010-10-08 13:47 ` Henning Hraban Ramm
2010-10-08 13:54 ` luigi scarso
2010-10-08 13:54 ` Taco Hoekwater
2010-10-08 14:22 ` Patrick Gundlach
2010-10-08 14:30 ` Henning Hraban Ramm
2010-10-08 14:57 ` Taco Hoekwater
2010-10-08 15:10 ` Hans Hagen
2010-10-08 15:08 ` Florian Wobbe
2010-10-08 19:44 ` calling ConTeXt as a background process (SOLVED) Henning Hraban Ramm
2010-10-10 8:47 ` Patrick Gundlach
2010-10-10 9:01 ` Henning Hraban Ramm
2010-10-26 19:28 ` Taco Hoekwater
2010-10-26 20:09 ` Hans Hagen
2010-10-26 20:56 ` Taco Hoekwater
2010-10-26 21:32 ` Hans Hagen
2010-10-26 20:13 ` Henning Hraban Ramm
2010-10-08 15:05 ` calling ConTeXt as a background process Henning Hraban Ramm
2010-10-07 18:16 ` taco
2010-10-08 8:00 ` Henning Hraban Ramm [this message]
2010-10-08 8:12 ` Patrick Gundlach
2010-10-08 9:21 ` Henning Hraban Ramm
2010-10-08 9:27 ` luigi scarso
2010-10-08 8:37 ` luigi scarso
2010-10-08 8:47 ` Henning Hraban Ramm
2010-10-08 8:54 ` luigi scarso
2010-10-08 10:19 ` Hans Hagen
2010-10-07 10:16 ` Robin.Kirkham
2010-10-07 11:02 ` Henning Hraban Ramm
2010-10-07 10:27 ` Patrick Gundlach
2010-10-07 15:44 ` Henning Hraban Ramm
2010-10-07 15:48 ` luigi scarso
2010-10-07 16:15 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2932BD8B-6EC7-4D37-A816-467484051DE8@fiee.net \
--to=hraban@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).