Package not correctly deployed

Moderator: crythias

Post Reply
supportmi
Znuny newbie
Posts: 1
Joined: 26 Oct 2022, 03:05
Znuny Version: 6.0.46
Real Name: Nika Ramazashvili
Company: IM OMF "Microinvest" SRL

Package not correctly deployed

Post by supportmi »

Hi,

after upgrading OTRS to znuny 6.4 (all versions before had same issue) packages have not been upgraded and remain version 6.0.30. I have lots of errors. Is this normal? Please check screenshot.

when i try to run bin/otrs.Console.pl Admin::Package::UpgradeAll
i get:
The following packages were updated...
FAQ
The following packages could not be found in the online repositories...
GeneralCatalog
ITSM
ITSMChangeManagement
ITSMConfigurationManagement
ITSMCore
ITSMIncidentProblemManagement
ITSMServiceLevelManagement
ImportExport

Fail.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

Hi,

You have to upgrade the packages. They do not work for the framework version 6.4

This can be done via the command line as znuny/otrs user:

bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/its ... -6.4.2.opm

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Hi there,

I have a similar Problem, I'm on 6.0.48 and wanted to go to 6.4.5 as prep for 6.5, but 6.1.2 fails with "bin/otrs.Console.pl Admin::Package::UpgradeAll", "otrs/bin/otrs.CheckModules.pl --all" and "MigrateToZnuny6_1.pl" do run fine.

Package::RepositoryRoot: "https://download.znuny.org/releases/mis ... sitory.xml"
Package::RepositoryList: "https://download.znuny.org/releases/itsm/bundle6/"

My packages:
FAQ 6033 Znuny GmbH
GeneralCatalog 6031 xxx
ImportExport 6031 xxx
ITSM 6031 Znuny
ITSMChangeManagement 6031 Znuny
ITSMConfigurationManagement 6031 xxx
ITSMCore 6031 xxx
ITSMIncidentProblemManagement 6031 Znuny
ITSMServiceLevelManagement 6031 Znuny
OTRSMasterSlave 6027 Znuny
SystemMonitoring 6015 Znuny

Just realized, do need to change
Package::RepositoryList: "https://download.znuny.org/releases/itsm/bundle6/" to
Package::RepositoryList: "https://download.znuny.org/releases/itsm/bundle6x/"

Is that it/all?

Error messages:

Code: Select all

host:/opt/otrs # su -c "bin/otrs.Console.pl Admin::Package::UpgradeAll" -s /bin/bash otrs
Fetching on-line repositories...
  Znuny Open Source Add-ons... Done
ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:00:57 2023

 Message: No packages for your framework version found in this repository, it only contains packages for other framework versions.

 Traceback (8909):
   Module: Kernel::System::Package::PackageOnlineList Line: 1554
(...)
   Module: bin/otrs.Console.pl Line: 37

  ZNUNY::ITSM 6 Bundle Master... Done
  Freebie Features... Done

Upgrading installed packages...
ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:02 2023

 Message: No packages for your framework version found in this repository, it only contains packages for other framework versions.

 Traceback (8909):
   Module: Kernel::System::Package::PackageOnlineList Line: 1554
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:04 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:05 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:06 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:06 2023

 Message: Can't connect to cloud server!

 Traceback (8909):
   Module: Kernel::System::Package::CloudFileGet Line: 4860
(...)
   Module: bin/otrs.Console.pl Line: 37

Notice: Removed file: /opt/otrs/bin/cgi-bin/faq.pl
(...)
(...)
Notice: Removed file: /opt/otrs/doc/en/FAQ_en.pdf
Notice: Install /opt/otrs/bin/cgi-bin/faq.pl (770)!
(...)
(...)
Notice: Install /opt/otrs/doc/en/FAQ_en.pdf (660)!
Code:

        # create the package name
        my $CodeModule = 'var::packagesetup::' . $Param{Structure}->{Name}->{Content};

        $Kernel::OM->Get($CodeModule)->CodeUpgrade();

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:29 2023

 Message: Static object FAQAccess doesn't exist or static object already in use!

 Traceback (8909):
   Module: Kernel::System::Stats::ObjectModuleCheck Line: 1219
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:30 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:32 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:33 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:33 2023

 Message: Can't connect to cloud server!

 Traceback (8909):
   Module: Kernel::System::Package::CloudFileGet Line: 4860
(...)
   Module: bin/otrs.Console.pl Line: 37

Code:
        # create the package name
        my $CodeModule = 'var::packagesetup::' . $Param{Structure}->{Name}->{Content};

        $Kernel::OM->Get($CodeModule)->CodeUpgradePre();

Notice: Removed file: /opt/otrs/doc/en/SystemMonitoring.xml
Notice: Recovered: /opt/otrs/doc/en/SystemMonitoring.xml.save
(...)
Notice: Removed file: /opt/otrs/var/packagesetup/SystemMonitoring.pm
(...)
Notice: Install /opt/otrs/doc/en/SystemMonitoring.xml (660)!
(...)
Notice: Install /opt/otrs/doc/en/SystemMonitoring_en.pdf (660)!
Code:
        # create the package name
        my $CodeModule = 'var::packagesetup::' . $Param{Structure}->{Name}->{Content};

        $Kernel::OM->Get($CodeModule)->CodeUpgrade();

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:39 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:40 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:41 2023

 Message: Can't perform POST on https://addons.znuny.com/api/otrs_cloud_service/: 404 Not Found

 Traceback (8909):
   Module: Kernel::System::WebUserAgent::Request Line: 246
(...)
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:01:41 2023

 Message: Can't connect to cloud server!

 Traceback (8909):
   Module: Kernel::System::Package::CloudFileGet Line: 4860
(...)
   Module: bin/otrs.Console.pl Line: 37

Notice: Removed file: /opt/otrs/Kernel/Config/Files/XML/OTRSMasterSlave.xml
Notice: Recovered: /opt/otrs/Kernel/Config/Files/XML/OTRSMasterSlave.xml.save
(...)
Notice: Recovered: /opt/otrs/var/httpd/htdocs/js/Core.Agent.TicketMasterSlave.js.save
Notice: Removed file: /opt/otrs/var/packagesetup/OTRSMasterSlave.pm
Notice: Removed file: /opt/otrs/doc/en/OTRSMasterSlave_en.pdf
Notice: Install /opt/otrs/Kernel/Config/Files/XML/OTRSMasterSlave.xml (660)!
(...)
Notice: Install /opt/otrs/doc/en/OTRSMasterSlave_en.pdf (660)!
Code:
        $Kernel::OM->Get('var::packagesetup::OTRSMasterSlave')->CodeUpgrade();

  The following packages were updated...
    FAQ
    OTRSMasterSlave
    SystemMonitoring

  The following packages could not be found in the on-line repositories...
    GeneralCatalog
    ITSM
    ITSMChangeManagement
    ITSMConfigurationManagement
    ITSMCore
    ITSMIncidentProblemManagement
    ITSMServiceLevelManagement
    ImportExport

Fail.

su -c "bin/otrs.Console.pl Admin::Package::ReinstallAll" -s /bin/bash otrs
Reinstalling all OTRS packages that are not correctly deployed...
ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:04:04 2023

 Message: ITSMConfigurationManagement-6.0.31: /opt/otrs/Kernel/System/Service/PreferencesDB.pm is different!

 Traceback (9324):
   Module: Kernel::System::Package::DeployCheck Line: 1783
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 66
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Mon Jan 30 16:04:04 2023

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.1.2)!

 Traceback (9324):
   Module: Kernel::System::Package::AnalyzePackageFrameworkRequirements Line: 3095
   Module: Kernel::System::Package::PackageReinstall Line: 712
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 78
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

Error: Package ITSMConfigurationManagement could not be reinstalled
Help appreciated, thanks!

Best,
Carsten
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Ok, I did add

Code: Select all

Package::RepositoryList "https://download.znuny.org/releases/itsm/bundle6x/" and
Package::RepositoryList "https://download.znuny.org/releases/itsm/bundle6/"
but I'm still not there:

Code: Select all

Message: Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.1.2)!
Message: ITSMConfigurationManagement-6.0.31: /opt/otrs/Kernel/System/Service/PreferencesDB.pm is different!
In detail:

Code: Select all

su -c "bin/otrs.Console.pl Admin::Package::UpgradeAll" -s /bin/bash otrs
Fetching on-line repositories...
  Znuny Open Source Add-ons... Done
ERROR: OTRS-otrs.Console.pl-Admin::Package::UpgradeAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 08:09:30 2023

 Message: No packages for your framework version found in this repository, it only contains packages for other framework versions.

 Traceback (93222):
   Module: Kernel::System::Package::PackageOnlineList Line: 1554
   Module: Kernel::System::Console::Command::Admin::Package::UpgradeAll::Run Line: 109
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

  ZNUNY::ITSM 6 Bundle Master... Done
  ZNUNY::ITSM 6x ITSM Bundle Master... Done
  Freebie Features... Done

Upgrading installed packages...
  The following packages were updated...
    FAQ
    ITSM
    OTRSMasterSlave
    SystemMonitoring

Done.
host:/opt/otrs # su -c "bin/otrs.Console.pl Admin::Package::ReinstallAll" -s /bin/bash otrs
Reinstalling all OTRS packages that are not correctly deployed...
ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 08:11:08 2023

 Message: ITSMConfigurationManagement-6.0.31: /opt/otrs/Kernel/System/Service/PreferencesDB.pm is different!

 Traceback (93267):
   Module: Kernel::System::Package::DeployCheck Line: 1783
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 66
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 08:11:08 2023

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.1.2)!

 Traceback (93267):
   Module: Kernel::System::Package::AnalyzePackageFrameworkRequirements Line: 3095
   Module: Kernel::System::Package::PackageReinstall Line: 712
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 78
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

Error: Package ITSMConfigurationManagement could not be reinstalled.
I realize there is no "ITSM-6.1.2.opm" in https://download.znuny.org/releases/itsm/bundle6x/, is that the reason? Can I jump over upgrading packages when I (only) want to get to 6.4.5 (btw., there is also no ITSM-6.4.5.opm) or is mandatory to always upgrade packages (after each upgrade of Znuny)?

Anyone can help? Thanks!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

Hi,

From the package list you've provided, it's possible to update the package when you're on 6.4.5

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Hi, thanks for coming back to me, so that means it is not necessary to update packages all the way along, it'll be enough to update "in the end"? Will Znuny 6.4.5 then be happy with ITSM-6.4.3.opm? Sorry, probably noob questions....
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

cdeibert wrote: 31 Jan 2023, 09:52 Hi, thanks for coming back to me, so that means it is not necessary to update packages all the way along, it'll be enough to update "in the end"? Will Znuny 6.4.5 then be happy with ITSM-6.4.3.opm? Sorry, probably noob questions....
Hi,

Yes, this combination is fine. Rule of thumb: major and minor versions must match (MAJOR.MINOR.PATCHLEVEL)

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Ok, I'm not giving up, but no success so far either:

Package::RepositoryRoot: "https://download.znuny.org/releases/mis ... sitory.xml"
Package::RepositoryList: "https://download.znuny.org/releases/itsm/bundle6/"
Package::RepositoryList: "https://download.znuny.org/releases/itsm/bundle6x/"
Package::RepositoryList: "https://download.znuny.org/releases/itsm/packages6/"
Package::RepositoryList: "https://download.znuny.org/releases/itsm/packages6x/"

Successful Update to 6.4.5, but:
Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.4.5)!

The following packages were updated...
FAQ
OTRSMasterSlave
SystemMonitoring

The following packages could not be found in the online repositories...

GeneralCatalog
ITSM
ITSMChangeManagement
ITSMConfigurationManagement
ITSMCore
ITSMIncidentProblemManagement
ITSMServiceLevelManagement
ImportExport

Details:

Code: Select all

 su -c "bin/otrs.Console.pl Admin::Package::ReinstallAll" -s /bin/bash otrs
Reinstalling all packages that are not correctly deployed...
ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 12:01:29 2023

 Message: ITSMConfigurationManagement-6.0.31: /opt/otrs/Kernel/System/Service/PreferencesDB.pm is different!

 Traceback (113233):
   Module: Kernel::System::Package::DeployCheck Line: 1787
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 66
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 12:01:29 2023

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.4.5)!

 Traceback (113233):
   Module: Kernel::System::Package::AnalyzePackageFrameworkRequirements Line: 2751
   Module: Kernel::System::Package::PackageReinstall Line: 690
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 78
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

Hi,

Try

Code: Select all

bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/bundle6x/:ITSM-6.4.3.opm
- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Hi, upgrade looks goot, but no change :( :

Code: Select all

su -c "bin/otrs.Console.pl Admin::Package::ReinstallAll" -s /bin/bash otrs
Reinstalling all packages that are not correctly deployed...
ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 13:44:01 2023

 Message: ITSMConfigurationManagement-6.0.31: /opt/otrs/Kernel/System/Service/PreferencesDB.pm is different!

 Traceback (2869):
   Module: Kernel::System::Package::DeployCheck Line: 1787
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 66
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

ERROR: OTRS-otrs.Console.pl-Admin::Package::ReinstallAll-10 Perl: 5.26.1 OS: linux Time: Tue Jan 31 13:44:01 2023

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (6.0.x;) does not match your Framework (6.4.5)!

 Traceback (2869):
   Module: Kernel::System::Package::AnalyzePackageFrameworkRequirements Line: 2751
   Module: Kernel::System::Package::PackageReinstall Line: 690
   Module: Kernel::System::Console::Command::Admin::Package::ReinstallAll::Run Line: 78
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

Error: Package ITSMConfigurationManagement could not be reinstalled.
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Ok, I figured the core problem, the ITSM Bundle AND the various ITSM Packages are both installed, side by side. So I updated everything manually and in the end the bundle:

Code: Select all


su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:GeneralCatalog-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMCore-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMConfigurationManagement-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMIncidentProblemManagement-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMServiceLevelManagement-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:GeneralCatalog-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMChangeManagement-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ImportExport-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/bundle6x/:ITSM-6.4.3.opm" -s /bin/bash otrs
It now tells me:

Code: Select all

su -c "bin/otrs.Console.pl Admin::Package::ReinstallAll" -s /bin/bash otrs
Reinstalling all packages that are not correctly deployed...
No packages needed reinstallation.
But having both should not happen, right? How can I get this straight without loosing data?

Thanks,
C.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

Hi,

It's more a lack of information you have. The ITSM bundle (ITSM-x.y..opm) exists just for convenience and contains all single packages. I saw you have the bundle installed and that's why I gave you only one(!) line to upgrade the ITSM package and not every single one.

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Right, but the bundle sits next to the indiviual packages (which - until they are individually updated - stay with their old versions), meaning the bundle AND the packages showing up: IMHO the problem is, that both coexists at the same time, can that be?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

cdeibert wrote: 31 Jan 2023, 18:08 the problem is, that both coexists at the same time, can that be?
Hi,

This is no problem, it was always like this and also part of all training I know of.

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Dear Roy,

thanks again, so what I did is I returned to 6.0.48, deinstalled the bundle, left the individual packages, went all the way up to 6.4.5, upgraded the packages individually:

GeneralCatalog-6.4.3.opm --> Fine
ITSMCore-6.4.3.opm --> Throws

Code: Select all

ERROR: OTRS-otrs.Console.pl-Admin::Package::Upgrade-10 Perl: 5.26.1 OS: linux Ti                                                                                                             me: Fri Feb 3 14:54:47 2023
 Message: Code: Not an ARRAY reference at /opt/otrs/var/packagesetup/ITSMCore.pm                                                                                                              line 1242.

 Traceback (94476):
   Module: Kernel::System::Package::_Code Line: 3325
   Module: Kernel::System::Package::PackageUpgrade Line: 1154
   Module: Kernel::System::Console::Command::Admin::Package::Upgrade::Run Line:                                                                                                              89
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37
Upgraded all others except ITSMConfigurationManagement-6.4.3.opm without issues, everything seems to be ok, Site works. Then ITSMConfigurationManagement-6.4.3.opm:

Code: Select all

ERROR: OTRS-otrs.Console.pl-Admin::Package::Upgrade-10 Perl: 5.26.1 OS: linux Time: Fri Feb 3 15:20:56 2023

 Message: No such config item version!

 Traceback (96845):
   Module: Kernel::System::ITSMConfigItem::Version::VersionGet Line: 416
   Module: var::packagesetup::ITSMConfigurationManagement::_FillupEmptyIncidentAndDeploymentStateID Line: 1261
   Module: var::packagesetup::ITSMConfigurationManagement::CodeUpgrade Line: 245
   Module: (eval) Line: 12
   Module: Kernel::System::Package::_Code Line: 3324
   Module: Kernel::System::Package::PackageUpgrade Line: 1154
   Module: Kernel::System::Console::Command::Admin::Package::Upgrade::Run Line: 89
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37
This leads to broken site:

Code: Select all

Can't call method "ServicePreferencesGet" on an undefined value at /opt/otrs/Kernel/System/Service.pm line 1374. ,
Error 500
Any idea? Have a nice weekend!
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

For testing purpose (no real data loss involved here) I did uninstall ITSMConfigurationManagement, it then tells me that the value of ITSMConfigItem::NumberGenerator is not valid:

Code: Select all

Kernel::System::ITSMConfigItem::Number::AutoIncrement
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Package not correctly deployed

Post by root »

HI,

I'm out of ideas about what you're doing. We perform many updates every month and I can't recall issues like this. Do you have a complete, chronological list of commands you used for the update? E.g. from the shell history?

- 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 ?
cdeibert
Znuny newbie
Posts: 13
Joined: 23 Aug 2019, 09:17
Znuny Version: 6.5.1
Real Name: Carsten Deibert

Re: Package not correctly deployed

Post by cdeibert »

Thanks for coming back to me, yes, I fully understand, after going to 6.4.5:

Code: Select all

# Package-Update
cd /opt/otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:GeneralCatalog-6.4.3.opm" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMCore-6.4.3.opm" -s /bin/bash otrs

Code: Select all

ERROR: OTRS-otrs.Console.pl-Admin::Package::Upgrade-10 Perl: 5.26.1 OS: linux Time: Fri Feb 3 14:54:47 2023
Message: Code: Not an ARRAY reference at /opt/otrs/var/packagesetup/ITSMCore.pm line 1242.

Code: Select all

 Traceback (94476):
   Module: Kernel::System::Package::_Code Line: 3325
   Module: Kernel::System::Package::PackageUpgrade Line: 1154
   Module: Kernel::System::Console::Command::Admin::Package::Upgrade::Run Line: 89
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

Code: Select all

# This one breaks it completely:
su -c "bin/otrs.Console.pl Admin::Package::Upgrade https://download.znuny.org/releases/itsm/packages6x/:ITSMConfigurationManagement-6.4.3.opm" -s /bin/bash otrs

Code: Select all

ERROR: OTRS-otrs.Console.pl-Admin::Package::Upgrade-10 Perl: 5.26.1 OS: linux Time: Fri Feb 3 15:20:56 2023

 Message: No such config item version!

 Traceback (96845):
   Module: Kernel::System::ITSMConfigItem::Version::VersionGet Line: 416
   Module: var::packagesetup::ITSMConfigurationManagement::_FillupEmptyIncidentAndDeploymentStateID Line: 1261
   Module: var::packagesetup::ITSMConfigurationManagement::CodeUpgrade Line: 245
   Module: (eval) Line: 12
   Module: Kernel::System::Package::_Code Line: 3324
   Module: Kernel::System::Package::PackageUpgrade Line: 1154
   Module: Kernel::System::Console::Command::Admin::Package::Upgrade::Run Line: 89
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37
Great, that you're still on it!
beingbaban
Znuny newbie
Posts: 29
Joined: 20 Sep 2022, 13:59
Znuny Version: Znuny 6.5 LTS
Real Name: BP Singh

Re: Package not correctly deployed

Post by beingbaban »

This thread has helped me solve many problems.

What I personally feel is you need to upgrade to znuny 6.1.1 instead of znuny 6.1.2, then add repo of packesges6x and can proceed to update packages from webgui.

Once this is done, you can proceed to further incremental upgrades.

Note: Pls try at your own risk, just posting as I feel it can help as I solved my bit different problem in same way :)
Post Reply