[SOLVED] Apache::DBI after upgrading to 2.4.9

Moderator: crythias

Locked
JDOS
Znuny newbie
Posts: 15
Joined: 15 Sep 2010, 14:28
Znuny Version: 2.4.7
Location: The Netherlands

[SOLVED] Apache::DBI after upgrading to 2.4.9

Post by JDOS »

Hi all,

After upgrading from 2.4.7 to 2.4.9 (or to 2.4.8 but I noticed this since 2.4.9 is installed) I'm unable to enable Apache::DBI in apache2-perl-startup.pl. First, I get this message in error_log:

Code: Select all

[Wed Nov 17 12:02:19 2010] [error] Can't locate object method "connect_on_init" via package "Apache::DBI" (perhaps you forgot to load "Apache::DBI"?) at /opt/otrs/scripts/apache2-perl-startup.pl line 52.\nCompilation failed in require at (eval 5) line 1.\n
[Wed Nov 17 12:02:19 2010] [error] Can't load Perl file: /opt/otrs/scripts/apache2-perl-startup.pl for server otrs.wvld.local:0, exiting...
After modifying httpd.conf; adding "PerlModule Apache::DBI" the error changes to this:

Code: Select all

[Wed Nov 17 12:07:40 2010] [error] Can't locate object method "require_version" via package "DBI" at /usr/lib/perl5/site_perl/5.10.0/Apache//DBI.pm line 23.\nCompilation failed in require at /opt/otrs/scripts/apache2-perl-startup.pl line 55.\nBEGIN failed--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 55.\nCompilation failed in require at (eval 5) line 1.\n
[Wed Nov 17 12:07:40 2010] [error] Can't load Perl file: /opt/otrs/scripts/apache2-perl-startup.pl for server otrs.wvld.local:0, exiting...
In 2.4.7 this was running fine; what happened to 2.4.8 and / or 2.4.9?

Thanks,
JDOS
Last edited by JDOS on 17 Nov 2010, 15:38, edited 1 time in total.
OTRS 2.4.9 on openSuSE 11.2 with MySQL database connected to an Active Directory for Agents and Customers.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Apache::DBI after upgrading to 2.4.9

Post by Wolfgangf »

upgrading most probably changed your apache2-perl-startup.pl (at least this is the case when I upgrade, and a filed a bug on this which was accepted)

please check and uncomment use Apache::DBI, ....
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
JDOS
Znuny newbie
Posts: 15
Joined: 15 Sep 2010, 14:28
Znuny Version: 2.4.7
Location: The Netherlands

Re: Apache::DBI after upgrading to 2.4.9

Post by JDOS »

Thank you Wolfgang! I forgot to remove the "#" in front of "use Apache::DBI ();", should have noticed this ... :wink:

Code: Select all

use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', '********');
use DBI ();
Things run fine now; thanks again.
JDOS
OTRS 2.4.9 on openSuSE 11.2 with MySQL database connected to an Active Directory for Agents and Customers.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: [SOLVED] Apache::DBI after upgrading to 2.4.9

Post by Wolfgangf »

my pleasure - and as i said: reported and accepted as bug
got confirmation some days ago
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Locked