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

Mailing List Archive: ModPerl: ModPerl

[mp2] Possible bug with "PerlOptions +Parent" with mod_perl 2.0.4 and mod_perl 2.0.5 (Ubuntu packages)

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


liuk001 at gmail

May 8, 2013, 2:13 PM

Post #1 of 2 (237 views)
Permalink
[mp2] Possible bug with "PerlOptions +Parent" with mod_perl 2.0.4 and mod_perl 2.0.5 (Ubuntu packages)

Hello all,

I've setup two instances of the popular OTRS software using the PerlOptions
+Parent to have two separate interpreter pool in 2 distinct Virtual Hosts.

Under Ubuntu 8.04 LTS all was working fine, with mod_perl2 version 2.0.3
provided by Ubuntu 8.04.

I'm not sure it is a real bug with mod_perl2 but after a lot of tests I'm
getting crazy and I don't know where to ask elsewhere :-)

After the upgrade to 10.04 with mod_perl 2.0.4 and perl 5.10 (but also
under Ubuntu 12.04 with mod_perl version 2.0.5 and perl 5.14) I'm facing
the following issue,
- there are 2 virtual hosts for the two OTRS sites, both with the
PerlOptions +Parent statement
- each site has its own path, there are no shared files
- when both sites are enabled, the second site is not working in some pages
with an error like this (from the apache error log of the virtual host):
[Mon May 06 16:30:52 2013] [error] encountered object 'false', but neither
allow_blessed nor convert_blessed settings are enabled at
/opt/otrspath1/Kernel/System/JSON.pm line 106.\n
- enabling only 1 site at a time: all is working fine
- inverting the order of the 2 sites (i.e. swapping them) in the apache
configration: the first is working and the second gets the error above
- under Ubuntu 8.04 this same configuration was working ! :-/

I've searched in the changelog of mod_perl2 but I didn't find anything
useful.
I cannot say it is an OTRS issue since each singular site is working fine,
but I'm sure that OTRS needs to have a separate pool since the modules are
the same, so for the moment the main suspect seems to be mod_perl2 :-)

How can I debug this kind of error?

Please let me know if you need other info about the configuration.
Thanks in advance for your support.
Best regards,
Luca Maranzano


liuk001 at gmail

May 11, 2013, 6:48 AM

Post #2 of 2 (214 views)
Permalink
Re: [mp2] Possible bug with "PerlOptions +Parent" with mod_perl 2.0.4 and mod_perl 2.0.5 (Ubuntu packages) [In reply to]

Hello, may be I've found the root cause of the problem: it seems due to the
apache2-mpm-prefork package, since if I install the apache2-mpm-worker the
same configuration is working as expected!
I can reproduce this in a sistematic way.

Any idea about the reason of this ?

Thanks,
Luca




On Wed, May 8, 2013 at 11:13 PM, Luca Maranzano <liuk001 [at] gmail> wrote:

> Hello all,
>
> I've setup two instances of the popular OTRS software using the
> PerlOptions +Parent to have two separate interpreter pool in 2 distinct
> Virtual Hosts.
>
> Under Ubuntu 8.04 LTS all was working fine, with mod_perl2 version 2.0.3
> provided by Ubuntu 8.04.
>
> I'm not sure it is a real bug with mod_perl2 but after a lot of tests I'm
> getting crazy and I don't know where to ask elsewhere :-)
>
> After the upgrade to 10.04 with mod_perl 2.0.4 and perl 5.10 (but also
> under Ubuntu 12.04 with mod_perl version 2.0.5 and perl 5.14) I'm facing
> the following issue,
> - there are 2 virtual hosts for the two OTRS sites, both with the
> PerlOptions +Parent statement
> - each site has its own path, there are no shared files
> - when both sites are enabled, the second site is not working in some
> pages with an error like this (from the apache error log of the virtual
> host):
> [Mon May 06 16:30:52 2013] [error] encountered object 'false', but neither
> allow_blessed nor convert_blessed settings are enabled at
> /opt/otrspath1/Kernel/System/JSON.pm line 106.\n
> - enabling only 1 site at a time: all is working fine
> - inverting the order of the 2 sites (i.e. swapping them) in the apache
> configration: the first is working and the second gets the error above
> - under Ubuntu 8.04 this same configuration was working ! :-/
>
> I've searched in the changelog of mod_perl2 but I didn't find anything
> useful.
> I cannot say it is an OTRS issue since each singular site is working fine,
> but I'm sure that OTRS needs to have a separate pool since the modules are
> the same, so for the moment the main suspect seems to be mod_perl2 :-)
>
> How can I debug this kind of error?
>
> Please let me know if you need other info about the configuration.
> Thanks in advance for your support.
> Best regards,
> Luca Maranzano
>
>
>

ModPerl modperl 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.