Upgrading 6.0.48 to 6.1 fails with Deep recursion on subroutine

Moderator: crythias

Post Reply
dchrichard
Znuny newbie
Posts: 7
Joined: 09 Sep 2016, 12:59
Znuny Version: 6.2.2
Real Name: Richard van den Berg
Company: Dekker Chrysanten

Upgrading 6.0.48 to 6.1 fails with Deep recursion on subroutine

Post by dchrichard »

On an up to date Debian system running Znuny 6.0.48:

Code: Select all

otrs@dchdebotrs2:~$ bin/otrs.Console.pl Admin::Package::ReinstallAll
Reinstalling all OTRS packages that are not correctly deployed...
No packages needed reinstallation.

otrs@dchdebotrs2:~$ bin/otrs.Console.pl Admin::Package::UpgradeAll
Fetching on-line repositories...
  Addons - Znuny4OTRS / Public... Done
  Znuny Open Source Add-ons... Done
  Znuny::ITSM Bundle... Done
  Freebie Features... Done

Upgrading installed packages...
  All installed packages are already at their latest versions.

Done.
I followed the instructions on https://doc.znuny.org/manual/releases/i ... -6.1.html# with 6.1.1, with 6.1.2 I get the same result.

Added --verbose to the migrate script:

Code: Select all

otrs@dchdebotrs2:~$ scripts/MigrateToZnuny6_1.pl --verbose

 Migration started ...

 Checking requirements ...

    Requirement check for: Check framework version ...
    Requirement check for: Check required Perl version ...
    Installed Perl version: v5.32.1. Minimum required Perl version: v5.16.0.
    Requirement check for: Check required database version ...
    Installed database version: PostgreSQL 13.9. Minimum required database version: 9.2.0.
    Requirement check for: Check database charset ...
    Database backend is not MySQL, skipping...
    Requirement check for: Check required Perl modules ...

    Executing /opt/otrs/bin/otrs.CheckModules.pl to check for missing required modules.

  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v2.36)
  o Archive::Zip.....................ok (v1.68)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o CSS::Minifier::XS................ok (v0.11)
  o Date::Format.....................ok (v2.24)
  o DateTime.........................ok (v1.54)
    o DateTime::TimeZone.............ok (v2.47)
  o DBI..............................ok (v1.643)
  o DBD::mysql.......................ok (v4.050)
  o DBD::ODBC........................Not installed! To install, you can use: 'apt-get install -y libdbd-odbc-perl'. (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................ok (v3.14.2)
  o Digest::SHA......................ok (v6.02)
  o Encode::HanExtra.................ok (v0.23)
  o IO::Socket::SSL..................ok (v2.069)
  o JavaScript::Minifier::XS.........ok (v0.13)
  o Jq...............................Not installed! (optional - Support for extended condition checking via Jq for the generic interface.)
  o JSON::XS.........................ok (v4.03)
  o List::Util::XS...................ok (v1.55)
  o LWP::UserAgent...................ok (v6.53)
  o Mail::IMAPClient.................ok (v3.42)
    o IO::Socket::SSL................ok (v2.069)
    o Authen::SASL...................ok (v2.16)
    o Authen::NTLM...................ok (v1.09)
  o ModPerl::Util....................ok (v2.000011)
  o Moo..............................ok (v2.004004)
  o Net::DNS.........................ok (v1.29)
  o Net::LDAP........................ok (v0.68)
  o Net::SMTP........................ok (v3.11)
  o Template.........................ok (v2.27)
  o Template::Stash::XS..............ok (undef)
  o Text::Diff::FormattedHTML........ok (v0.08)
  o Text::CSV_XS.....................ok (v1.45)
  o Time::HiRes......................ok (v1.9764)
  o XML::LibXML......................ok (v2.0134)
  o XML::LibXSLT.....................ok (v1.99)
  o XML::Parser......................ok (v2.46)
  o YAML::XS.........................ok (v0.82)
    Requirement check for: Check if database has been backed up ...

        Warning: this script can make changes to your database which are irreversible.
        Make sure you have properly backed up complete database before continuing.

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

    Requirement check for: Upgrade database structure ...

Trying to connect to database 'DBI:Pg:dbname=otrs;host=127.0.0.1' with user 'otrs'...
Connection successful.


 Executing tasks ...

    Step 1 of 18: Check framework version ...
    Step 2 of 18: Check required Perl version ...
    Step 3 of 18: Check required database version ...
    Step 4 of 18: Check database charset ...
    Step 5 of 18: Check required Perl modules ...
    Step 6 of 18: Check installed CPAN modules for known vulnerabilities ...
Collecting all installed modules. This can take a while...
No advisories found
    Step 7 of 18: Check if database has been backed up ...
    Step 8 of 18: Upgrade database structure ...

       - Renaming database tables
       - Updating database indices

    Step 9 of 18: Rebuild configuration ...
    Step 10 of 18: Migrate SysConfig settings ...
    Step 11 of 18: Migrate web service configuration ...
[Fri Mar 24 15:58:32 2023] MigrateToZnuny6_1.pl: Deep recursion on subroutine "Kernel::System::ObjectManager::Create" at /opt/znuny-6.1.1/Kernel/System/Log.pm line 190.
[Fri Mar 24 15:58:32 2023] MigrateToZnuny6_1.pl: Deep recursion on subroutine "Kernel::System::ObjectManager::_ObjectBuild" at /opt/znuny-6.1.1/Kernel/System/ObjectManager.pm line 242.
[Fri Mar 24 15:58:32 2023] MigrateToZnuny6_1.pl: Deep recursion on subroutine "Kernel::System::DateTime::new" at /opt/znuny-6.1.1/Kernel/System/ObjectManager.pm line 307.
[Fri Mar 24 15:58:32 2023] MigrateToZnuny6_1.pl: Deep recursion on subroutine "Kernel::System::DateTime::_CPANDateTimeObjectCreate" at /opt/znuny-6.1.1/Kernel/System/DateTime.pm line 153.
[Fri Mar 24 15:58:32 2023] MigrateToZnuny6_1.pl: Deep recursion on subroutine "Kernel::System::Log::Log" at /opt/znuny-6.1.1/Kernel/System/DateTime.pm line 1831.
Geëlimineerd
otrs@dchdebotrs2:~$
Does someone have an idea, tip or advise to solve above issue?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Upgrading 6.0.48 to 6.1 fails with Deep recursion on subroutine

Post by root »

Hi,

What is your exact version of Debian?

- 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 ?
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Upgrading 6.0.48 to 6.1 fails with Deep recursion on subroutine

Post by skullz »

Last time i had this issue is regarding non compatible cpan module DateTIme::TimeZone..

downgrading to the lower version / updating to latest version solved the issue..

Code: Select all

cpanm DateTime::TimeZone@version_number
https://metacpan.org/pod/DateTime::TimeZone
dchrichard
Znuny newbie
Posts: 7
Joined: 09 Sep 2016, 12:59
Znuny Version: 6.2.2
Real Name: Richard van den Berg
Company: Dekker Chrysanten

Re: Upgrading 6.0.48 to 6.1 fails with Deep recursion on subroutine

Post by dchrichard »

Thank you! Downgrading DateTIme::TimeZone from 2.47 to 2.46 resolves the error.
root wrote: 24 Mar 2023, 18:21 Hi,

What is your exact version of Debian?

- Roy
11.6 with libdatetime-timezone-perl 1:2.47-1+2022g.
Post Reply