[erledigt] Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Allgemein Fragen, deutsche News, Ankündigungen & Events zum OTRS
Post Reply
GustavG
Znuny expert
Posts: 275
Joined: 26 Nov 2014, 15:56
Znuny Version: Znuny 6.3.4
Real Name: Gerlach

[erledigt] Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by GustavG »

Hallo,

alle hier genannten Schritte:

https://doc.znuny.org/manual/releases/i ... e-6.3.html

unter "Update via source" habe ich ohne Fehler überstanden. Allerdings kommt beim MigrateToZnuny6_3.pl ein Fehler den ich euch nicht vorenthalten möchte:

Code: Select all

root@znuny /opt/otrs # su - otrs
$ scripts/MigrateToZnuny6_3.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: Migrate dashboard widgets that execute system commands ...
    Requirement check for: Migrate PostMaster pre-filters that execute system commands ...
    Requirement check for: Upgrade database structure ...
    Requirement check for: Remove Generic Agent system commands ...

 Executing tasks ...

    Step 1 of 27: Check required Perl version ...
    Step 2 of 27: Check required database version ...
    Step 3 of 27: Check database charset ...
    Step 4 of 27: Check required Perl modules ...
    Step 5 of 27: Check installed CPAN modules for known vulnerabilities ...
    Step 6 of 27: Check if database has been backed up ...
    Step 7 of 27: Migrate dashboard widgets that execute system commands ...
    Step 8 of 27: Migrate PostMaster pre-filters that execute system commands ...
    Step 9 of 27: Migrate Excel stats format definitions ...
    Step 10 of 27: Upgrade database structure ...
    Step 11 of 27: Upgrade database structure for new scope attribute in ProcessManagement ...
    Step 12 of 27: Add history types ...
    Step 13 of 27: Migrate SysConfig settings ...
    Step 14 of 27: Migrate OAuth2 token database tables ...
    Step 15 of 27: Migrates calendar based ticket creation tables ...
    Step 16 of 27: Migrate database backends ...
    Step 17 of 27: Migrates mail account database table ...
    Step 18 of 27: Rebuild configuration ...
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.28.1 OS: linux Time: Mon Jul 4 10:07:55 2022

 Message: Its not an array!

 Traceback (15408):
   Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2690
   Module: scripts::Migration::Base::RebuildConfig Line: 82
   Module: scripts::Migration::Base::RebuildConfig::Run Line: 29
   Module: scripts::MigrateToZnuny6_3::_ExecuteComponent Line: 155
   Module: scripts::MigrateToZnuny6_3::Run Line: 67
   Module: scripts/MigrateToZnuny6_3.pl Line: 82

    Step 19 of 27: Remove Generic Agent system commands ...
    Step 20 of 27: Uninstall merged packages ...
    Step 21 of 27: Initialize default cron jobs ...
    Copying /opt/otrs/var/cron/aaa_base.dist to /opt/otrs/var/cron/aaa_base...
    done.
    Copying /opt/otrs/var/cron/otrs_daemon.dist to /opt/otrs/var/cron/otrs_daemon...
    done.
    Step 22 of 27: Clean up the cache ...
    Step 23 of 27: Rebuild configuration another time ...
    Step 24 of 27: Deploy ACLs ...
    Step 25 of 27: Deploy processes ...
    Step 26 of 27: Check invalid settings ...
    Step 27 of 27: ITSM upgrade check ...



 Migration completed!

$
Das Ticketsystem läuft aber nach einem kurzen Test bisher ohne Probleme.
Last edited by GustavG on 06 Jul 2022, 06:19, edited 3 times in total.
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 von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by root »

Hallo,

kurze Frage dazu. Handelt es sich dabei um das Debian-Paket oder ist das eine Installation aus .zip/.tar.gz?

- 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 ?
GustavG
Znuny expert
Posts: 275
Joined: 26 Nov 2014, 15:56
Znuny Version: Znuny 6.3.4
Real Name: Gerlach

Re: Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by GustavG »

Oh ja, ich habe immer die Version von hier als zip runtergeladen:

https://download.znuny.org/releases/?C=M;O=D
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 von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by root »

Hi,

Passt schon, wichtig ist nur ob Du das Debian Paket nimmst - da sind wir raus, das wird Debian selber erstellt.

Tritt denn der Fehler auch auf wenn Du bin/otrs.Console.pl Dev::Code::CPANAudit manuell aufrufst?

- 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 ?
GustavG
Znuny expert
Posts: 275
Joined: 26 Nov 2014, 15:56
Znuny Version: Znuny 6.3.4
Real Name: Gerlach

Re: Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by GustavG »

Da kommt:

Code: Select all

root@znuny /opt/otrs # su - otrs
$ bin/otrs.Console.pl Dev::Code::CPANAudit
Collecting all installed modules. This can take a while...
No advisories found
$
Komisch ...
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 von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by root »

Hi,

Ne, nicht komisch. Ich hab's falsch gelesen. Das Kommando was ich meint wäre bin/otrs.Console.pl Maint::Config::Rebuild gewesen ;-)

Ich habe jetzt gerade mal die Dateien in Kernel/Config/Files/XML/ verglichen die sich geändert haben und nix dazu gefunden was passen würde. Sind da noch Dateien drin die nicht direkt zum Ticketsystem gehören? Z.B. von Add-ons?

- 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 ?
GustavG
Znuny expert
Posts: 275
Joined: 26 Nov 2014, 15:56
Znuny Version: Znuny 6.3.4
Real Name: Gerlach

Re: Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by GustavG »

Ja, da sind tatsächlich noch andere Dateien im Verzeichnis:

Code: Select all

root@znuny /opt/otrs # ls -al Kernel/Config/Files/XML/
insgesamt 1624
drwxrwsr-x 2 otrs     www-data   4096 Jul  4 12:18 .
drwxrwsr-x 3 otrs     www-data   4096 Jul  4 12:17 ..
-rw-rw---- 1 otrs     www-data  47893 Jun 15 11:19 Calendar.xml
-rw-rw---- 1 otrs     www-data   4580 Jun 15 11:19 CloudServices.xml
-rw-rw---- 1 otrs     www-data  42442 Jun 15 11:19 Daemon.xml
-rw-r--r-- 1 www-data www-data   2171 Jul  4 12:18 DasboardMyLastChangedTickets.xml
-rw-rw---- 1 otrs     www-data 467488 Jun 15 11:19 Framework.xml
-rw-rw---- 1 otrs     www-data  44569 Jun 15 11:19 GenericInterface.xml
-rw-rw---- 1 otrs     www-data  55347 Jun 15 11:19 ProcessManagement.xml
-rw-r--r-- 1 www-data www-data  81104 Jul  4 12:13 TicketChecklist.xml
-rw-rw---- 1 otrs     www-data 768676 Jun 15 11:19 Ticket.xml
-rw-rw---- 1 www-data www-data  12277 Jul  4 12:17 ZnunyMarkTicketSeenUnseen.xml
-rw-rw---- 1 otrs     www-data 108691 Jun 15 11:19 Znuny.xml
root@znuny /opt/otrs #
Und der Befehl:

Code: Select all

root@znuny /opt/otrs # su - otrs
$ bin/otrs.Console.pl Maint::Config::Rebuild
Rebuilding the system configuration...
Done.
$
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 von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by root »

GustavG wrote: 04 Jul 2022, 15:30 Ja, da sind tatsächlich noch andere Dateien im Verzeichnis:
Hallo,

die gehören zu den installierten Add-ons, die hast Du nach dem Migrationsscript erneut installiert, oder?
Wenn die Meldung jetzt nicht mehr auftaucht, würde ich da nicht mehr suchen. Ich konnte es in keiner mir erdenklichen Konstellation nachstellen.

- 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 ?
GustavG
Znuny expert
Posts: 275
Joined: 26 Nov 2014, 15:56
Znuny Version: Znuny 6.3.4
Real Name: Gerlach

Re: Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by GustavG »

Guten Morgen,

ja genau, die habe ich dann wieder installiert und danach kam die Meldung nicht mehr.
Alles klar -> erledigt. Und danke!
reneski
Znuny newbie
Posts: 2
Joined: 25 Jun 2014, 17:37
Znuny Version: 4.0.6

Re: [erledigt] Upgrade von 6.2.2 zu 6.3.4 (Debian 10) - MigrateToZnuny6_3.pl

Post by reneski »

Hi,

bei mir kam es heute ebenfalls zu der Fehlermeldung.
In meinem Fall ist es ein CentOS 7 und die Installation per RPM.

Komme von Version 6.0.40 -> 6.1.1-01 -> 6.2.1-02 -> 6.3.4-01
Beim letzten Schritt von 6.2.1 auf 6.3.4 kam mit scripts/MigrateToZnuny6_3.pl die Meldung:

Code: Select all

    Step 17 of 27: Migrates mail account database table ...
    Step 18 of 27: Rebuild configuration ...
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.16.3 OS: linux Time: Tue Jul 19 12:52:52 2022

 Message: Its not an array!

 Traceback (4456):
   Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2687
   Module: scripts::Migration::Base::RebuildConfig Line: 82
   Module: scripts::Migration::Base::RebuildConfig::Run Line: 29
   Module: scripts::MigrateToZnuny6_3::_ExecuteComponent Line: 155
   Module: scripts::MigrateToZnuny6_3::Run Line: 67
   Module: scripts/MigrateToZnuny6_3.pl Line: 82

    Step 19 of 27: Remove Generic Agent system commands ...
    Step 20 of 27: Uninstall merged packages ...
Manueller rebuild läuft ohne Probleme durch.

Code: Select all

[otrs@otrs-testupgrade ~]$ bin/otrs.Console.pl Maint::Config::Rebuild
Rebuilding the system configuration...
Done.
In dem Verzeichnis liegen anscheinend noch ein paar Leichen, SystemMonitoring und iPhone Addons sind/waren deinstalliert.

Code: Select all

[otrs@otrs-testupgrade ~]$ ls -ltrs Kernel/Config/Files/XML/
insgesamt 1596
 12 -rw-rw---- 1 otrs apache   8241 20. Feb 2021  SystemMonitoring.xml
 44 -rw-rw---- 1 otrs apache  41197 20. Feb 2021  iPhone.xml
 12 -rw-rw---- 1 otrs apache  11063 20. Feb 2021  iPhone_Deprecated.xml
  4 -rw-r--r-- 1 otrs apache   3320 20. Feb 2021  AgentArticleCopyMove.xml
  4 -rw-r--r-- 1 otrs apache   2171 20. Feb 2021  DasboardMyLastChangedTickets.xml
108 -rw-rw---- 1 otrs apache 108691 15. Jun 11:20 Znuny.xml
752 -rw-rw---- 1 otrs apache 768676 15. Jun 11:20 Ticket.xml
 56 -rw-rw---- 1 otrs apache  55347 15. Jun 11:20 ProcessManagement.xml
 44 -rw-rw---- 1 otrs apache  44569 15. Jun 11:20 GenericInterface.xml
460 -rw-rw---- 1 otrs apache 467488 15. Jun 11:20 Framework.xml
 44 -rw-rw---- 1 otrs apache  42442 15. Jun 11:20 Daemon.xml
  8 -rw-rw---- 1 otrs apache   4580 15. Jun 11:20 CloudServices.xml
 48 -rw-rw---- 1 otrs apache  47893 15. Jun 11:20 Calendar.xml
 
In den OTRS Logs steht noch folgendes zum Zeitpunkt bei dem das 6.3 Migrations Script lief

Code: Select all

[Tue Jul 19 12:52:49 2022][Error][Kernel::System::DBCRUD::MigrateUUIDDatabaseTableColumns][1796] Unknown column 'z4o_database_backend_uuid' in 'field list', SQL: 'SELECT z4o_database_backend_uuid FROM oauth2_token LIMIT 1'
[Tue Jul 19 12:52:49 2022][Error][Kernel::System::DBCRUD::MigrateUUIDDatabaseTableColumns][1796] Unknown column 'database_backend_uuid' in 'field list', SQL: 'SELECT database_backend_uuid FROM oauth2_token LIMIT 1'
[Tue Jul 19 12:52:50 2022][Error][Kernel::System::DBCRUD::IsUUIDDatabaseTableColumnPresent][1672] Unknown column 'dbcrud_uuid' in 'field list', SQL: 'SELECT dbcrud_uuid FROM oauth2_token LIMIT 1'
[Tue Jul 19 12:52:50 2022][Error][Kernel::System::DBCRUD::MigrateUUIDDatabaseTableColumns][1796] Unknown column 'z4o_database_backend_uuid' in 'field list', SQL: 'SELECT z4o_database_backend_uuid FROM oauth2_token_config LIMIT 1'
[Tue Jul 19 12:52:50 2022][Error][Kernel::System::DBCRUD::MigrateUUIDDatabaseTableColumns][1796] Unknown column 'database_backend_uuid' in 'field list', SQL: 'SELECT database_backend_uuid FROM oauth2_token_config LIMIT 1'
[Tue Jul 19 12:52:50 2022][Error][Kernel::System::DBCRUD::IsUUIDDatabaseTableColumnPresent][1672] Unknown column 'dbcrud_uuid' in 'field list', SQL: 'SELECT dbcrud_uuid FROM oauth2_token_config LIMIT 1'
[Tue Jul 19 12:52:52 2022][Error][Kernel::System::SysConfig::ConfigurationXML2DB][2687] Its not an array!
Hab das System jetzt noch nicht näher durchgetestet, aber auf den ersten Blick sieht es funktional aus.

Gruß René
Post Reply