error when upgrade 6.3.4 to 6.4.5

Moderator: crythias

Post Reply
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

error when upgrade 6.3.4 to 6.4.5

Post by FSF »

Hello

I have an error message when I update znuny 6.3.4 to 6.4.5

I follow the following tutorial: https://doc.znuny.org/manual/releases/i ... e-6.4.html

and here are all my command lines with at the end the error on the command: scripts/MigrateToZnuny6_4.pl

Code: Select all

systemctl stop apache2
systemctl stop exim4
su -c 'bin/Cron.sh stop' - otrs
su -c 'bin/otrs.Daemon.pl stop' - otrs
cd /opt
wget https://download.znuny.org/releases/znuny-latest-6.4.tar.gz
/opt/znuny-6.4.5/bin/otrs.SetPermissions.pl
cp -av /opt/otrs/Kernel/Config.pm /opt/znuny-6.4.5/Kernel/
mv /opt/otrs/var/article/* /opt/znuny-6.4.5/var/article/
for f in $(find -L /opt/otrs -maxdepth 1 -type f -name .\* -not -name \*.dist); do cp -av "$f" /opt/znuny-6.4.5/; done
for f in $(find -L /opt/otrs/var/cron -maxdepth 1 -type f -name .\* -not -name \*.dist); do cp -av "$f" /opt/znuny-6.4.5/var/cron/; done
/opt/otrs/bin/otrs.CheckModules.pl --all
## error##
o Crypt::JWT.......................Not installed! To install, you can use: 'apt-get install -y libcrypt-jwt-perl'. (optional - JSON web token support.)
o Crypt::OpenSSL::X509.............Not installed! To install, you can use: 'apt-get install -y libcrypt-openssl-x509-perl'. (optional - X509 certificate support.)
o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o iCal::Parser.....................Not installed! To install, you can use: 'apt-get install -y libical-parser-perl'. (required - Required for calendar events.)
o Jq...............................Not installed! (optional - Support for extended condition checking via Jq for the generic interface.)
apt-get install -y libical-parser-perl
apt-get install -y libcrypt-jwt-perl
apt-get install -y libcrypt-openssl-x509-perl
/opt/otrs/bin/otrs.CheckModules.pl --all
## only errors remain for optional modulesl##
o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o Jq...............................Not installed! (optional - Support for extended condition checking via Jq for the generic interface.)
su - otrs
$ 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 ...
    Step 10 of 19: Reindex S/MIME certificates ...
[Thu Jan 12 14:14:28 2023] MigrateToZnuny6_4.pl: Use of uninitialized value in -e at /opt/znuny-6.4.5/Kernel/System/Crypt/SMIME.pm line 87.
[Thu Jan 12 14:14:28 2023] MigrateToZnuny6_4.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.4.5/Kernel/System/Crypt/SMIME.pm line 88.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-38 Perl: 5.32.1 OS: linux Time: Thu Jan 12 14:14:28 2023

 Message: No such !

 Traceback (31766):
   Module: Kernel::System::Crypt::SMIME::Check Line: 88
   Module: Kernel::System::Crypt::SMIME::new Line: 57
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 307
   Module: Kernel::System::ObjectManager::Get Line: 201
   Module: scripts::Migration::Znuny::ReindexSMIMECertificates::Run Line: 36
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_4.pl Line: 82

[Thu Jan 12 14:14:28 2023] MigrateToZnuny6_4.pl: Use of uninitialized value in concatenation (.) or string at /opt/znuny-6.4.5/Kernel/System/Crypt/SMIME.pm line 92.
Can't locate object method "ReIndexCertificate" via package "0" (perhaps you forgot to load "0"?) at /opt/znuny-6.4.5/scripts/Migration/Znuny/ReindexSMIMECertificates.pm line 4              0.
thank you in advance for your help

Greetings
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: error when upgrade 6.3.4 to 6.4.5

Post by zzz »

Hey,

Please check the setting “SMIME” and “SMIME::CertPath” in the system configuration and if the path is correct.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: error when upgrade 6.3.4 to 6.4.5

Post by FSF »

Hi

Indeed the SMIME configuration was in place but not activated, But I still have an error :-?

Code: Select all

/opt# su - otrs
$ 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 ...
    Step 10 of 19: Reindex S/MIME certificates ...
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-38 Perl: 5.32.1 OS: linux Time: Mon Jan 23 14:33:32 2023

 Message: /etc/ssl/certs not writable!

 Traceback (33670):
   Module: Kernel::System::Crypt::SMIME::Check Line: 102
   Module: Kernel::System::Crypt::SMIME::new Line: 57
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 307
   Module: Kernel::System::ObjectManager::Get Line: 201
   Module: scripts::Migration::Znuny::ReindexSMIMECertificates::Run Line: 36
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_4.pl Line: 82

Can't locate object method "ReIndexCertificate" via package "0" (perhaps you forgot to load "0"?) at /opt/znuny-6.4.5/scripts/Migration/Znuny/ReindexSMIMECertificates.pm line 40.
$
thank you for your help
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: error when upgrade 6.3.4 to 6.4.5

Post by gsalin »

Hi,
I think the error message is quite explicit : "Message: /etc/ssl/certs not writable!"

Gérald
--
znuny 6.5.6
postgresql 13
Rocky 8
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: error when upgrade 6.3.4 to 6.4.5

Post by FSF »

gsalin wrote: 13 Mar 2023, 11:28 Hi,
I think the error message is quite explicit : "Message: /etc/ssl/certs not writable!"

Gérald
Hello

It may be explicit, but it has been set up like this for more than a month and I still get the same message
SSL not writable.JPG
You do not have the required permissions to view the files attached to this post.
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: error when upgrade 6.3.4 to 6.4.5

Post by FSF »

Hello

I still can't update znuny because of this error that persists

how to solve this error?

Thank you
root
Administrator
Posts: 3954
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: error when upgrade 6.3.4 to 6.4.5

Post by root »

Hi,

This directory needs to be writable for the application user. If you don't use S/MIME I recommend reseting them to the default values.

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

Re: error when upgrade 6.3.4 to 6.4.5

Post by skullz »

If you not using SMIME, turn it off first..
best way reset all of it (SMIME setting) to default
smime.png
dont forget to deploy the config afterwards
You do not have the required permissions to view the files attached to this post.
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: error when upgrade 6.3.4 to 6.4.5

Post by FSF »

Hello and thank you

this was indeed what was blocking the update

thank you
Post Reply