[fpc-devel] "Unable to open file" on Linux randomly in a CGI application when using templates

ABorka fpc-devel at aborka.com
Mon Mar 15 03:17:10 CET 2010


If that is the case, shouldn't something be in the syslog or some other log?
Is there any way I can check this for sure like last system error string 
or something?
The exception message only says that "Unable to open file 
<filepath_filename>".

I checked the /proc/sys/fs/file-max  and it shows 294692

For now, I'm retrying again the page generation if an exception happens. 
So far seems to be working, but will need more time to really see. It 
was rare to happen.

AB

On 3/14/2010 16:08, Jonas Maebe wrote:
>
> On 14 Mar 2010, at 23:39, ABorka wrote:
>
>> I have a CGI application with a datamodule that is using templates to generate the response pages (accessing a MySQL database through ZEOS).
>> Every once in a while, I'm getting an "Unable to open file" exception that points to one of the templates the website is using.
>>
>> What could be the problem?
>
> Maybe you run out of file handles?
>
>
> Jonas_______________________________________________




More information about the fpc-devel mailing list