Upgrading Znuny from 7.0 to 7.1.3 issues

Moderator: crythias

Locked
hotkimchee
Znuny newbie
Posts: 11
Joined: 21 Aug 2024, 10:37
Znuny Version: 6.5
Real Name: Dan Chang

Upgrading Znuny from 7.0 to 7.1.3 issues

Post by hotkimchee »

Having issues with the migration.

Code: Select all

 Executing tasks ...

    Step 1 of 20: Check required Perl version ...
    Step 2 of 20: Check required Perl modules ...
    Step 3 of 20: Check if database has been backed up ...
    Step 4 of 20: Check required database version ...
    Step 5 of 20: Check database default storage engine ...
    Step 6 of 20: Upgrade database structure ...

       - Increase size of columns of database table standard_template
       - Create missing primary keys for database tables.

    Step 7 of 20: Migrate database to utf8mb4 ...
Variable 'default_storage_engine' is 'InnoDB'.
Variable 'innodb_file_per_table' is 'ON'.
Character set of the database changed successfully to utf8mb4.
    Step 8 of 20: Check database charset ...
    The setting character_set_client is: utf8mb4.
    Error: The setting character_set_database needs to be 'utf8'.
I went into the mysql to change it utf8, but still get the same error. I'm not sure what is happening because it says changing the character to set to utf8mb4, but then errors out that it's been changed. I would appreciate your help with this. Thank you.
hkais
Znuny wizard
Posts: 363
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Upgrading Znuny from 7.0 to 7.1.3 issues

Post by hkais »

Hi hotkimchee,

looks like an missed upgrade from 5->6, which was fixed there.

plz google for "How to fix Znuny error character_set_database" and you will find an article which explains what to do

I think it is obvious, but anyway. Ensure you have a backup...
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
Johannes
Moderator
Posts: 425
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Upgrading Znuny from 7.0 to 7.1.3 issues

Post by Johannes »

hotkimchee wrote: 28 Jan 2025, 11:02 Having issues with the migration.

Code: Select all

 Executing tasks ...

    Step 1 of 20: Check required Perl version ...
    Step 2 of 20: Check required Perl modules ...
    Step 3 of 20: Check if database has been backed up ...
    Step 4 of 20: Check required database version ...
    Step 5 of 20: Check database default storage engine ...
    Step 6 of 20: Upgrade database structure ...

       - Increase size of columns of database table standard_template
       - Create missing primary keys for database tables.

    Step 7 of 20: Migrate database to utf8mb4 ...
Variable 'default_storage_engine' is 'InnoDB'.
Variable 'innodb_file_per_table' is 'ON'.
Character set of the database changed successfully to utf8mb4.
    Step 8 of 20: Check database charset ...
    The setting character_set_client is: utf8mb4.
    Error: The setting character_set_database needs to be 'utf8'.
I went into the mysql to change it utf8, but still get the same error. I'm not sure what is happening because it says changing the character to set to utf8mb4, but then errors out that it's been changed. I would appreciate your help with this. Thank you.


Hi,

just alter your DB to the correct set.

Code: Select all

ALTER DATABASE znuny CHARACTER SET utf8 COLLATE utf8_general_ci;
OR

Code: Select all

ALTER DATABASE znuny CHARACTER SET utf8 COLLATE utf8_general_ci;
depending on your install.

Regards
Johannes
beingbaban
Znuny newbie
Posts: 68
Joined: 20 Sep 2022, 13:59
Znuny Version: Znuny 6.5 LTS
Real Name: BP Singh

Re: Upgrading Znuny from 7.0 to 7.1.3 issues

Post by beingbaban »

Hi Johannes,

After altering database it worked for us but do we also need to change character set in mariadb config file

Pls refer screencap.
You do not have the required permissions to view the files attached to this post.
Locked