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

Mailing List Archive: Catalyst: Users

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")

 

 

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


erik.wasser at iquer

May 2, 2012, 11:52 PM

Post #1 of 3 (225 views)
Permalink
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")

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


_______________________________________________
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

May 3, 2012, 3:04 AM

Post #2 of 3 (215 views)
Permalink
Re: 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") [In reply to]

On 3 May 2012, at 07:52, Erik Wasser wrote:
> [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?

Catalyst uses the psgi.streaming interface, and mod_psgi doesn't support this.

Try adding Plack::Middleware::BufferedStreaming to make your responses unbuffered?

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/


erik.wasser at iquer

May 3, 2012, 6:06 AM

Post #3 of 3 (212 views)
Permalink
Re: 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") [In reply to]

On 05/03/2012 12:04 PM, Tomas Doran wrote:

>> 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?
>
> Catalyst uses the psgi.streaming interface, and mod_psgi doesn't support this.
>
> Try adding Plack::Middleware::BufferedStreaming to make your responses unbuffered?

Thanks for the answer.

I've helped myself and I'm using now mod_perl with PSGI and this worked
right out of box.

Case closed.

--
So long... Erik


_______________________________________________
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.