pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
173 stars 125 forks source link

Unable to install Formcreator. #3028

Closed talbim closed 2 years ago

talbim commented 2 years ago

Hi everyone, hope you're all doing well !!!

I have some troubles to install Formcreator on my new upgrade environment.

I'm using GLPI 10.0.3 and when i try to install via the marketplace (and manually) and error occured ;

"The database schema is not consistent with the installed Formcreator 2.13.1. To see the logs run the command bin/console glpi:plugin:install formcreator -f"

Everything is ok for my DB whos MariaDB.

When i try to run the command line it ask me for a user but i don't know what is the user they refer to...

Can you please help me :)

Kind Regards

Melvin

btry commented 2 years ago

Hi

Read the releases notes of Formcreator 2.13.1.

Everything is ok for my DB whos MariaDB.

It seems not. What is the output if the CLI command ? Use a super admin account if a username is asked

talbim commented 2 years ago

Hi btry,

First, thank for your qick response ! Apreciate it ! :)

I did but it seems not working ... Capture

I upgrade from 9.5 to 10.0.3 !

btry commented 2 years ago

The plugin says you already have Formcreator 2.13.1. Either a previous upgade of the plugin succeeded, either there us a problem detecting the previous version of the plugin.

You should rollback to your latest backup before the 1st attempt to upgrade of Formcreator. I need this to know the state of some values in DB.

talbim commented 2 years ago

Re, J'ai vu que vous étiez français est-ce possible de switcher en Francais ?

J'ai réalisé depuis un ancien snapshot un nouvelle upgrade de GLPI. J'ai voulu faire un upgrade depuis le marketplace mais impossible de migrer la table en question.

Voici un message d'erreur : 2.13.1 multiple alter in glpi_plugin_formcreator_issues - Erreur durant l'éxecution de la requête : ALTER TABLE glpi_plugin_formcreator_issues CHANGE date_creation date_creation TIMESTAMP NULL DEFAULT NULL , CHANGE date_mod date_mod TIMESTAMP NULL DEFAULT NULL , CHANGE original_id items_id INT NOT NULL DEFAULT '0' , CHANGE sub_itemtype itemtype VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' , DROP INDEX original_id_sub_itemtype , ADD INDEX item (itemtype, items_id) - L'erreur est Incorrect datetime value: '1970-01-01 01:00:00' for column glpi.glpi_plugin_formcreator_issues.date_creation at row 6486

btry commented 2 years ago

Ca doit pouvoir s'arranger avec un patch. Vous devriez avoir un backtrace dans sql-errors.log correspondant à cette erreur. Pouvez vous le copier ici ?

talbim commented 2 years ago

En effet je trouve ça bizarre. :)

sql-errors.log

Merci beaucoup !

btry commented 2 years ago

L'erreur ne s'y trouve pas. Regardez dans glpi/files/_log/migration_to_2.13.1.log . Mettez juste l'extrait correspondant à ce ticket svp.

talbim commented 2 years ago

Voici : migration_to_2.13.1.log

btry commented 2 years ago

pas de backtrace ici non plus. Du coup j'en suis à deviner où est l'erreur. Votre précédente version de Formcreator est inférieure à 2.12.0 ?

talbim commented 2 years ago

Oui ancienne version 2.10.4 :)

btry commented 2 years ago

Exécutez cette requête pour voir combien de lignes ont le souci

select count(*) from glpi_plugin_formcreator_issues where date_creation < '2000-01-01 00:0:00';

talbim commented 2 years ago

Le resultat es "1"

talbim commented 2 years ago

Capture

btry commented 2 years ago

Je en vois pas de patch facile et sans risque pour gérer le problème. Il n'y qu'une ligne posant souci, et c'est sûrement une donnée corrompue.

Retrouvez cette colonne et montrez la valeur de la colonne date_mod.

talbim commented 2 years ago

Voici la valeur de la colonne dat_mod de la ligne en question : Capture

btry commented 2 years ago

Trouvez le ticket 6496 et la valeur de sa colonne date_creation. Copiez la dans date_creation de la ligne dans glpi_plugin_formcreator_issues. Ensuite retentez l'uptgrade.

talbim commented 2 years ago

J'ai essayé cela n'a pas fonctionné. Néanmoins c'était un environnement de test. J'ai donc supprimer le ticket qui posait problème et l'upgrade est passé :)

btry commented 2 years ago

OK; mais vous aurez certainement le problème lors de l'upgrade de la prod. Si vous avez besoin de garder le ticket il faudra modifier cette date.