Error after upgrading OTRS Framework

Moderator: crythias

Post Reply
JeremyB3ntham
Znuny newbie
Posts: 38
Joined: 15 Mar 2015, 10:31
Znuny Version: v4.0.5 (Debian)

Error after upgrading OTRS Framework

Post by JeremyB3ntham »

Current Version: 4.0.5
Server: Debian 7.8

I am running into an error after I have upgraded the OTRS Framework. I have downloaded the usual Source package and have run through the upgrade steps as I have done many times, but after everything is done and the web services start and I login I receive an Internal Server error.

I have run the same steps on two separate Linux boxes and it has worked fine. When I run the upgrade I backup the current /opt/otrs folder, extract the source to a new 'otrs' folder and move across all the files we need, then run the upgrade commands. I have tried this using 4.0.6, 4.0.7, 4.0.8 and 4.0.9 and the same issue occurs.

The upgrade process runs okay and I don't see any errors. Even apache starts ok, and I can get to the Login screen for OTRS, but as soon as I login I get the error.

If I check the logs I see the errors start as soon as you try and log in:

Code: Select all

[Sat Jul 11 09:43:36 2015][Notice][Kernel::System::Auth::LDAP::Auth] User: me (CN=me,OU=GS,OU=CF,OU=Domain Users,DC=domain,DC=com) authentication ok (REMOTE_ADDR: <removed>).
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::Main::RequireBaseClass][164] Module Kernel/System/Ticket/OTRSAdvancedEscalations.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::Main::RequireBaseClass][164] Module Kernel/System/Ticket/OTRSHideShowDynamicFields.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::Web::InterfaceAgent::Run][933] Module Kernel/Modules/AgentMasterSlavePrepareTicket.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::Web::InterfaceAgent::Run][933] Module Kernel/Modules/OTRSAdvancedEscalations.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::DynamicField::Backend::new][90] Module Kernel/System/DynamicField/Driver/ContactWithData.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:36 2015][Error][Kernel::System::DynamicField::Backend::new][91] Can't load dynamic field backend module for field type ContactWithData!
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::Stats::GetObjectBehaviours][1555] Module Kernel/System/Stats/Dynamic/ITSMConfigItem.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::Stats::GetObjectName][1514] Module Kernel/System/Stats/Dynamic/ITSMConfigItem.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::Stats::GetObjectBehaviours][1555] Module Kernel/System/Stats/Dynamic/ITSMConfigItem.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::Stats::GetObjectName][1514] Module Kernel/System/Stats/Dynamic/ITSMConfigItem.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::DynamicField::Backend::new][90] Module Kernel/System/DynamicField/Driver/ContactWithData.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2)
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::DynamicField::Backend::new][91] Can't load dynamic field backend module for field type ContactWithData!
[Sat Jul 11 09:43:37 2015][Error][Kernel::System::ObjectManager::_DieWithError][529] The constructor of Kernel::System::DynamicField::Backend returned undef.

Any ideas?
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Error after upgrading OTRS Framework

Post by root »

Hi,

It looks like there are some add-ons you have to update too. Like Kernel/System/Ticket/OTRSAdvancedEscalations.pm is not part of the regular OTRS.
What was the OTRS Version you've updated from?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
JeremyB3ntham
Znuny newbie
Posts: 38
Joined: 15 Mar 2015, 10:31
Znuny Version: v4.0.5 (Debian)

Re: Error after upgrading OTRS Framework

Post by JeremyB3ntham »

Thanks. I updated from 4.0.5

It's strange as running the same upgrade on two other servers worked fine.
JeremyB3ntham
Znuny newbie
Posts: 38
Joined: 15 Mar 2015, 10:31
Znuny Version: v4.0.5 (Debian)

Re: Error after upgrading OTRS Framework

Post by JeremyB3ntham »

How would I update the add-ons from the command line? As usually I can just reinstall them from Package Manager but as I can't get in i'm a bit stumped.
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: Error after upgrading OTRS Framework

Post by eandrex »

Since you are doing minor upgrades, you could fix your problems by reinstalling all your packages

in command line

Code: Select all

perl /opt/otrs/bin/otrs.PackageManager.pl -a reinstall-all
if there is a new version of your package, you can update by

Code: Select all

perl /opt/otrs/bin/otrs.PackageManager.pl -a upgrade -p /path/to/module.opm
JeremyB3ntham
Znuny newbie
Posts: 38
Joined: 15 Mar 2015, 10:31
Znuny Version: v4.0.5 (Debian)

Re: Error after upgrading OTRS Framework

Post by JeremyB3ntham »

eandrex wrote:Since you are doing minor upgrades, you could fix your problems by reinstalling all your packages

in command line

Code: Select all

perl /opt/otrs/bin/otrs.PackageManager.pl -a reinstall-all
if there is a new version of your package, you can update by

Code: Select all

perl /opt/otrs/bin/otrs.PackageManager.pl -a upgrade -p /path/to/module.opm
Nice. Thanks will give that a shot.
Post Reply