Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

fcgid configuration for catalyst

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


rijuroyson at gmail

Feb 1, 2012, 7:37 PM

Post #1 of 9 (390 views)
Permalink
fcgid configuration for catalyst

Hi,

My team owns a dedicated catalyst application which is working on
mod_perl and apache. The application is for generating several reports
and is used by a huge number of employees in our organization. Now we
need to move out of mod_perl because our organization stopped
supporting it. After some research work, we decided to go with fcgid.
We did the configuration with the help of available documents, and
discussion threads in this mailing lists. With fcgid, we are able to
bring up our application main page.

When we did some testing, we came to know that all links from main
page is broken. It seems, $c->uri_for() is not returning any value. We
are using this for navigating to different controllers.We tried to
find out a solution for this, but nothing seems to work. Also
$c->req->user, $c->response->redirect etc seems to be failing.

Any pointers to this issue will be very helpful.

Thanks in advance,
Riju Royson

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Feb 2, 2012, 12:13 AM

Post #2 of 9 (381 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

On 2 Feb 2012, at 03:37, Riju Royson wrote:

> Hi,
>
> My team owns a dedicated catalyst application which is working on
> mod_perl and apache. The application is for generating several reports
> and is used by a huge number of employees in our organization. Now we
> need to move out of mod_perl because our organization stopped
> supporting it. After some research work, we decided to go with fcgid.

Why fcgid?

It's generally for shared hosting, you're not doing shared hosting.

> Any pointers to this issue will be very helpful.

Any actual info to help debug it would be helpful :_)

Can you show us your apache config, and what a dumped $c->request
looks like?

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


rijuroyson at gmail

Feb 2, 2012, 12:45 AM

Post #3 of 9 (478 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

Hi,

$c->request message contains,
_body is 0
_context is APP=HASH(0xcb03754)
action is default
address is
arguments is ARRAY(0xcc14eec)
base is http:///
body_parameters is HASH(0xc982a6c)
captures is ARRAY(0xcb03a0c)
cookies is HASH(0xcb03bec)
headers is HTTP::Headers=HASH(0xcb0334c)
hostname is
match is
method is
parameters is HASH(0xcb03a84)
path is
protocol is
query_parameters is HASH(0xcb03c34)
secure is 0
uploads is HASH(0xcb03b44)
uri is http:///
user is


Apache config:
RewriteEngine On
RewriteRule ^/server/(.*) /auto/cweb0/www-home/server/$1 [L]

RewriteCond %{HTTP_HOST} !^app.com
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^/(.*) http://app.com:%{SERVER_PORT}/$1 [L,R]

RewriteCond %{HTTP_HOST} !^app.com
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://app.com/$1 [L,R]


SetEnv HTTPDocumentRoot /auto/web-sciam/app/
SetEnv HTTPCGIBin /auto/web-sciam/app/cgi
SetEnv HTTPLib /auto/web-sciam/app/cgi/lib
SetEnv HTTPData /auto/web-sciam/app/cgi/data

ScriptAlias /cgi-bin/cec/ /auto/cec-template/pcgi-bin/cec/
ScriptAlias /pcgi-bin/cec/ /auto/cec-template/pcgi-bin/cec/
ScriptAlias /cgi-bin/ /auto/web-sciam/app/cgi/
ScriptAlias /cgi/ /auto/web-sciam/app/cgi/

Alias /app/ /auto/web-sciam/app/script/app_fastcgi_eifweb.pl/

FcgidInitialEnv LD_LIBRARY_PATH
FcgidInitialEnv PATH
FcgidInitialEnv PWD
FcgidInitialEnv SHLVL
FcgidInitialEnv FCGI_ROLE
FcgidInitialEnv UNIQUE_ID
FcgidInitialEnv SCRIPT_URL
FcgidInitialEnv SCRIPT_URI
FcgidInitialEnv HTTP_USER_AGENT
FcgidInitialEnv HTTP_ACCEPT
FcgidInitialEnv HTTP_REFERER
FcgidInitialEnv HTTP_ACCEPT_ENCODING
FcgidInitialEnv HTTP_ACCEPT_LANGUAGE
FcgidInitialEnv HTTP_ACCEPT_CHARSET
FcgidInitialEnv HTTP_COOKIE
FcgidInitialEnv HTTP_HOST
FcgidInitialEnv HTTP_X_FORWARDED_FOR
FcgidInitialEnv HTTP_CONNECTION
FcgidInitialEnv HTTP_CACHE_CONTROL
FcgidInitialEnv HTTP_VIA
FcgidInitialEnv SERVER_SIGNATURE
FcgidInitialEnv SERVER_SOFTWARE
FcgidInitialEnv SERVER_NAME
FcgidInitialEnv SERVER_ADDR
FcgidInitialEnv SERVER_PORT
FcgidInitialEnv REMOTE_ADDR
FcgidInitialEnv DOCUMENT_ROOT
FcgidInitialEnv SERVER_ADMIN
FcgidInitialEnv SCRIPT_FILENAME
FcgidInitialEnv REMOTE_PORT
FcgidInitialEnv GATEWAY_INTERFACE
FcgidInitialEnv SERVER_PROTOCOL
FcgidInitialEnv REQUEST_METHOD
FcgidInitialEnv QUERY_STRING
FcgidInitialEnv REQUEST_URI
FcgidInitialEnv SCRIPT_NAME

<Directory /auto/web-sciam/app/root>
Include conf/${EIF_APACHE_POOL}/auth.conf
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<location />
Options ExecCGI
AddHandler fcgid-script .fcgi
require valid-user
</location>

<Files /auto/web-sciam/app/script/app_fastcgi_eifweb.pl>
PassEnv REMOTE_USER
PassEnv SCRIPT_URI
PassEnv SERVER_NAME
SetHandler fcgid-script
</Files>

Thanks,
Riju

On Thu, Feb 2, 2012 at 1:43 PM, Tomas Doran <bobtfish [at] bobtfish> wrote:
>
> On 2 Feb 2012, at 03:37, Riju Royson wrote:
>
>> Hi,
>>
>> My team owns a dedicated catalyst application which is working on
>> mod_perl and apache. The application is for generating several reports
>> and is used by a huge number of employees in our organization. Now we
>> need to move out of mod_perl because our organization stopped
>> supporting it. After some research work, we decided to go with fcgid.
>
>
> Why fcgid?
>
> It's generally for shared hosting, you're not doing shared hosting.
>
>
>> Any pointers to this issue will be very helpful.
>
>
> Any actual info to help debug it would be helpful :_)
>
> Can you show us your apache config, and what a dumped $c->request looks
> like?
>
> Cheers
> t0m
>
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/



--
Regards,
Riju Royson

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Feb 2, 2012, 1:37 AM

Post #4 of 9 (386 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

On 2 Feb 2012, at 08:45, Riju Royson wrote:

> Hi,
>
> $c->request message contains,
> _body is 0
> _context is APP=HASH(0xcb03754)
> action is default
> address is
> arguments is ARRAY(0xcc14eec)
> base is http:///
> body_parameters is HASH(0xc982a6c)
> captures is ARRAY(0xcb03a0c)
> cookies is HASH(0xcb03bec)
> headers is HTTP::Headers=HASH(0xcb0334c)
> hostname is
> match is
> method is
> parameters is HASH(0xcb03a84)
> path is
> protocol is
> query_parameters is HASH(0xcb03c34)
> secure is 0
> uploads is HASH(0xcb03b44)
> uri is http:///
> user is
>

That's not an actual dump that shows anything useful, need to see
inside the URI objects without them being stringified (to clearly be
wrong!)..

I meant a Data::Dump or Data::Dumper dump, as per what you'd get
from /?dump_info=1 if you're using the (default) RenderView action and
have debug turned on..
>
> FcgidInitialEnv LD_LIBRARY_PATH

Unless I'm mistaken, this sets this environment variable to the value
specified in the config...

Meaning you set LD_LIBRARY_PATH to ''
>
> FcgidInitialEnv REQUEST_METHOD
> FcgidInitialEnv QUERY_STRING
> FcgidInitialEnv REQUEST_URI
> FcgidInitialEnv SCRIPT_NAME

And so here you stomp all over the request path and etc, resulting in
it being blank...

I suspect you'd see this if you dumped the PSGI env ($c->engine->env)
- assuming that you're using Catalyst 5.9

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


rijuroyson at gmail

Feb 2, 2012, 3:39 AM

Post #5 of 9 (397 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

Hi,

Thanks for your reply. I tried using Data::Dump, the values are as follows,

my $a = bless({
_body => 0,
_context => bless({
action => bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "default",
namespace => "",
"reverse" => "default",
}, "Catalyst::Action"),
counter => { auto => 1, begin => 1, default => 1 },
namespace => "",
request => 'fix',
response => bless({
_context => 'fix',
body => "",
cookies => {},
headers => bless({
"x-catalyst" => "5.7014" }, "HTTP::Headers"),
status => 200,
}, "Catalyst::Response"),
stack => [
bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "_DISPATCH",
namespace => "",
"reverse" => "_DISPATCH",
}, "Catalyst::Action"),
bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "_ACTION",
namespace => "",
"reverse" => "_ACTION",
}, "Catalyst::Action"),
'fix',
],
stash => {
PERL_ENV => {
AUTHENTICATE_CN
AUTH_TYPE
CATALYST_ENGINE
CCTOOLSDB_ETCDIR
CC_LIBDIR
DOCUMENT_ROOT
GATEWAY_INTERFACE
HTTPCGIBin
HTTPData
HTTPDocumentRoot
HTTPLib
HTTP_ACCEPT
HTTP_ACCEPT_CHARSET
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION
HTTP_COOKIE
session_ser=NjM4MS0qLTEzMjc2NTUzNTQtKi0xMC42NS44MS42NS0qLU1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDUuMTsgcnY6OS4wLjEpIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvOS4wLjE%3D-%2A-0059c83d3ff95025ec5f8926608d563e;
ObSSOCookie=hmarB4Q%2BSj%2FonDvWx3BBD7NE26pHqGa4Ovxi13ciPFSCFARV5ZC%2BCRdclw6ZLJw7Z%2FDc9VtPEcDOxrEd1WpKzXg8m2ysVzD%2B27vIs8eMQamO9j2xJwzyapdiqtI5pju21ngDwCQi2prxEgW%2B0vfuYgZrSqAnl%2F1YPthUQ0NuV6MMDVTCTcj4GQfiMbGloE7syWst%2FC%2Fle6BigvidzelUuOjk5leiV0n%2BfQBiAfLAfQNsosN4dOGGyZmOby60I%2Fboo%2B%2F9sQgF8Hj1rVZgFHNe%2F4iKdo3pDQVzibXXbrCkosV0W8GAIys563weYOHZumlQQdWCW5Q4aEX9DmN55%2FhQbjnMD9rnCkIRaB8PAm23Yz4%3D;
cts_session=eb856b89105b8d60fe5b133c37c8634f66f7107a; s_cc=true;
s_ria=flash%2011%7C;
cdc_ut=prevacct:cisco-us\$accesslevel:guest\$ts:1328089568141;
s_suite=cisco-us; s_country=US; s_language=en; s_nr=1328089568148-New;
s_sq=%5B%5BB%5D%5D; s_ppv=100",
HTTP_HOST
HTTP_REFERER
HTTP_USER_AGENT
Firefox/9.0.1",
ORACLE_HOME
ORACLE_LIBDIR
PATH
PATH_INFO
PATH_TRANSLATED
QUERY_STRING => "",
REMOTE_ADDR
REMOTE_PORT => 2596,
REMOTE_USER
REQUEST_METHOD => "GET",
REQUEST_URI
SCRIPT_FILENAME
SCRIPT_NAME
SCRIPT_URI
SCRIPT_URL
SERVER_ADDR
SERVER_ADMIN
SERVER_NAME
SERVER_PORT => 80,
SERVER_PROTOCOL
SERVER_SIGNATURE
Port 80</address>\n",
SERVER_SOFTWARE
TNS_ADMIN
UNIQUE_ID
"cecBrowserFullSupport" => 1,
},

Here PERL_INC and PERL_INC_HASH is shown
then again,

action => "default",
address => undef,
arguments => [],
base => bless(do{\(my $o = "http:///")}, "URI::http"),
body_parameters => {},
captures => [],
cookies => {},
headers => bless({}, "HTTP::Headers"),
hostname => undef,
match => "",
method => undef,
parameters => {},
path => "",
protocol => undef,
query_parameters => {},
secure => 0,
uploads => {},
uri => bless(do{\(my $o = "http:///")}, "URI::http"),
user => undef,
}, "Catalyst::Request::REST");
$a->{_context}{request} = $a;
$a->{_context}{response}{_context} = $a->{_context};
$a->{_context}{stack}[2] = $a->{_context}{action};
$a->{_context}{stats}{stack}[0]{_children}[0]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[0]{_children}[1]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[0]{_children}[2]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[1] =
$a->{_context}{stats}{stack}[0]{_children}[2];
$a->{_context}{stats}{tree} = $a->{_context}{stats}{stack}[0];
$a;
}

I removed the FcgidInitialEnv lines fromhttpd conf. But still am not
able to move forward. We are using catalyst 5.7014.

Regards,
Riju

On Thu, Feb 2, 2012 at 3:07 PM, Tomas Doran <bobtfish [at] bobtfish> wrote:
>
> On 2 Feb 2012, at 08:45, Riju Royson wrote:
>
>> Hi,
>>
>> $c->request message contains,
>> _body is 0
>> _context is APP=HASH(0xcb03754)
>> action is default
>> address is
>> arguments is ARRAY(0xcc14eec)
>> base is http:///
>> body_parameters is HASH(0xc982a6c)
>> captures is ARRAY(0xcb03a0c)
>> cookies is HASH(0xcb03bec)
>> headers is HTTP::Headers=HASH(0xcb0334c)
>> hostname is
>> match is
>> method is
>> parameters is HASH(0xcb03a84)
>> path is
>> protocol is
>> query_parameters is HASH(0xcb03c34)
>> secure is 0
>> uploads is HASH(0xcb03b44)
>> uri is http:///
>> user is
>>
>
> That's not an actual dump that shows anything useful, need to see inside the
> URI objects without them being stringified (to clearly be wrong!)..
>
> I meant a Data::Dump or Data::Dumper dump, as per what you'd get from
> /?dump_info=1 if you're using the (default) RenderView action and have debug
> turned on..
>>
>>
>> FcgidInitialEnv LD_LIBRARY_PATH
>
>
> Unless I'm mistaken, this sets this environment variable to the value
> specified in the config...
>
> Meaning you set LD_LIBRARY_PATH to ''
>
>>
>> FcgidInitialEnv REQUEST_METHOD
>> FcgidInitialEnv QUERY_STRING
>> FcgidInitialEnv REQUEST_URI
>> FcgidInitialEnv SCRIPT_NAME
>
>
> And so here you stomp all over the request path and etc, resulting in it
> being blank...
>
> I suspect you'd see this if you dumped the PSGI env ($c->engine->env) -
> assuming that you're using Catalyst 5.9
>
>
> Cheers
> t0m
>
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/



--
Regards,
Riju Royson

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Feb 2, 2012, 5:09 AM

Post #6 of 9 (380 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

On 2 Feb 2012, at 11:39, Riju Royson wrote:

> Hi,
>
> Thanks for your reply. I tried using Data::Dump, the values are as
> follows,

<snip>

> stash => {
> PERL_ENV => {
> AUTHENTICATE_CN
> => "rkurien",

So this is in the per request stash.. I wonder why your app is
grabbing PERL_ENV...

Can you grab the app for the phrase PERL_ENV, and show us the top
level application class, and whichever class contains PERL_ENV?
>
> PATH_INFO
> => "/static/images/logo.gif",
> PATH_TRANSLATED
> => "/auto/web-sciam/app/root/static/images/logo.gif",
>
> QUERY_STRING => "",
> REMOTE_ADDR
> => "10.78.184.182",
>
> REMOTE_PORT => 2596,
> REMOTE_USER
> => "rkurien",
>
> REQUEST_METHOD => "GET",
> REQUEST_URI
> => "/cts/static/images/logo.gif",
> SCRIPT_FILENAME
> => "/auto/web-sciam/app/script/cts_fastcgi_eifweb.pl",
> SCRIPT_NAME
> => "/app",
> SCRIPT_URI
> => "http://app.com/cts/static/images/logo.gif",
> SCRIPT_URL
> => "/cts/static/images/logo.gif",
> SERVER_ADDR
> => "10.22.181.151",
> SERVER_ADMIN
> => "webmaster-cts\@cisco.com",
> SERVER_NAME
> => "app.com",
>
> SERVER_PORT => 80,
>

So these look like at whatever point this is captured, the environment
is sane - why this isn't being picked up by Catalyst::Engine::CGI
(which the FastCGI engine subclasses) is a mystery to me, but I
suspect your app code..

>
> I removed the FcgidInitialEnv lines fromhttpd conf. But still am not
> able to move forward.

Does it all work if you use the development server? I.e. is it _only_
FastCGI that's an issue, or generally with anything not mod_perl

> We are using catalyst 5.7014.

This version is almost 4 years old, which is a lifetime! But it's
probably easier to get you sorted out where you are right now than
trying to upgrade as well.

Cheers
t0m


Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


lists at eightdegrees

Feb 2, 2012, 5:35 AM

Post #7 of 9 (386 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

>
> Can you grab the app for the phrase PERL_ENV, and show us the top level
> application class, and whichever class contains PERL_ENV?


t0m meant to say "Can you grep the app for the phrase PERL_ENV,"

..just to avoid any confusion..


>
>
>> PATH_INFO
>> => "/static/images/logo.gif",
>> PATH_TRANSLATED
>> => "/auto/web-sciam/app/root/**static/images/logo.gif",
>> QUERY_STRING =>
>> "",
>> REMOTE_ADDR
>> => "10.78.184.182",
>> REMOTE_PORT =>
>> 2596,
>> REMOTE_USER
>> => "rkurien",
>> REQUEST_METHOD =>
>> "GET",
>> REQUEST_URI
>> => "/cts/static/images/logo.gif",
>> SCRIPT_FILENAME
>> => "/auto/web-sciam/app/script/ct**s_fastcgi_eifweb.pl<http://cts_fastcgi_eifweb.pl>
>> ",
>> SCRIPT_NAME
>> => "/app",
>> SCRIPT_URI
>> => "http://app.com/cts/static/**images/logo.gif<http://app.com/cts/static/images/logo.gif>
>> ",
>> SCRIPT_URL
>> => "/cts/static/images/logo.gif",
>> SERVER_ADDR
>> => "10.22.181.151",
>> SERVER_ADMIN
>> => "webmaster-cts\@cisco.com",
>> SERVER_NAME
>> => "app.com",
>> SERVER_PORT =>
>> 80,
>>
>>
> So these look like at whatever point this is captured, the environment is
> sane - why this isn't being picked up by Catalyst::Engine::CGI (which the
> FastCGI engine subclasses) is a mystery to me, but I suspect your app code..
>
>
>
>> I removed the FcgidInitialEnv lines fromhttpd conf. But still am not
>> able to move forward.
>>
>
> Does it all work if you use the development server? I.e. is it _only_
> FastCGI that's an issue, or generally with anything not mod_perl
>
>
> We are using catalyst 5.7014.
>>
>
> This version is almost 4 years old, which is a lifetime! But it's probably
> easier to get you sorted out where you are right now than trying to upgrade
> as well.
>
> Cheers
> t0m
>
>
>
> Cheers
> t0m
>
>
> ______________________________**_________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
> Searchable archive: http://www.mail-archive.com/**
> catalyst [at] lists/<http://www.mail-archive.com/catalyst [at] lists/>
> Dev site: http://dev.catalyst.perl.org/
>


rijuroyson at gmail

Feb 2, 2012, 9:20 PM

Post #8 of 9 (385 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

Hi,

Thanks for all your help. I was just trying to dump PERL_ENV values to
take a look on them. I have removed that line from code now. So
nowhere else PERL_ENV is specified. Dumping catalyst request gives the
following data now,

my $a = bless({
_body => 0,
_context => bless({
action => bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "default",
namespace => "",
"reverse" => "default",
}, "Catalyst::Action"),
counter => { auto => 1, begin => 1, default => 1 },
namespace => "",
request => 'fix',
response => bless({
_context => 'fix',
body => "",
cookies => {},
headers => bless({
"x-catalyst" => "5.7014" }, "HTTP::Headers"),
status => 200,
}, "Catalyst::Response"),
stack => [
bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "_DISPATCH",
namespace => "",
"reverse" => "_DISPATCH",
}, "Catalyst::Action"),
bless({
attributes => { Private => [undef] },
class => "App::Controller::Root",
code => sub { "???" },
name => "_ACTION",
namespace => "",
"reverse" => "_ACTION",
}, "Catalyst::Action"),
'fix',
],
stash => { url =>
"http://app.com/app/static/images/logo.gif" },
state => 0,
stats => bless({
enabled => 1,
stack => [
bless({
_children => [
bless({

_children => [],

_depth => 0,

_height => 1,

_node => {

action => "/begin",

comment => "",

elapsed => "0.000134",

t => [1328245954, 788449],

},

_parent => 'fix',

_uid => "begin1",

_width => 1,

}, "Tree::Simple"),
bless({

_children => [],

_depth => 0,

_height => 1,

_node => {

action => "/auto",

comment => "",

elapsed => "0.000118",

t => [1328245954, 789515],

},

_parent => 'fix',

_uid => "auto1",

_width => 1,

}, "Tree::Simple"),
bless({

_children => [],

_depth => 0,

_height => 1,

_node => {

action => "/default",

comment => "",

elapsed => "0.001003",

t => [1328245954, 790518],

},

_parent => 'fix',

_uid => "default1",

_width => 1,

}, "Tree::Simple"),
],
_depth => -1,
_height => 2,
_node => {
t => [1328245954, 784484] },
_parent => "root",
_uid =>
"0xc7d8b08",
_width => 3,
}, "Tree::Simple"),
'fix',
],
tree => 'fix',
}, "Catalyst::Stats"),
}, "App"),
action => "default",
address => undef,
arguments => [],
base => bless(do{\(my $o = "http:///")}, "URI::http"),
body_parameters => {},
captures => [],
cookies => {},
headers => bless({}, "HTTP::Headers"),
hostname => undef,
match => "",
method => undef,
parameters => {},
path => "",
protocol => undef,
query_parameters => {},
secure => 0,
uploads => {},
uri => bless(do{\(my $o = "http:///")}, "URI::http"),
user => undef,
}, "Catalyst::Request::REST");
$a->{_context}{request} = $a;
$a->{_context}{response}{_context} = $a->{_context};
$a->{_context}{stack}[2] = $a->{_context}{action};
$a->{_context}{stats}{stack}[0]{_children}[0]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[0]{_children}[1]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[0]{_children}[2]{_parent} =
$a->{_context}{stats}{stack}[0];
$a->{_context}{stats}{stack}[1] =
$a->{_context}{stats}{stack}[0]{_children}[2];
$a->{_context}{stats}{tree} = $a->{_context}{stats}{stack}[0];


Regards,
Riju

On Thu, Feb 2, 2012 at 7:05 PM, Jason Galea <lists [at] eightdegrees> wrote:
>> Can you grab the app for the phrase PERL_ENV, and show us the top level
>> application class, and whichever class contains PERL_ENV?
>
>
> t0m meant to say "Can you grep the app for the phrase PERL_ENV,"
>
> ..just to avoid any confusion..
>
>>
>>
>>>
>>>                                              PATH_INFO
>>> => "/static/images/logo.gif",
>>>                                              PATH_TRANSLATED
>>> => "/auto/web-sciam/app/root/static/images/logo.gif",
>>>                                              QUERY_STRING            =>
>>> "",
>>>                                              REMOTE_ADDR
>>> => "10.78.184.182",
>>>                                              REMOTE_PORT             =>
>>> 2596,
>>>                                              REMOTE_USER
>>> => "rkurien",
>>>                                              REQUEST_METHOD          =>
>>> "GET",
>>>                                              REQUEST_URI
>>> => "/app/static/images/logo.gif",
>>>                                              SCRIPT_FILENAME
>>> => "/auto/web-sciam/app/script/app_fastcgi_eifweb.pl",
>>>                                              SCRIPT_NAME
>>> => "/app",
>>>                                              SCRIPT_URI
>>> => "http://app.com/app/static/images/logo.gif",
>>>                                              SCRIPT_URL
>>> => "/app/static/images/logo.gif",
>>>                                              SERVER_ADDR
>>> => "10.22.181.151",
>>>                                              SERVER_ADMIN
>>> => "webmaster-app\@.com",
>>>                                              SERVER_NAME
>>> => "app.com",
>>>                                              SERVER_PORT             =>
>>> 80,
>>>
>>
>> So these look like at whatever point this is captured, the environment is
>> sane - why this isn't being picked up by Catalyst::Engine::CGI (which the
>> FastCGI engine subclasses) is a mystery to me, but I suspect your app code..
>>
>>
>>>
>>> I removed the FcgidInitialEnv lines fromhttpd conf. But still am not
>>> able to move forward.
>>
>>
>> Does it all work if you use the development server? I.e. is it _only_
>> FastCGI that's an issue, or generally with anything not mod_perl
>>
>>
>>> We are using catalyst  5.7014.
>>
>>
>> This version is almost 4 years old, which is a lifetime! But it's probably
>> easier to get you sorted out where you are right now than trying to upgrade
>> as well.
>>
>> Cheers
>> t0m
>>
>>
>>
>> Cheers
>> t0m
>>
>>
>> _______________________________________________
>> List: Catalyst [at] lists
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive:
>> http://www.mail-archive.com/catalyst [at] lists/
>> Dev site: http://dev.catalyst.perl.org/
>
>
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>



--
Regards,
Riju Royson

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Feb 2, 2012, 11:09 PM

Post #9 of 9 (382 views)
Permalink
Re: fcgid configuration for catalyst [In reply to]

On 3 Feb 2012, at 05:20, Riju Royson wrote:

> Hi,
>
> Thanks for all your help. I was just trying to dump PERL_ENV values to
> take a look on them. I have removed that line from code now. So
> nowhere else PERL_ENV is specified. Dumping catalyst request gives the
> following data now,

So, same problem, same dump and you haven't shown us any of the code
which would let us speculate.. I'm still going for this being a
problem that your app or setip is causing in some way..

A dump from the environment in Catalyst::Engine::CGI (the method that
sets $c->req->base and $c->req->uri) would also confirm that the env
is broken by the time Catalyst sees it, and can you confirm what does
or doesn't happen with the dev server as previously requested?

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.