Problem when upgrading RTIR from 5.0.3 to 5.0.4

There is a probleme when I have proceed:

make upgrade-database

Output:

# make upgrade-database
/usr/bin/perl -I. -Ilib -I/opt/rt5/local/lib -I/opt/rt5/lib /opt/rt5/sbin/rt-setup-database --action upgrade --dba root --prompt-for-dba-password  --package RT::IR --ext-version 5.0.4
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '') as root
Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Working with:
Type:   mysql
Host:   localhost
Port:
Name:   rt5
User:   rt_user
DBA:    root
Enter RT::IR version you're upgrading from: 5.0.3

Going to apply following upgrades:
* 5.0.4

Enter RT::IR version if you want to stop upgrade at some point,
  or leave it blank if you want apply above upgrades:

IT'S VERY IMPORTANT TO BACK UP BEFORE THIS STEP

Proceed [y/N]:y
Processing 5.0.4
Now inserting data.
[122395] [Tue May 23 03:45:51 2023] [error]: Failed to run one of final actions: Could not load 'Templates' class:  at /home/altyn/RT-IR-5.0.4/etc/upgrade/5.0.4/content line 8. (/opt/rt5/sbin/../lib/RT/Handle.pm:1902)
Done.

resolved, RTIR was already updated