Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Hamza Z. on May 30, 2014, 10:49:02 am



Title: running fastcgidispatch in standalone mode
Post by: Hamza Z. on May 30, 2014, 10:49:02 am
I have finished the migration process of an Informix 4gl application to Genero BDL. When I use the httpdispatcher -f <file name> dispatcher the application runs well on a web page, but when I try to use the fastcgidispatcher -s -f <same_file_name_as_before> I get an empty web page with an error telling that the page cannot be loaded (no message from the fastcgidispatcher).

Can anybody tell me how to debug this issue.


Title: Re: running fastcgidispatch in standalone mode
Post by: . on June 03, 2014, 10:25:12 am
Hi Hamza,

This sounds like a configuration issue. Did you check the Apache error / access logs ? Is there any particular message ?
For such issues, the best is to contact your support center with information like GAS version used,  GAS configuration file (as.xcf, wrapper.fcgi) , GAS and Apache logs.

Best regards,
Guney
 


Title: Re: running fastcgidispatch in standalone mode
Post by: Laurent G. on June 03, 2014, 05:01:38 pm
Hamza,

Since you are running fastcgidispatch in standalone mode, let me assume you are using Apache 2.4 and you are looking at:
https://4js.com/online_documentation/fjs-gas-manual-html/?path=fjs-gas-manual#c_gas_config_mod_proxy_fcgi.html

Using the default conventions/names:

Make sure ps -aef | grep fastcgi shows you dispatcher running
http://host/gas/demos.html return the genero demo static html page ?

If not, your problem is indeed with Apache/fcgi or genero app server wrapper setup. You need to take a look at httpd.conf, apache error logs + wrapper.fcgi (as Guney suggested)
One common problem I have seen with this setup is permission on fcgi plugin

HTH

Laurent


Title: Re: running fastcgidispatch in standalone mode
Post by: Hamza Z. on June 07, 2014, 06:24:15 pm
Thanks Laurent and Guney,
Right now i am able to start Apache 2.4.9 with mod_proxy_fcgi loaded.
When I run fastcgidispatcher manually in stand alone mode, the application starts. Apache is not starting fastcgi automatically, and I need to run Apache web sever and fastcgidispatcher as well.


Title: Re: running fastcgidispatch in standalone mode
Post by: Laurent G. on June 09, 2014, 06:42:27 pm
Hamza,

With mod_proxy_fcgi, fastcgidispatch needs to be started manually and you need to create a cron/inittab program to restart it if it fails as Apache doesn't do it using this config

https://4js.com/online_documentation/fjs-gas-manual-html/?path=fjs-gas-manual#c_gas_config_mod_proxy_fcgi.html

Look at point #3. Also, FYI, with Apache 2.4, mod_proxy_fcgi is required and I believe only Genero 2.50 is officially supported for this setup.