Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Moderator: crythias

Post Reply
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

Hi,
I'd like to upgrade our OTRS 5 instance to version 6.0.6.
When rebuilding the config, it throws an error that the effective value of Ticket::StorageModule is not correct:

Code: Select all

root@otrs:/opt/otrs# su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs
Rebuilding the system configuration...
ERROR: OTRS-otrs.Console.pl-Maint::Config::Rebuild-21 Perl: 5.22.1 OS: linux Time: Fri Jul 20 09:58:30 2018

 Message: Setting Ticket::StorageModule Effective value is not correct: Kernel::System::Ticket::ArticleStorageDB doesn't satisfy ValueFilter(Kernel/System/Ticket/ArticleStorage*.pm)!

 Traceback (15867):
   Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3465
   Module: Kernel::System::Console::Command::Maint::Config::Rebuild::Run Line: 69
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
   Module: /opt/otrs/bin/otrs.Console.pl Line: 38

Error: There was a problem writing ZZZAAuto.pm.
Unfortunately, in otrs/Kernel/System/Ticket is no ArticleStorage*.pm - File present. (OTRS5 has ArticleStorageDB.pm)
Maybe the ValueFilter is wrong?

Can anybody help?

Regards,
Sascha
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

Nobody an idea? :-(
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by root »

HI,

What's the current value? From 5.0 to 6.0 the path changed to Kernel/System/Ticket/Article/Backend/MIMEBase/ArticleStorage*.pm and the setting name to Ticket::Article::Backend::MIMEBase::ArticleStorage

Looks like sth. went wrong. Did you exactly followed all steps to upgrade?

- Roy
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 ?
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

Yes, I followed all steps.
In the OTRS6-System, in /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm, it's still

Code: Select all

$Self->{'Ticket::StorageModule'} =  'Kernel::System::Ticket::ArticleStorageDB';
DBUpdate-to-6.pl says:

Code: Select all

    Inconsistent SysConfig settings detected, please update them manually:

    Ticket::StorageModule
But it does not say to what value.
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

After editing the value in Kernel/Config/Files/ZZZAAuto.pm to

Code: Select all

$Self->{'Ticket::Article::Backend::MIMEBase::ArticleStorage'} =  'Kernel::System::Ticket::Article::Backend::MIMEBase::ArticleStorageDB';
and running

Code: Select all

sudo -u otrs scripts/DBUpdate-to-6.pl
it still says that the SysConfig setting is inconsistent - and the value in ZZZAAuto.pm is reverted back to the old value! WTF?!
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by wurzel »

Hi,

changing the ZZZAAuto is wrong.
on Version5 or previous you have to change ZZZAuto.pm (+rebuild)

on Version6 you have to use the otrs.Console.pl command to update values.
something like otrs.Console.pl Admin::Config::Update AFAIK

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

In OTRS5 ZZZAuto.pm, there's no "Ticket::StorageModule" - Setting present.
After running DBUpdate-to-6.pl, the resulting ZZZAAuto.pm (this file was not present before running the script) contains a "Ticket::StorageModule"-Setting.
Seems like the upgrade-script writes some old values in the new configfile?
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Upgrade from 5 to 6.0.6 - Ticket::StorageModule Effective value is not correct

Post by Sascha79 »

Looks like the MigrateTicketStorageModule.pm doesn't do anything for Ticket::Storage with ArticleStorageDB .. it checks only for ArticleStorageFS and has no else-condition. (look at line 46 in scripts/DBUpdateTo6/MigrateTicketStorageModule.pm)

Maybe the DB-Part is missing?
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
Post Reply