[Catalyst] Problems upgrading .psgi file (Warning "You are running Catalyst::Engine::PSGI, which is considered a legacy engine for, this version of Catalyst." -> Error "response must be an array reference")

Erik Wasser erik.wasser at iquer.net
Thu May 3 06:52:38 GMT 2012


I'm using Catalyst with the mod_psgi (lastest version from
https://github.com/spiritloose/mod_psgi/) with my version of an .psgi file.

Recently I got this warning during the startup of my apache:

(removed timestamps for a better readability)

[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[notice] Digest: generating secret for digest authentication ...
[notice] Digest: done
You are running Catalyst::Engine::PSGI, which is considered a legacy
engine for
this version of Catalyst.  We will continue running and use your
existing psgi
file, but it is recommended to perform the trivial upgrade process,
which will
leave you with less code and a forward path.

You are running Catalyst::Engine::PSGI, which is considered a legacy
engine for
this version of Catalyst.  We will continue running and use your
existing psgi
file, but it is recommended to perform the trivial upgrade process,
which will
leave you with less code and a forward path.

Please review Catalyst::Upgrading
Subroutine Catalyst::Request::env redefined at
/var/lib/catalyst/lib/perl5/site_perl/5.8.8/Catalyst/Engine/PSGI.pm line
13, <DATA> line 998.
[notice] Apache configured -- resuming normal operations
env as a writer is deprecated, you probably need to upgrade
Catalyst::Engine::PSGI at
/var/lib/catalyst/lib/perl5/site_perl/5.8.8/Catalyst/Engine.pm line 29,
<DATA> line 998.
[...]

No problem, after reading "Catalyst::Runtime" I modified my well.psgi

#!/usr/bin/env perl

use strict;
use warnings;

use Plack::Builder;
use Well;

my $app = Well->psgi_app(@_);
$app;

After doing that I only got the following error in my logfiles:

[error] response must be an array reference

This error message comes from the source of mod_psgi.

The content after the restart with the modified .psgi file is a "500
Internal Server Error" error page from every request.

I'm using Catalyst 5.90011. What's wrong here? Isn't mod_psgi working
anymore? Is mod_psgi still the way to go with apache and catalyst? Did I
read "Catalyst::Runtime" correctly?

Thanks for your help and work.

-- 
So long... Erik




More information about the Catalyst mailing list