Problems with AMF 4.20 and Apache 2.4.10 MPM_EVENT

13 views
Skip to first unread message

OPeixe

unread,
Sep 4, 2017, 2:17:17 PM9/4/17
to AMF Device Detection
Hi,

I'm having problems running AMF in my production server. It works fine for the most part, but prety often I get errors like these:

[Mon Sep 04 14:36:27.916375 2017] [perl:error] [pid 12930:tid 140489697052416] lookup of 'Apache2::AMFLiteDetectionFilter::handler' failed[Mon Sep 04 14:36:27.916395 2017] [perl:error] [pid 12930:tid 140489697052416] [client 212.170.205.210:61489] Attempt to reload Apache2/AMFLiteDetectionFilter.pm aborted.
Compilation failed in require.

[Mon Sep 04 15:00:45.028813 2017] [perl:error] [pid 29617:tid 140216891127552] Bareword "STATUS_ERROR" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 186.
Bareword "STATUS_ENDSTREAM" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 190.
Bareword "STATUS_OK" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 208.
BEGIN not safe after errors--compilation aborted at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 765.
Compilation failed in require at /usr/local/share/perl/5.20.2/Apache2/AMFLiteDetectionFilter.pm line 26.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.20.2/Apache2/AMFLiteDetectionFilter.pm line 26.
Compilation failed in require at (eval 4) line 2.


[Mon Sep 04 15:43:13.972124 2017] [perl:error] [pid 2417:tid 140524258248448] lookup of 'Apache2::AMFLiteDetectionFilter::handler' failed
[Mon Sep 04 15:43:13.972147 2017] [perl:error] [pid 2417:tid 140524258248448] [client 212.170.205.210:56502] Attempt to reload Apache2/AMFLiteDetectionFilter.pm aborted.
Compilation failed in require.


Some times operation keeps working (Redirecting to Mobile site) but others doesnt, client gets Internal Server Error or Apache is unresponsive.

Memmory and Process are fine, but it won't serve pages, and I won't get any other clarifying error.
I've tried to include the libs in the inc, and I was even thinking of using Apache2::Reload module of mod_perl2.

Am i missing something?

This is the setup in httpd.conf


PerlOptions +Parent
PerlSwitches -I/usr/local/share/perl/5.20.2/Apache2/
PerlSetEnv AMFMobileHome /home/AMF
PerlTransHandler +Apache2::AMFLiteDetectionFilter
PerlSetEnv FullBrowserMobileAccessKey esc
PerlSetEnv AMFProductionMode true

Then I use simple rewrite conditions in the virtual hosts I want to redirect to mobile sites.

Thanks for any help I can get.


Reply all
Reply to author
Forward
0 new messages