部署Perl Dancer应用。似乎每次舞者都会前进'
http://search.cpan.org/~yanick/Dancer-1.3140/lib/Dancer.pm#forward
在uWSGI部署的应用程序中,即使前进工作正常,uWSGI也会记录此警告:跟踪从(eval 839)第1行开始 main :: ANON (' Dancer :: Continuation :: Route :: Forwarded = HASH(0x65e4d60)')在/usr/share/perl5/Dancer/Continuation.pm中调用第12行 Dancer :: Continuation :: throw(' Dancer :: Continuation :: Route :: Forwarded = HASH(0x65e4d60)')在/usr/share/perl5/Dancer.pm第151行调用 在/home/i2/www/lib/user/profile.pm第103行调用的Dancer :: forward(' / error / msg / Unknown + user') 用户::个人资料:: ANON /usr/share/perl5/Dancer/Route.pm第262行 Dancer :: Route :: execute(' Dancer :: Route = HASH(0x5b40ca0)')在/usr/share/perl5/Dancer/Route.pm第177行调用 Dancer :: Route ::在/usr/local/share/perl/5.18.2/Try/Tiny.pm第76行尝试{...} eval {...} at /usr/local/share/perl/5.18.2/Try/Tiny.pm第72行 尝试:: Tiny :: try(' CODE(0x275a590)',' Try :: Tiny :: Catch = REF(0x65e4cb8)')在/ usr / share / perl5调用/Dancer/Route.pm第191行 Dancer :: Route :: run(' Dancer :: Route = HASH(0x5b40ca0)',' Dancer :: Request = HASH(0x2266fb0)')在/ usr / share调用/perl5/Dancer/Renderer.pm第135行 Dancer :: Renderer ::在/usr/local/share/perl/5.18.2/Try/Tiny.pm第81行尝试{...} eval {...} at /usr/local/share/perl/5.18.2/Try/Tiny.pm第72行 尝试:: Tiny :: try(' CODE(0x60a4458)',' Try :: Tiny :: Catch = REF(0x65e4ac0)')在/ usr / share / perl5调用/Dancer/Renderer.pm第144行 Dancer :: Renderer :: get_action_response(' Dancer :: Renderer')在/usr/share/perl5/Dancer/Renderer.pm第31行调用 Dancer :: Renderer :: render_action(' Dancer :: Renderer')在/usr/share/perl5/Dancer/Handler.pm第84行调用 Dancer :: Handler ::在/usr/local/share/perl/5.18.2/Try/Tiny.pm第76行尝试{...} eval {...} at /usr/local/share/perl/5.18.2/Try/Tiny.pm第72行 尝试:: Tiny :: try(' CODE(0x1b5cfa8)',' Try :: Tiny :: Catch = REF(0x60a4350)')在/ usr / share / perl5调用/Dancer/Handler.pm第113行 Dancer :: Handler :: render_request(' Dancer :: Request = HASH(0x2266fb0)')在/usr/share/perl5/Dancer/Handler.pm第76行调用 Dancer :: Handler :: handle_request(' Dancer :: Handler :: PSGI = HASH(0x5f3f150)',' Dancer :: Request = HASH(0x2266fb0)')调用/ usr / share / perl5 / Dancer / Handler.pm第123行 在bin / app.pl第0行调用的Dancer :: Handler :: ANON (' HASH(0xe4e720)') eval {...}在bin / app.pl第0行
我确实启用了PCRE。我确定这是因为安装时PCRE = True,而且我没有收到警告。
有什么想法?我显然可以忽略,但我想确保我没有创建竞争条件,而且我也只是想要干净利落的代码。
答案 0 :(得分:0)
回答我自己的问题,问题似乎是由forward
内的异常引发的。添加:
perl-no-die-catch = true
到uwsgi vassal初始化文件似乎可以解决问题。