[Glass] GS3.2.2 Seasise 3.1.2 Zinc FastCGI debugging

Jupiter Jones via Glass glass at lists.gemtalksystems.com
Mon Oct 6 15:12:48 PDT 2014

Hi Dale,

Sorry for the delay.

Yes this is exactly how I’m setup. I’m sure this is something simple I’ve missed.

I have 2 identical machines - ubuntu 14.04, GSS3.2.2, lighted, fast cgi, seaside 3.1.2.

The first linux server I loaded everything into GSS through a tODE “project load myProject” command and works like a dream. Well, almost :) Debugging was an issue as all the bebugging/walkback handlers either crashed the process with the good old “can't send call:...” message, or I simply got a page back with “Internal Error:” but no explanation. Debugging through zinc works as expected.

The second linux server if the same config, however, the repository was restored on linux from a backup on mac - and FastCGI doesn’t work but Zinc does.

I start the fcgi server (runSeasideGems30 start FastCGI “9001 9002 9003”) and can see the server has started and is listening on the right ports.

I hit the seaside site and Lighttpd reports:
2014-10-06 10:02:21: (mod_fastcgi.c.3032) got proc: pid: 0 socket: tcp: load: 1 
2014-10-06 10:02:50: (mod_fastcgi.c.2540) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp: 
2014-10-06 10:02:50: (mod_fastcgi.c.3326) response not received, request sent: 715 on socket: tcp: for /?, closing connection 
2014-10-06 10:02:50: (mod_fastcgi.c.1491) released proc: pid: 0 socket: tcp: load: 0 

None of the fcgi processes crash, or log anything, just lighttpd reports a 500 - Internal Server Error.

After a little hunting, I tried FSLog  enable (I updated the log path but then realised it’s not used) however nothing is written to stdout or added to the ObjectLog.

Although this scenario (backup on mac / restore on linux) is not our standard practice, it is something I do occasionally and I’d like to work out what I’ve done wrong.

Thanks for any advice.



On 19 Sep 2014, at 10:27 am, Dale Henrichs <dale.henrichs at gemtalksystems.com> wrote:

> Juptier,
> If you are using fastCGI, then you should be using the FastCGI adaptor. 
> If you haven't already loaded the FastCGI packages,  add  'FastCGI' to your load list for the Seaside3 project entry:
> ^ TDProjectSpecEntryDefinition new
>     configuration: 'Seaside3'
>       version: '3.1.3'
>       repository:
>         'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main'
>       loads: #('Development' 'Zinc' 'Examples' 'Tests'  'FastCGI');
>     status: #(#'active');
>     locked: false;
>     yourself
> Then refresh the project list and use the 'load' menu item to load the Seaside3 project and the code for FastCGI will be loaded ...
> Then you can register and launch a fastCGI server using the following
>   cd /home/seaside
>   ./webServer --stop                                           # stop running zinc server
>   ./webServer --register=fastcgi --port=9003  # register the fastcgi adaptor
>   ./webServer --start                                           # start the fastcgi server
> Note that the webServer script only adds a single server/port ... if you want to launch several fastCGI servers, I can update the webServer script...
> Dale
> On Thu, Sep 18, 2014 at 5:07 PM, Jupiter Jones via Glass <glass at lists.gemtalksystems.com> wrote:
> Hi All,
> I am attempting to deploy a testing server on ubuntu and everything installs and starts up nicely. From tODE i can start the web server and connect, however when connecting via FastCGI I get a 500 - Internal Server error.
> The only log entry appears to be in lighttpd error.log…
> 2014-09-18 23:47:10: (mod_fastcgi.c.3032) got proc: pid: 0 socket: tcp: load: 1
> 2014-09-18 23:47:39: (mod_fastcgi.c.2540) unexpected end-of-file (perhaps the fastcgi process died): pid: 0 socket: tcp:
> 2014-09-18 23:47:39: (mod_fastcgi.c.3326) response not received, request sent: 725 on socket: tcp: for /?, closing connection
> 2014-09-18 23:47:39: (mod_fastcgi.c.1491) released proc: pid: 0 socket: tcp: load: 0
> How would I go about getting more debug info from the Zinc FastCGI server?
> There is nothing else installed in GemStone just seaside installed through tODE’s “project load Seaside3”
> Any help would be much appreciated.
> Cheers,
> Jupiter
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20141007/6212f56d/attachment.html>

More information about the Glass mailing list