Sweet.  Glad it worked for you.  A release of supervisor should be coming soon.<br><br><a href="http://www.mail-archive.com/supervisor-users@lists.supervisord.org/msg00144.html">http://www.mail-archive.com/supervisor-users@lists.supervisord.org/msg00144.html</a><br>
<br><div class="gmail_quote">On Mon, Apr 6, 2009 at 10:46 PM, Jacob Singh <span dir="ltr">&lt;<a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Nevermind, I got it figured out.<br>
<br>
Thanks! This is awseome.  I hope it gets into a release because my<br>
company is wary of using something that hasn&#39;t had a release for a<br>
year.<br>
<div><div></div><div class="h5"><br>
On Tue, Apr 7, 2009 at 11:02 AM, Jacob Singh &lt;<a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a>&gt; wrote:<br>
&gt; Hmm...<br>
&gt;<br>
&gt; okay, I&#39;ve got it making the request through nginx, however, the<br>
&gt; environ variable is empty in my wsgi script.  The same script works<br>
&gt; fine when I create my own named sockets and add them to an nginx<br>
&gt; upstream...<br>
&gt;<br>
&gt; Not sure how to proceed on that.<br>
&gt;<br>
&gt; Best,<br>
&gt; Jacob<br>
&gt;<br>
&gt; On Mon, Apr 6, 2009 at 9:46 PM, Roger Hoover &lt;<a href="mailto:roger.hoover@gmail.com">roger.hoover@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi Jacob,<br>
&gt;&gt;<br>
&gt;&gt; Your configuration has the FastCGI process listening on <a href="http://127.0.0.1:1212" target="_blank">127.0.0.1:1212</a> so<br>
&gt;&gt; that socket is expecting the client to speak FCGI.  If you use curl to send<br>
&gt;&gt; an HTTP request, it won&#39;t understand the request.  You need to configure a<br>
&gt;&gt; web server such as nginx that will proxy HTTP requests over FastCGI.  Nginx<br>
&gt;&gt; will need to run listen on another socket (say 5000) and proxy requests to<br>
&gt;&gt; your FastCGI processes listening on <a href="http://127.0.0.1:1212" target="_blank">127.0.0.1:1212</a>.<br>
&gt;&gt;<br>
&gt;&gt; Hope that helps,<br>
&gt;&gt;<br>
&gt;&gt; Roger<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Apr 5, 2009 at 10:28 PM, Jacob Singh &lt;<a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi folks!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I just found out about this project from:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://just-another.net/2009/01/18/byteflowdjangosupervisordnginx-win/#comments" target="_blank">http://just-another.net/2009/01/18/byteflowdjangosupervisordnginx-win/#comments</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve been trying to accomplish the same goal, but not using django.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It all *kinda* works, but when I try to curl my fcgi program, I get<br>
&gt;&gt;&gt; nada, and it just hangs forever with no logs... don&#39;t know where to<br>
&gt;&gt;&gt; start.  I&#39;m using trunk.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Server info:<br>
&gt;&gt;&gt; Python 2.4.3 (#1, Mar 14 2007, 18:51:08)<br>
&gt;&gt;&gt; [GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here&#39;s my config (relevant bits):<br>
&gt;&gt;&gt; --------------------------------------------------<br>
&gt;&gt;&gt; [supervisord]<br>
&gt;&gt;&gt; logfile=/tmp/supervisord.log ; (main log file;default<br>
&gt;&gt;&gt; $CWD/supervisord.log)<br>
&gt;&gt;&gt; logfile_maxbytes=50MB       ; (max main logfile bytes b4 rotation;default<br>
&gt;&gt;&gt; 50MB)<br>
&gt;&gt;&gt; logfile_backups=10          ; (num of main logfile rotation<br>
&gt;&gt;&gt; backups;default 10)<br>
&gt;&gt;&gt; loglevel=debug               ; (log level;default info; others:<br>
&gt;&gt;&gt; debug,warn,trace)<br>
&gt;&gt;&gt; pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default<br>
&gt;&gt;&gt; supervisord.pid)<br>
&gt;&gt;&gt; nodaemon=true             ; (start in foreground if true;default false)<br>
&gt;&gt;&gt; minfds=1024                 ; (min. avail startup file descriptors;default<br>
&gt;&gt;&gt; 1024)<br>
&gt;&gt;&gt; minprocs=200                ; (min. avail process descriptors;default 200)<br>
&gt;&gt;&gt; ;umask=022                  ; (process file creation umask;default 022)<br>
&gt;&gt;&gt; user=nobody                ; (default is current user, required if root)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ; Production setup<br>
&gt;&gt;&gt; [fcgi-program:gate]<br>
&gt;&gt;&gt; socket=tcp://<a href="http://127.0.0.1:1212" target="_blank">127.0.0.1:1212</a>  ; We reference this later in nginx<br>
&gt;&gt;&gt; #command = /usr/local/solrflare/bin/gate.py  ; Calls the above code<br>
&gt;&gt;&gt; command = /tmp/new.py<br>
&gt;&gt;&gt; environment=PYTHON_EGG_CACHE=/tmp  ; Setup needed environment<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; And here is new.py:<br>
&gt;&gt;&gt; ----------------------------------------------<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; #!/usr/bin/python<br>
&gt;&gt;&gt; from flup.server.fcgi import WSGIServer<br>
&gt;&gt;&gt; import time, os, sys<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; open(&#39;/tmp/new.log&#39;,&#39;a&#39;).write(&#39;something&#39;)<br>
&gt;&gt;&gt; def app(environ, start_response):<br>
&gt;&gt;&gt;        open(&#39;/tmp/new.log&#39;,&#39;a&#39;).write(&#39;else&#39;)<br>
&gt;&gt;&gt;        status = &quot;200 OK&quot;<br>
&gt;&gt;&gt;        response_headers = [(&#39;Content-type&#39;, &#39;text/plain&#39;)]<br>
&gt;&gt;&gt;        start_response(status, response_headers)<br>
&gt;&gt;&gt;        return [&#39;LOALALA\n&#39;]<br>
&gt;&gt;&gt; WSGIServer(app).run()<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; My Log:<br>
&gt;&gt;&gt; -------------------------------------------------<br>
&gt;&gt;&gt; [root@balancer:/tmp] supervisord<br>
&gt;&gt;&gt; 2009-04-06 01:19:01,308 CRIT Set uid to user 99<br>
&gt;&gt;&gt; 2009-04-06 01:19:01,500 INFO RPC interface &#39;supervisor&#39; initialized<br>
&gt;&gt;&gt; 2009-04-06 01:19:01,501 INFO RPC interface &#39;supervisor&#39; initialized<br>
&gt;&gt;&gt; 2009-04-06 01:19:01,501 INFO supervisord started with pid 5886<br>
&gt;&gt;&gt; 2009-04-06 01:19:02,499 DEBG fd 8 closed, stopped monitoring<br>
&gt;&gt;&gt; &lt;PInputDispatcher at -1216741876 for &lt;Subprocess at -1216915476 with<br>
&gt;&gt;&gt; name gate in state STARTING&gt; (stdin)&gt;<br>
&gt;&gt;&gt; 2009-04-06 01:19:02,510 INFO spawned: &#39;gate&#39; with pid 5888<br>
&gt;&gt;&gt; 2009-04-06 01:19:03,508 INFO success: gate entered RUNNING state,<br>
&gt;&gt;&gt; process has stayed up for &gt; than 1 seconds (startsecs)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; curl localhost:1212<br>
&gt;&gt;&gt; Just sits there forever...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Help!?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Jacob<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; +1 510 277-0891 (o)<br>
&gt;&gt;&gt; +91 9999 33 7458 (m)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; web: <a href="http://pajamadesign.com" target="_blank">http://pajamadesign.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Skype: pajamadesign<br>
&gt;&gt;&gt; Yahoo: jacobsingh<br>
&gt;&gt;&gt; AIM: jacobsingh<br>
&gt;&gt;&gt; gTalk: <a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Supervisor-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:Supervisor-users@lists.supervisord.org">Supervisor-users@lists.supervisord.org</a><br>
&gt;&gt;&gt; <a href="http://lists.supervisord.org/mailman/listinfo/supervisor-users" target="_blank">http://lists.supervisord.org/mailman/listinfo/supervisor-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; +1 510 277-0891 (o)<br>
&gt; +91 9999 33 7458 (m)<br>
&gt;<br>
&gt; web: <a href="http://pajamadesign.com" target="_blank">http://pajamadesign.com</a><br>
&gt;<br>
&gt; Skype: pajamadesign<br>
&gt; Yahoo: jacobsingh<br>
&gt; AIM: jacobsingh<br>
&gt; gTalk: <a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5"><br>
+1 510 277-0891 (o)<br>
+91 9999 33 7458 (m)<br>
<br>
web: <a href="http://pajamadesign.com" target="_blank">http://pajamadesign.com</a><br>
<br>
Skype: pajamadesign<br>
Yahoo: jacobsingh<br>
AIM: jacobsingh<br>
gTalk: <a href="mailto:jacobsingh@gmail.com">jacobsingh@gmail.com</a><br>
</div></div></blockquote></div><br>