Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

GetOverlappedResult() failed error

Help
Amit Gupta
2008-10-04
2012-10-06
  • Amit Gupta
    Amit Gupta
    2008-10-04

    I followed below mentioned steps to setup IIPImageServer on Apache and Fast CGI:


    1. Download Apache 2.2.9 from http://mirror.candidhosting.com/pub/apache/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi
    2. Install it on Windows XP say at C:\Apache.
    3. Download FastCGI dll from http://www.fastcgi.com/dist/mod_fastcgi-2.4.6-AP22.dll to say C:/FastCGI.
    4. Create directory fcgi-bin in C:/Apache/htdocs.
    5. Download IIPImageServer from http://prdownloads.sourceforge.net/iipimage/IIPImageServer-0.9.7.zip?download and extract the zip file.
    6. Copy all 6 files from the extracted zip file to C:/Apache/htdocs/fcgi-bin.
    7. Open C:/Apache/conf/httpd.conf for editing.
    8. Add
      LoadModule fastcgi_module C:/FastCGI/mod_fastcgi-2.4.6-AP22.dll
    9. Add
      AddHandler fastcgi-script fcg fcgi fpl exe
      <Directory "C:/Apache/htdocs/fcgi-bin">
      SetHandler fastcgi-script
      AllowOverride None
      Options ExecCGI
      Order allow,deny
      Allow from all
      </Directory>
      ScriptAlias /fcgi-bin/ "C:/Apache/htdocs/fcgi-bin/"
      FastCgiConfig \ -initial-env PATH="c:/wamp/ruby/bin;c:/windows/system32;c:/windows;C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" \ -initial-env LOG=C:/Apache/logs/IIPImageServer.log \ -initial-env VERBOSITY=2 \ -initial-env JPEG_QUALITY=50 \ -initial-env MAX_IMAGE_CACHE_SIZE=10 \ -initial-env MAX_CVT=3000

    10. Save file. In command Prompt, go to C:/Apache/bin

    11. Run command httpd.exe
    12. Open web browser and try to access url http://localhost/fcgi-bin/IIPImageServer.fcgi.
    13. Observe that following is displayed in the web browser:
      Internal Server Error
      The server encountered an internal error or misconfiguration and was unable to complete your request.
      Please contact the server administrator, amit.gupta@secf.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
      More information about this error may be available in the server error log.

    14. Logs show the following:
      [Fri Oct 03 13:50:54 2008] [notice] Child 1676: Starting 64 worker threads.
      [Fri Oct 03 13:50:54 2008] [notice] FastCGI: process manager initialized
      [Fri Oct 03 13:50:54 2008] [notice] Child 1676: Starting thread to listen on port 80.
      [Fri Oct 03 13:50:58 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" started (pid 3900)
      [Fri Oct 03 13:50:58 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" (pid 3900) terminated with exit with status '1'
      [Fri Oct 03 13:51:03 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" restarted (pid 3188)
      [Fri Oct 03 13:51:03 2008] [error] [client 127.0.0.1] (OS 109)The pipe has been ended. : FastCGI: comm with server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" aborted: GetOverlappedResult() failed
      [Fri Oct 03 13:51:03 2008] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi"
      [Fri Oct 03 13:51:03 2008] [warn] FastCGI: (dynamic) server "C:/Apache/htdocs/fcgi-bin/IIPImageServer.fcgi" (pid 3188) terminated with exit with status '1'


    Can somebody suggest what wrong I am doing? I have already spent couple of days on this but no solution so far. Please help.

    Thanks in advance.

     


Anonymous


Cancel   Add attachments