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

ABorka fpc-devel at aborka.com
Sun Mar 14 23:39:46 CET 2010


Hi,

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? The fcl-web template handling is opening the 
template files with the "fmOpenRead" flag so there should not be any 
problem, no matter how many requests arrive to the web server at the 
same time.

Could this be some kind of Linux setting? There is nothing in the system 
logs. (Debian 5.04 /Lenny/, Apache 2.2.9)

Any ideas or help is appreciated to help to find this problem.

Thanks,

AB




More information about the fpc-devel mailing list