Item8266: Fails with FastCGI

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component: Sandbox
Branches:
Reported By: Foswiki:Main.JulianLevens
Waiting For:
Last Change By: JulianLevens
See related Tasks.Item1315, with WinXP/Apache/mod_fastcgi finally working this extension now fails.

This is what my browser shows:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Can't steal STDERR: Bad file descriptor

And the apache error log:
[Mon Sep 07 11:34:13 2009] [error] [client 24.132.183.240] FastCGI: server "C:/Program Files/Foswiki/Foswiki/bin/foswiki.fcgi" stderr: Can't steal STDERR: Bad file descriptor at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Sandbox.pm line 580., referer: http://jules/foswiki/bin/view/Main/WebChanges

-- JulianLevens - 07 Sep 2009

This is probably a core issue with Sandbox on Windows. Which version of perl are you using on windows? Strawberry, Active State, cygwin?

Sandbox attempts to intercept STDOUT and STDERR so that results from external programs like GraphViz can be returned to the user. I expect that any plugin that runs an external application might run into this same error. The Sandbox code is sensitive to perl versions, so another perl might have more success.

-- GeorgeClark - 12 Sep 2009

I'm using strawberry perl. Basically the Windows MSI of foswiki 1.0.5.

Although perl versions could be the issue. I know that FastCGI has to intercept these items, so that may (or may not) complicate the issue. This plugin works fine with plain CGI.

-- JulianLevens - 15 Sep 2009

George

I've 'fixed' this by commenting out the steal code, but as you say this is core issue with Sandbox.

-- JulianLevens - 10 Jun 2010
 

ItemTemplate edit

Summary Fails with FastCGI
ReportedBy Foswiki:Main.JulianLevens
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Sandbox
Priority Normal
CurrentState Closed
WaitingFor
Checkins
ReleasedIn
Topic revision: r4 - 10 Jun 2010, JulianLevens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy