I have a problem with my update, I have an error see below :
log of upgrade.log :
2022-06-01 12:49|0|0|UPGRADE - 22.04.0-beta.1: Unable to alter table security_token - Code : 42000 - Error : SQLSTATET42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes - Trace : #0 /usr/share/centreon/www/class/centreonDB.class.php(309): PDO->query() #1 /usr/share/centreon/www/install/php/Update-22.04.0-beta.1.php(94): CentreonDB->query() #2 /usr/share/centreon/www/install/step_upgrade/process/process_step4.php(72): include_once('...') #3 {main}
logs of sql-error.log :
2022-06-01 12:49|0|0|SQLSTATET42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes QUERY : ALTER TABLE security_token MODIFY token varchar(4096)
i have check and test the solution of this issue of art3mis :
Upgrade problem 21.10.6 to 22.04
but the problem still here
can you help me ?
Regards
Page 1 / 1
Hello @Kélian ,
What is your database version ?
What is the return of
desc centreon.security_token; SHOW CREATE TABLE centreon.security_token;
Once connected to mysql ?
@Kriko,
MariaDB [(none)]> SELECT VERSION(); +-----------------+ | VERSION() | +-----------------+ | 10.3.22-MariaDB | +-----------------+ 1 row in set (0.000 sec)
MariaDB [(none)]>
MariaDB [(none)]> desc centreon.security_token; +-----------------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+---------------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | token | varchar(255) | NO | MUL | NULL | | | creation_date | bigint(20) unsigned | NO | | NULL | | | expiration_date | bigint(20) unsigned | YES | MUL | NULL | | +-----------------+---------------------+------+-----+---------+----------------+ 4 rows in set (0.016 sec)