upgrade 5 to 6: Use of uninitialized value

Moderator: crythias

Locked
hkais
Znuny wizard
Posts: 362
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

upgrade 5 to 6: Use of uninitialized value

Post by hkais »

Seems I am not really a lucky guy

Code: Select all

[Sat Feb 12 22:38:08 2022] DBUpdate-to-6.pl: Use of uninitialized value $DefaultSetting{"Name"} in concatenation (.) or string at /opt/otrs/Kernel/System/SysConfig/DB.pm line 1704.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.30.0 OS: linux Time: Sat Feb 12 21:38:08 2022

 Message: Setting OTRSTimeZone does not exists!

 Traceback (14727): 
   Module: Kernel::System::SysConfig::SettingUpdate Line: 455
   Module: scripts::DBUpdateTo6::Base::SettingUpdate Line: 668
   Module: scripts::DBUpdateTo6::MigrateTimeZoneConfiguration::Run Line: 164
   Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 158
   Module: scripts::DBUpdateTo6::Run Line: 70
   Module: ./scripts/DBUpdate-to-6.pl Line: 88
Adding to Kernel/Config.pm did also not help

Code: Select all

    # --------------------------------------------------- #
    # Time Settings
    # --------------------------------------------------- #
    # TimeZone
    # (set the OTRS time zone, default is UTC)
    $Self->{'OTRSTimeZone'} = 'Europe/Berlin';
Any help here?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
hkais
Znuny wizard
Posts: 362
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: upgrade 5 to 6: Use of uninitialized value

Post by hkais »

will try today in late evening the second parameter too from
viewtopic.php?f=62&t=39687&p=170719&hil ... ne#p170719

anyway hope someone can help here?
Is this a old feature or a new one? If later would expect migration would fix this?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
hkais
Znuny wizard
Posts: 362
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: upgrade 5 to 6: Use of uninitialized value

Post by hkais »

this did the trick to get through the upgrade process

Code: Select all

$Self->{OTRSTimeZone} = 'Europe/Berlin';
$Self->{UserDefaultTimeZone} = 'Europe/Berlin';
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
root
Administrator
Posts: 4243
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: upgrade 5 to 6: Use of uninitialized value

Post by root »

HI,

Since OTRSTimeZone is a setting of version 6 this is related to the migration itself. I've only seen this at system where required Perl modules where missing. Have you all modules required by otrs.CheckModules.pl installed prior you've run the script? Have you used another file location besides /opt/otrs?

- 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 ?
hkais
Znuny wizard
Posts: 362
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: upgrade 5 to 6: Use of uninitialized value

Post by hkais »

root wrote: 15 Feb 2022, 12:59 Since OTRSTimeZone is a setting of version 6 this is related to the migration itself. I've only seen this at system where required Perl modules where missing. Have you all modules required by otrs.CheckModules.pl installed prior you've run the script? Have you used another file location besides /opt/otrs?
yes did the execute of otrs.CheckModules.pl but on old installation, means otrs 5.0.42
Now rerun on Znuny 6.0.38 and found this missing
apt-get install -y libcss-minifier-xs-perl libjavascript-minifier-xs-perl

Would be great that this steps is getting added to the documentation to run the checkModules too
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
root
Administrator
Posts: 4243
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: upgrade 5 to 6: Use of uninitialized value

Post by root »

hkais wrote: 15 Feb 2022, 23:48 Would be great that this steps is getting added to the documentation to run the checkModules too
I already mentioned what the reason for the missing OTRSTimeZone was in viewtopic.php?f=62&t=42967&p=174131#p174131

Regarding your request to add sth to the documentation: otrs.CheckModules.pl is mentioned AFAIK in nearly every upgrade / installation guide.

- 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 ?
Locked