6.4.4 Migrate Script Error

Moderator: crythias

Post Reply
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

6.4.4 Migrate Script Error

Post by nltui »

I'm having an issue migrating from 6.3.4 to 6.4.4. I didn't think that there was that big of a difference between the two versions. 6.3.4 doesn't give this error when the migrate script is run. Luckily this is still on a test system.

Code: Select all

otrs@bi-foo-test:~$ scripts/MigrateToZnuny6_4.pl

 Migration started ...

 Checking requirements ...

    Requirement check for: Check required Perl version ...
    Requirement check for: Check required database version ...
    Requirement check for: Check database charset ...
    Requirement check for: Check required Perl modules ...
    Requirement check for: Check if database has been backed up ...

        Did you backup the database? [Y]es/[N]o: y

    Requirement check for: Upgrade database structure ...
    Requirement check for: Migrate SysConfig settings ...

        Should the SysConfig be migrated? [Y]es/[N]o: y


 Executing tasks ...

    Step 1 of 19: Check required Perl version ...
    Step 2 of 19: Check required database version ...
    Step 3 of 19: Check database charset ...
    Step 4 of 19: Check required Perl modules ...
    Step 5 of 19: Check installed CPAN modules for known vulnerabilities ...
    Step 6 of 19: Check if database has been backed up ...
    Step 7 of 19: Upgrade database structure ...
    Step 8 of 19: Rebuild configuration ...
    Step 9 of 19: Migrate SysConfig settings ...
[Wed Nov 30 11:44:16 2022] MigrateToZnuny6_4.pl: Use of uninitialized value $DefaultSetting{"Name"} in concatenation (.) or string at /opt/znuny-6.4.4/Kernel/System/SysConfig/DB.pm line 1704.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-0 Perl: 5.32.1 OS: linux Time: Wed Nov 30 11:44:16 2022

 Message: Setting Frontend::RichText::Settings###Height does not exists!

 Traceback (56911):
   Module: Kernel::System::SysConfig::SettingUpdate Line: 456
   Module: Kernel::System::SysConfig::SettingsSet Line: 4731
   Module: Kernel::System::SysConfig::Migration::MigrateSysConfigSettings Line: 367
   Module: scripts::Migration::Znuny::MigrateSysConfigSettings::Run Line: 152
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_4.pl Line: 82

[Wed Nov 30 11:44:16 2022] MigrateToZnuny6_4.pl: Use of uninitialized value $DefaultSetting{"Name"} in concatenation (.) or string at /opt/znuny-6.4.4/Kernel/System/SysConfig/DB.pm line 1704.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-0 Perl: 5.32.1 OS: linux Time: Wed Nov 30 11:44:16 2022

 Message: Setting Frontend::RichText::Path does not exists!

 Traceback (56911):
   Module: Kernel::System::SysConfig::SettingUpdate Line: 456
   Module: Kernel::System::SysConfig::SettingsSet Line: 4731
   Module: Kernel::System::SysConfig::Migration::MigrateSysConfigSettings Line: 367
   Module: scripts::Migration::Znuny::MigrateSysConfigSettings::Run Line: 152
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_4.pl Line: 82

[Wed Nov 30 11:44:16 2022] MigrateToZnuny6_4.pl: Use of uninitialized value $DefaultSetting{"Name"} in concatenation (.) or string at /opt/znuny-6.4.4/Kernel/System/SysConfig/DB.pm line 1704.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-0 Perl: 5.32.1 OS: linux Time: Wed Nov 30 11:44:16 2022

 Message: Setting Frontend::RichText::Settings###Width does not exists!

 Traceback (56911):
   Module: Kernel::System::SysConfig::SettingUpdate Line: 456
   Module: Kernel::System::SysConfig::SettingsSet Line: 4731
   Module: Kernel::System::SysConfig::Migration::MigrateSysConfigSettings Line: 367
   Module: scripts::Migration::Znuny::MigrateSysConfigSettings::Run Line: 152
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_4.pl Line: 82

    Step 10 of 19: Reindex S/MIME certificates ...
    Step 11 of 19: Add dynamic fields 'TicketCalendarStartTime' and 'TicketCalendarEndTime'. ...
    Step 12 of 19: Migrate web service configuration ...
    Step 13 of 19: Uninstall merged packages ...
    Step 14 of 19: Initialize default cron jobs ...
    Step 15 of 19: Clean up the cache ...
    Step 16 of 19: Rebuild configuration another time ...
    Step 17 of 19: Deploy ACLs ...
    Step 18 of 19: Deploy processes ...
    Step 19 of 19: Check invalid settings ...



 Migration completed!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 6.4.4 Migrate Script Error

Post by root »

Hi,

What happens if you execute the migration script again?

- 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 ?
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Re: 6.4.4 Migrate Script Error

Post by nltui »

Every time I run it I get the exact same output.
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Re: 6.4.4 Migrate Script Error

Post by nltui »

Should I just assume that this is the result of a buggy migration script and that this is something that I can ignore?
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: 6.4.4 Migrate Script Error

Post by Johannes »

Hi,

I would say this is not a bug in the migration script but in your config.
The setting: "Frontend::RichText::Settings###Width" should exist in the Framework.xml
The script is complaining that it is missing, which would be an error in your instance.

It should look like this.
https://github.com/znuny/Znuny/blob/dev ... k.xml#L433

In 6.3.4 it was:
https://github.com/znuny/Znuny/blob/rel ... k.xml#L412

Can you check your Framework.xml please.

Regards
Johannes
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Re: 6.4.4 Migrate Script Error

Post by nltui »

Thanks for the reply. This is a case of a problem with the way I was upgrading. I have custom skins and I was just doing a whole copy of the directories which was messing things up.
Post Reply