<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Message: 4<br>
Date: Thu, 13 Mar 2008 17:19:06 -0400<br>
From: Nancy Palmquist &lt;<a href="mailto:nlp@vss3.com">nlp@vss3.com</a>&gt;<br>
Subject: Re: fpCGI failure<br>
To: Tyler Style &lt;<a href="mailto:tyler@healthyhabitsweb.com">tyler@healthyhabitsweb.com</a>&gt;<br>
Cc: <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>
Message-ID: &lt;<a href="mailto:47D99A4A.3050906@vss3.com">47D99A4A.3050906@vss3.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tyler Style wrote:<br>&gt; It would be very odd for one report bombing out to block every<br>
&gt; subsequent report from running; if that was the case, it should bring<br>
&gt; our whole system to a halt right away as no one would be able to run<br>
&gt; reports at all. &nbsp;I think this isolates it pretty much to the actual<br>
&gt; fpcgi binary.<br>
<br>
Not odd at all. &nbsp;I see just this behavior when something gets stuck and I hit<br>
the license limit. &nbsp;Then everything gets stuck.<br><br>
<br>
The hung process is waiting for something.</blockquote><div><br>Ah.&nbsp; Licensing is definitely not the issue here, I am certain of that.&nbsp; And the process is not hung; there are no entries in the process table for it.&nbsp; Besides, what would processing like<br>
<br>::html :cr @pw{&quot;.htm&quot;
<br>::html :tx &quot;running&quot;
<br>::html :cr-
<br>::exit
<br><br>be waiting on?&nbsp; No, we&#39;re pretty sure it&#39;s the binary.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Feature of fpcgi - look in those docs. &nbsp;Ask Ray to send you current ones if you<br>

don&#39;t have time. &nbsp;This was new to 2.0.</blockquote><div><br>Yah, fptech hasn&#39;t put it in the online manual,&nbsp; and our reseller never gave us the dox.&nbsp; We&#39;ll have to see about getting some. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is this 5.6 and if it is, did someone tell you how to check to see if the<br>
licensing was exceeded? &nbsp;I have 5.6 but have not used it enough to remember how<br>
to handle the tools.</blockquote><div><br>5.0.14, and no licensing issues.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I had issues like this with filePro. &nbsp;It would exit with a Seg Violation. &nbsp;The<br>

Return code 0 tells you nothing. &nbsp;These errors were buggers to find. &nbsp;I added<br>
log entries to my processing using LOGTEXT so I could narrow down to where the<br>
crash was happening.</blockquote><div><br>We&#39;ve definitely had our share of those!&nbsp; :P&nbsp; They are no fun. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I can honestly say that it could be hundreds of things but here is my check this<br>
list:<br>
<br>
1) make sure you are not using a Declared Variable that matches a Field Heading.<br>
2) make sure you lock and write all records that you change.<br>
3) make sure all variables are defined correctly.<br>
4) check your labels and make sure they do not match declared variables, array<br>
names, commands, or aliases.<br>
<br>
I fussed with stuff for months until I finally found it. &nbsp;I think the<br>
suggestions about writing stdout and errout to files helped. &nbsp;Also running it<br>
outside of fpcgi, in a test mode, pointed out a few issues.<br>
<br>
My tables use many calls, Open(), import/export, all those things, and when<br>
tables are layered like that it is easy to tromp on something.<br>
<br>
Once I got it fixed, it has run flawlessly for months. &nbsp;I know it can work, the<br>
error was mine. &nbsp;It would have been nice if filePro could have helped with<br>
better syntax checking or something but the responsibility is all mine.</blockquote><div><br>As the processing table above shows, it is definitely not a processing table issue.&nbsp;&nbsp; There&#39;s nothing there for it to die on.&nbsp; Also, most of our processing doesn&#39;t use any HTML in filepro at all.&nbsp; We pump out JSON formatted datagrams to AJAX mostly.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I works exactly as you indicated, when it is broken. &nbsp;You set variables to tell<br>
filePro to continue after x seconds, so it just fails and fpcgi returns nothing<br>
since filePro made nothing. &nbsp;fpCGI is very happy, you are not back at the web<br>
page since nothing is there.</blockquote><div><br>&gt; BROKEN submission:<br>
&gt; ----------------<br>
&gt; 2008-03-06 14:22:26 INFO &nbsp; PID(00008186) SUCCESSFUL return from command designated in Field_cmd<br>
&gt; 2008-03-06 14:22:26 INFO &nbsp; PID(00008186) Command string is
/appl/fp/rreport ajax -fp cWebInvoice -sr 34 -n -u -y automaticCGI -rw
/usr/local/apache/htdocs<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">/rweb2a2<br>
&gt; 2008-03-06 14:22:26 INFO &nbsp; PID(00008186) Return code from command is 0. Errno is 0<br>
&gt; 2008-03-06 14:22:26 INFO &nbsp; PID(00008186) Command as returned by cgival(Field_cmd1) is L<br>
&gt; &lt;snip&gt;<br>
&gt; 2008-03-06 14:22:26 DEBUG &nbsp;PID(00008186) fpcgi.c 001553 Checking to see if [/usr/local/apache/htdocs/rweb2a2.htm] exists<br>
&gt; 2008-03-06 14:22:26 DEBUG &nbsp;PID(00008186) fpcgi.c 001573 No. It does not exist. Errno is 2</blockquote><div>&nbsp;<br></div>That&#39;s the problem, it IS broken there - there SHOULD be output.&nbsp; If it is returning without an error, then like the 1200 trial runs before it, there should be output.&nbsp; That exact command was run flawlessly hundreds of times before, with exactly the same data.&nbsp; Suddenly, it is not pumping out files anymore, and every subsequent process that runs via fpcgi after that also fails to output anything at all, regardless of the command being run.<br>
<br>Tyler<br></div></div>