Discussion:
[jifty-devel] FCGI dependencies broken with Plack
Stanislav Sinyagin
2010-03-12 12:39:30 UTC
Permalink
hi,

just upgraded to the latest GIT head. Out of the box, the makefile does not install FCGI
pre-requisites, and Plack tests look like this:

t/Plack-Handler/apache1.t ....................... skipped: Test requires module 'Apache::Constants' but it's not found
t/Plack-Handler/apache2.t ....................... skipped: TEST_APACHE2 is not set
t/Plack-Handler/cgi.t ........................... skipped: Test requires module 'HTTP::Request::AsCGI' but it's not found
t/Plack-Handler/fcgi.t .......................... skipped: Test requires module 'FCGI::ProcManager' but it's not found
t/Plack-Handler/fcgi_client.t ................... skipped: Test requires module 'FCGI::Client' but it's not found
t/Plack-Handler/http_server_simple.t ............ skipped: Test requires module 'HTTP::Server::Simple::PSGI' but it's not found
t/Plack-Handler/standalone-prefork.t ............ skipped: Test requires module 'Parallel::Prefork' but it's not found


as a result, my FCGI installation stopped working.
It still doesn't work after I installed FCGI::ProcManager and FCGI::Client:

2010-03-12 13:37:52: (mod_fastcgi.c.2618) FastCGI-stderr: Can't call method "read" without a package or object reference at /usr/lib/perl5/site_perl/5.8.8/Plack/Request.pm line 94.


digging further with the hope to find the missing module.
Jesse Vincent
2010-03-12 14:09:51 UTC
Permalink
Post by Stanislav Sinyagin
hi,
just upgraded to the latest GIT head. Out of the box, the makefile does not install FCGI
What version of Plack are you trying with?
Post by Stanislav Sinyagin
t/Plack-Handler/apache1.t ....................... skipped: Test requires module 'Apache::Constants' but it's not found
t/Plack-Handler/apache2.t ....................... skipped: TEST_APACHE2 is not set
t/Plack-Handler/cgi.t ........................... skipped: Test requires module 'HTTP::Request::AsCGI' but it's not found
t/Plack-Handler/fcgi.t .......................... skipped: Test requires module 'FCGI::ProcManager' but it's not found
t/Plack-Handler/fcgi_client.t ................... skipped: Test requires module 'FCGI::Client' but it's not found
t/Plack-Handler/http_server_simple.t ............ skipped: Test requires module 'HTTP::Server::Simple::PSGI' but it's not found
t/Plack-Handler/standalone-prefork.t ............ skipped: Test requires module 'Parallel::Prefork' but it's not found
as a result, my FCGI installation stopped working.
2010-03-12 13:37:52: (mod_fastcgi.c.2618) FastCGI-stderr: Can't call method "read" without a package or object reference at /usr/lib/perl5/site_perl/5.8.8/Plack/Request.pm line 94.
digging further with the hope to find the missing module.
_______________________________________________
jifty-devel mailing list
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
--
Stanislav Sinyagin
2010-03-12 15:47:30 UTC
Permalink
----- Original Message ----
On Fri, Mar 12, 2010 at 04:39:30AM -0800, Stanislav Sinyagin
Post by Stanislav Sinyagin
hi,
just upgraded to the latest GIT head. Out of
the box, the makefile does not install FCGI
pre-requisites, and Plack
What version of Plack are you trying
Post by Stanislav Sinyagin
with?
tried with two latest Plack versions from CPAN:
Plack-0.9916
Plack-0.9915

I have a feeling that Jifty somehow fails to pass the request to Plack. Plack's internal FCGI tests went fine after I installed the missing modules.

I run lighttpd with fastcgi on a CentOS box.
Alex Vandiver
2010-03-18 22:17:39 UTC
Permalink
Have you tried with the latest Plack from github?
- Alex
Stanislav Sinyagin
2010-03-21 22:16:07 UTC
Permalink
----- Original Message ----
Have you tried with the latest
Post by Alex Vandiver
Plack from github?
nope. will try it during the week.
Chia-liang Kao
2010-03-18 03:09:53 UTC
Permalink
Hi,
Post by Stanislav Sinyagin
hi,
just upgraded to the latest GIT head. Out of the box, the makefile does not install FCGI
t/Plack-Handler/apache1.t ....................... skipped: Test
requires module 'Apache::Constants' but it's not found
TEST_APACHE2 is not set
t/Plack-Handler/cgi.t ........................... skipped: Test
requires module 'HTTP::Request::AsCGI' but it's not found
t/Plack-Handler/fcgi.t .......................... skipped: Test
requires module 'FCGI::ProcManager' but it's not found
t/Plack-Handler/fcgi_client.t ................... skipped: Test
requires module 'FCGI::Client' but it's not found
t/Plack-Handler/http_server_simple.t ............ skipped: Test
requires module 'HTTP::Server::Simple::PSGI' but it's not found
t/Plack-Handler/standalone-prefork.t ............ skipped: Test
requires module 'Parallel::Prefork' but it's not found
as a result, my FCGI installation stopped working.
It still doesn't work after I installed FCGI::ProcManager and
I've added FCGI::ProcManager to dependency, thanks!
Post by Stanislav Sinyagin
2010-03-12 13:37:52: (mod_fastcgi.c.2618) FastCGI-stderr: Can't call
method "read" without a package or object reference at /usr/lib/
perl5/site_perl/5.8.8/Plack/Request.pm line 94.
I can't seem to reproduce this... how is your fastcgi instance being
configured?

I am using FCGI::ProcManager 0.19 and Plack 0.9917

my apache conf is something like:

FastCgiIpcDir /tmp/fastcgi-foo

FastCgiServer /path/to/my-jifty-project/bin/jifty -initial-env PATH=/
Users/clkao/perl5.10/bin:/bin:/usr/bin:/usr/local/bin -initial-env
JIFTY_COMMAND=fastcgi -processes 3 -idle-timeout 1200
ScriptAlias / /path/to/my-jifty-project/bin/jifty/

Cheers,
CLK
Stanislav Sinyagin
2010-05-06 12:10:54 UTC
Permalink
after upgrading to Plack 0.9935 and Jifty HEAD, the problem is gone.







________________________________
From: Chia-liang Kao <***@bestpractical.com>
To: Nifty apps in a Jiffy <jifty-***@lists.jifty.org>
Sent: Thu, March 18, 2010 4:09:53 AM
Subject: Re: [jifty-devel] FCGI dependencies broken with Plack

Hi,


On 2010/3/12, at 䞋午 8:39, Stanislav Sinyagin wrote:

hi,
Post by Stanislav Sinyagin
just upgraded to the latest GIT head. Out of the box, the makefile does not install FCGI
t/Plack-Handler/apache1.t ....................... skipped: Test requires module 'Apache::Constants' but it's not found
t/Plack-Handler/apache2.t ....................... skipped: TEST_APACHE2 is not set
t/Plack-Handler/cgi.t ........................... skipped: Test requires module 'HTTP::Request::AsCGI' but it's not found
t/Plack-Handler/fcgi.t .......................... skipped: Test requires module 'FCGI::ProcManager' but it's not found
t/Plack-Handler/fcgi_client.t ................... skipped: Test requires module 'FCGI::Client' but it's not found
t/Plack-Handler/http_server_simple.t ............ skipped: Test requires module 'HTTP::Server::Simple::PSGI' but it's not found
t/Plack-Handler/standalone-prefork.t ............ skipped: Test requires module 'Parallel::Prefork' but it's not found
as a result, my FCGI installation stopped working.
I've added FCGI::ProcManager to dependency, thanks!

2010-03-12 13:37:52: (mod_fastcgi.c.2618) FastCGI-stderr: Can't call method "read" without a package or object reference at /usr/lib/perl5/site_perl/5.8.8/Plack/Request.pm line 94.
I can't seem to reproduce this... how is your fastcgi instance being configured?


I am using FCGI::ProcManager 0.19 and Plack 0.9917

my apache conf is something like:

FastCgiIpcDir /tmp/fastcgi-foo

FastCgiServer /path/to/my-jifty-project/bin/jifty -initial-env PATH=/Users/clkao/perl5.10/bin:/bin:/usr/bin:/usr/local/bin -initial-env JIFTY_COMMAND=fastcgi -processes 3 -idle-timeout 1200
ScriptAlias / /path/to/my-jifty-project/bin/jifty/

Cheers,
CLK

Loading...