http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8970

--- Comment #7 from Paul Poulain <[email protected]> ---
still trying to figure out why it works for me on a master.
Here are the log I get on plack:
seek() on closed filehandle _GEN_5 at /usr/share/perl5/CGI/Emulate/PSGI.pm line
31.
Undefined subroutine &CGI::Emulate::PSGI::croak called at
/usr/share/perl5/CGI/Emulate/PSGI.pm line 31.

(and nothing more)

I checked configurations files on both servers, and couldn't see any
difference.

How I run starman:
starman -M FindBin --max-requests 50 --workers 6 --port 5001 --pid
/path/starman_pro.pid koha.psgi

my koha.psgi is:

#!/usr/bin/perl
use Plack::Builder;
use Plack::App::CGIBin;
use Plack::Middleware::Debug;
use Plack::App::Directory;
#use Plack::Middleware::Debug::MemLeak;
use lib("/home/paul/koha.dev/koha-community");
use C4::Context;
use C4::Languages;
use C4::Members;
use C4::Dates;
use C4::Boolean;
use C4::Letters;
use C4::Koha;
use C4::XSLT;
use C4::Branch;
use C4::Category;

my $app=Plack::App::CGIBin->new(root => "/home/paul/koha.dev/koha-community/");
builder {
#        enable 'Debug',  panels => [
#                qw(Environment Response Timer Memory),
#               [ 'Profiler::NYTProf', exclude => [qw(.*\.css .*\.png .*\.ico
.*\.js .*\.gif)] ],
#               [ 'DBITrace', level => 1 ],
#        ];

        enable "Plack::Middleware::Static",
                path => qr{^/intranet-tmpl/}, root =>
'/home/paul/koha.dev/koha-community/koha-tmpl/';

       enable "Plack::Middleware::Static::Minifier",
               path => qr{^/intranet-tmpl/},
               root => './koha-tmpl/';

#        enable 'StackTrace';
        mount "/cgi-bin/koha" => $app;

};

(note that I also tried to uncommand "enable 'StackTrace', no difference, still
work on my laptop)

my laptop is running Ubuntu 12.04LTS. Plack version is 0.9985

On the (faulty) server : Debian + Plack version 1.0013

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to