Error upgrading OTRS 6 patch22

Moderator: crythias

Locked
daveybops
Znuny newbie
Posts: 8
Joined: 16 Sep 2018, 17:53
Znuny Version: OTRS6.0
Real Name: David Smith

Error upgrading OTRS 6 patch22

Post by daveybops »

Hello everybody!

I have a stand-alone tower with OTRS 6 installed with ITSM on Ubuntu Server 18.04 It hardly has any data yet, except a couple of customer details in ITSM. I've attempted an upgrade to patch 22 using the directions described here https://doc.otrs.com/doc/manual/admin/6 ... ating.html and it's all unravelled. I'm prompted with the login screen and after I log in, I get 500 Internal Server Error and apache error logs show me this
RemoteAddress: 192.168.1.116
RequestURI: /otrs/index.pl

Traceback (1972):
Module: Kernel::System::User::UserLookup Line: 975
Module: Kernel::System::Auth::Auth Line: 247
Module: Kernel::System::Web::InterfaceAgent::Run Line: 248
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32

ERROR: OTRS-CGI-00 Perl: 5.26.1 OS: linux Time: Wed Sep 18 14:17:53 2019

Message: Can't locate Kernel/System/DynamicField/ObjectType/ITSMChange.pm in @INC (you may need to install the Kernel::Syste
m::DynamicField::ObjectType::ITSMChange module) (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/pe
rl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/p
erl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /etc/apache2) at /opt/otrs/Kernel/Syst
em/Main.pm line 82.


RemoteAddress: 192.168.1.116
RequestURI: /otrs/index.pl?

Traceback (1627):
Module: Kernel::System::DynamicField::Backend::new Line: 139
Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
Module: Kernel::System::ObjectManager::Get Line: 200
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::_SearchParamsGet Line: 2327
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::Run Line: 567
Module: Kernel::Modules::AgentDashboardCommon::_Element Line: 983
Module: Kernel::Modules::AgentDashboardCommon::Run Line: 610
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1116
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32

ERROR: OTRS-CGI-00 Perl: 5.26.1 OS: linux Time: Wed Sep 18 14:17:53 2019

Message: Can't load dynamic field object handler module for object type ITSMChange!

RemoteAddress: 192.168.1.116
RequestURI: /otrs/index.pl?

Traceback (1627):
Module: Kernel::System::DynamicField::Backend::new Line: 140
Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
Module: Kernel::System::ObjectManager::Get Line: 200
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::_SearchParamsGet Line: 2327
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::Run Line: 567
Module: Kernel::Modules::AgentDashboardCommon::_Element Line: 983
Module: Kernel::Modules::AgentDashboardCommon::Run Line: 610
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1116
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32

ERROR: OTRS-CGI-00 Perl: 5.26.1 OS: linux Time: Wed Sep 18 14:17:53 2019

Message: The constructor of Kernel::System::DynamicField::Backend returned undef.

RemoteAddress: 192.168.1.116
RequestURI: /otrs/index.pl?

Traceback (1627):
Module: Kernel::System::ObjectManager::_DieWithError Line: 627
Module: Kernel::System::ObjectManager::_ObjectBuild Line: 314
Module: Kernel::System::ObjectManager::Get Line: 200
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::_SearchParamsGet Line: 2327
Module: Kernel::Output::HTML::Dashboard::TicketGeneric::Run Line: 567
Module: Kernel::Modules::AgentDashboardCommon::_Element Line: 983
Module: Kernel::Modules::AgentDashboardCommon::Run Line: 610
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1116
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32

[Wed Sep 18 14:17:53.510157 2019] [:error] [pid 1627] The constructor of Kernel::System::DynamicField::Backend returned undef. at /opt/otrs/Kernel/Output/HTML/Dashboard/TicketGeneric.pm line 2327.\n
The pertinent line to be entering in to Google seems to be Can't locate Kernel/System/DynamicField/ObjectType/ITSMChange.pm but I've not found much to help me fix.

I have a clone of the whole OS before upgrade, so I can try the upgrade again with a suggested route to avoid failure, or fix the failed upgrade, either way is good. Pointers, are very very much appreciated :)
OTRS 6.0.x on Ubuntu 18.04 on physical hardware with MySql
daveybops
Znuny newbie
Posts: 8
Joined: 16 Sep 2018, 17:53
Znuny Version: OTRS6.0
Real Name: David Smith

Re: Error upgrading OTRS 6 patch22

Post by daveybops »

Found fix with assitance of the Facebook OTRS group.

It had failed to update modules (ITSM)

I found that I could install the bundle if I downloaded (wget) from https://ftp.otrs.org/pub/otrs/itsm/bund ... 6.0.22.opm and command sudo -u otrs /opt/otrs/bin/otrs.Console.pl Admin::Package::Upgrade /path.to/downloaded_file.opm

I haven't yet identified how to change the URL that the system uses to find updates to modules. But sure I can with a bit more searching.
OTRS 6.0.x on Ubuntu 18.04 on physical hardware with MySql
Locked