Problem with fastcgi

Clint Johnson cjohnson at REFRACTIONS.NET
Fri Mar 17 14:14:12 EST 2006


[Preamble]
*Version*:         Mapserver 4.6.2
*Platform*:         Windows
*Web server*:     Apache 2.x


Hi guys,

I'm having a problem getting a self-compiled mapserver to run in fastcgi 
mode; however, it works fine in regular cgi mode.  Behold some apache 
error log entries:

**Start**
[Fri Mar 17 11:01:08 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" (pid 552) terminated 
with exit with status '128'
[Fri Mar 17 11:01:12 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" restarted (pid 2636)
[Fri Mar 17 11:01:12 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" (pid 2636) terminated 
with exit with status '128'
[Fri Mar 17 11:01:12 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" has failed to remain 
running for 30 seconds given 3 attempts, its restart interval has been 
backed off to 600 seconds
[Fri Mar 17 11:02:07 2006] [warn] FastCGI: scheduled the start of the 
last (dynamic) server "C:/Program Files/Apache 
Group/Apache2/fcgi-bin/echo.exe" process: reached dynamicMaxClassProcs (1)
[Fri Mar 17 11:02:07 2006] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/echo.exe" started (pid 2008)
[Fri Mar 17 11:02:07 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" has failed to remain 
running for 30 seconds given 3 attempts, its restart interval has been 
backed off to 600 seconds
[Fri Mar 17 11:02:08 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" has failed to remain 
running for 30 seconds given 3 attempts, its restart interval has been 
backed off to 600 seconds
[Fri Mar 17 11:03:42 2006] [error] [client 127.0.0.1] (OS 2)The system 
cannot find the file specified.  : FastCGI: failed to connect to server 
"C:/Program Files/Apache Group/Apache2/fcgi-bin/mapserv.exe": 
CreateFile()/WaitNamedPipe() timed out
[Fri Mar 17 11:03:42 2006] [error] [client 127.0.0.1] FastCGI: 
incomplete headers (0 bytes) received from server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe"
[Fri Mar 17 11:06:11 2006] [warn] FastCGI: server "C:/Program 
Files/Apache Group/Apache2/fcgi-bin/mapserv.exe" has failed to remain 
running for 30 seconds given 3 attempts, its restart interval has been 
backed off to 600 seconds
**END**


Now I have apache correctly configured to support fastcgi as evident by
1. An echo.exe fastcgi sample application correctly executing and 
producing a listing of my environment variables
2. The mapserver that comes with the ms4w distribution correctly 
executes when placed within my apache/fcgi-bin directory

I also have mapserver correctly configured to compile itself with 
fastcgi support as evident by
1.  the following lines in the nmake.opt file:
    FCGIDIR=C:\sourcecode\fcgi-2.4.0\buildkit\fcgi-2.4.0
    
FCGILIB=C:\sourcecode\fcgi-2.4.0\buildkit\fcgi-2.4.0\libfcgi\Release\libfcgi.lib
    FCGIINC=-IC:\sourcecode\fcgi-2.4.0\buildkit\fcgi-2.4.0\include
    FCGIDEF=-DUSE_FASTCGI
2. Absence of any errors during compilation process.

So my question is -- any idea why mapserver is failing in fast cgi? -- 
the apache error code is border line useless to me.  It should work but 
it's not.

Thanks,
Clint



More information about the mapserver-dev mailing list