Probléme suite à mise à jours d'image

Suite à un crash de mon environnement de Lab, j’ai mon plugin en cours de développements qui ne démarre plus.

J’ai vérifié les droits des fichiers, j’ai essayé de recharger une sauvegarde ou de repartir d’une installation vierge.
Impossible de faire démarrer mon plugin, et sans log

Bonjour
Que veut dire « démarrer mon plugin » ?

On ne se dit pas bonjour donc…

Et que va-t-on pouvoir faire nous?
On n’a ni accès à cette box ni au code du plugin… et sans log.
Et « demarrer un plugin » ne veut rien dire en plus.

Sans trop insister sur la catégorie utilisé, c’est quoi le rapport avec le dev du core?

Pardon tu as raison,
Bonjour

Merci de me répondre, je suis dessus toute la journée e tje fatigue j’ai même oublié de coller le message d’arreur web au démarrage :

[MySQL] Error code : 42S02 (1932). Table ‹ jeedom.config › doesn’t exist in engine : SELECT key,value FROM config WHERE key IN (‹ language ›) AND plugin=:plugin

Je travaille sur mon plugin Projote, mais comme rien ne démarre, je ne suis pas sûr qu’il soit à remettre en cause.

Bonjour
Tu as un soucis à la restoration si tu en as fait une relance. Sinon en ligne de commande

php /var/www/html/install/database.php

Ça devrait corriger

[START CHECK AND FIX DB]

Fix : CREATE TABLE IF NOT EXISTS `cmd` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`eqLogic_id` int(11) NOT NULL,
`eqType` varchar(127) NULL,
`logicalId` varchar(1023) NULL,
`order` int(11) NULL,
`name` varchar(127) NULL,
`configuration` mediumtext NULL,
`template` text NULL,
`isHistorized` varchar(45) NOT NULL,
`type` varchar(45) NULL,
`subType` varchar(45) NULL,
`unite` varchar(45) NULL,
`display` text NULL,
`isVisible` int(11) NULL DEFAULT "1",
`value` varchar(255) NULL,
`alert` text NULL,
`generic_type` varchar(255) NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `cmd` (`eqLogic_id` ASC,`name` ASC);
CREATE INDEX `isHistorized` ON `cmd` (`isHistorized` ASC);
CREATE INDEX `type` ON `cmd` (`type` ASC);
CREATE INDEX `name` ON `cmd` (`name` ASC);
CREATE INDEX `subtype` ON `cmd` (`subType` ASC);
CREATE INDEX `eqLogic_id` ON `cmd` (`eqLogic_id` ASC);
CREATE INDEX `value` ON `cmd` (`value` ASC);
CREATE INDEX `order` ON `cmd` (`order` ASC);
CREATE INDEX `logicalID` ON `cmd` (`logicalId` ASC)
Fix : CREATE TABLE IF NOT EXISTS `config` (
`plugin` varchar(127) NOT NULL DEFAULT "core",
`key` varchar(127) NOT NULL,
`value` mediumtext NULL,
primary key(`plugin`,`key`))
 ENGINE InnoDB;

Fix : CREATE TABLE IF NOT EXISTS `cron` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`enable` int(11) NULL,
`class` varchar(127) NULL,
`function` varchar(127) NOT NULL,
`schedule` varchar(127) NULL,
`timeout` int(11) NULL,
`deamon` int(11) NULL DEFAULT "0",
`deamonSleepTime` int(11) NULL,
`option` text NULL,
`once` int(11) NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `function` ON `cron` (`function` ASC);
CREATE INDEX `deamon` ON `cron` (`deamon` ASC)
Fix : CREATE TABLE IF NOT EXISTS `dataStore` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(127) NOT NULL,
`link_id` int(11) NOT NULL,
`key` varchar(127) NOT NULL,
`value` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `UNIQUE` ON `dataStore` (`type` ASC,`link_id` ASC,`key` ASC)
Fix : CREATE TABLE IF NOT EXISTS `eqLogic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NOT NULL,
`logicalId` varchar(127) NULL,
`object_id` int(11) NULL,
`eqType_name` varchar(127) NOT NULL,
`configuration` mediumtext NULL,
`isVisible` tinyint(1) NULL,
`isEnable` tinyint(1) NULL,
`status` text NULL,
`timeout` int(11) NULL,
`category` text NULL,
`display` text NULL,
`order` int(11) NULL DEFAULT "1",
`comment` text NULL,
`generic_type` varchar(255) NULL,
`tags` varchar(255) NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `eqLogic` (`name` ASC,`object_id` ASC);
CREATE INDEX `eqTypeName` ON `eqLogic` (`eqType_name` ASC);
CREATE INDEX `name` ON `eqLogic` (`name` ASC);
CREATE INDEX `logical_id` ON `eqLogic` (`logicalId` ASC);
CREATE INDEX `object_id` ON `eqLogic` (`object_id` ASC);
CREATE INDEX `timeout` ON `eqLogic` (`timeout` ASC);
CREATE INDEX `generic_type` ON `eqLogic` (`generic_type` ASC);
CREATE INDEX `tags` ON `eqLogic` (`tags` ASC)
Fix : CREATE TABLE IF NOT EXISTS `history` (
`cmd_id` int(11) NOT NULL,
`datetime` datetime NOT NULL,
`value` varchar(127) NULL,
primary key(`cmd_id`,`datetime`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `history` (`datetime` ASC,`cmd_id` ASC);
CREATE INDEX `fk_history5min_commands1_idx` ON `history` (`cmd_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `historyArch` (
`cmd_id` int(11) NOT NULL,
`datetime` datetime NOT NULL,
`value` varchar(127) NULL,
primary key(`cmd_id`,`datetime`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `historyArch` (`cmd_id` ASC,`datetime` ASC)
Fix : CREATE TABLE IF NOT EXISTS `interactDef` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NULL,
`enable` int(11) NULL DEFAULT "1",
`query` text NULL,
`reply` text NULL,
`person` varchar(255) NULL,
`options` text NULL,
`filtres` text NULL,
`group` varchar(127) NULL,
`actions` text NULL,
`display` text NULL,
`comment` text NULL,
primary key(`id`))
 ENGINE InnoDB;

Fix : CREATE TABLE IF NOT EXISTS `interactQuery` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`interactDef_id` int(11) NOT NULL,
`query` text NULL,
`actions` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `fk_sarahQuery_sarahDef1_idx` ON `interactQuery` (`interactDef_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `listener` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`class` varchar(127) NULL,
`function` varchar(127) NULL,
`event` varchar(511) NULL,
`option` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `event` ON `listener` (`event`(255) ASC)
Fix : CREATE TABLE IF NOT EXISTS `message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime NOT NULL,
`logicalId` varchar(127) NULL,
`plugin` varchar(127) NOT NULL,
`message` text NULL,
`action` text NULL,
`occurrences` int(11) NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `plugin_logicalID` ON `message` (`plugin` ASC,`logicalId` ASC)
Fix : CREATE TABLE IF NOT EXISTS `note` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NULL,
`text` text NULL,
primary key(`id`))
 ENGINE InnoDB;

Fix : CREATE TABLE IF NOT EXISTS `object` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NOT NULL,
`father_id` int(11) NULL,
`isVisible` tinyint(1) NULL,
`position` int(11) NULL,
`configuration` text NULL,
`display` text NULL,
`image` mediumtext NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `name_UNIQUE` ON `object` (`name` ASC);
CREATE INDEX `fk_object_object1_idx1` ON `object` (`father_id` ASC);
CREATE INDEX `position` ON `object` (`position` ASC)
Fix : CREATE TABLE IF NOT EXISTS `plan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`planHeader_id` int(11) NOT NULL,
`link_type` varchar(127) NULL,
`link_id` int(11) NULL,
`position` text NULL,
`display` text NULL,
`css` text NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `unique` ON `plan` (`link_type` ASC,`link_id` ASC);
CREATE INDEX `fk_plan_planHeader1_idx` ON `plan` (`planHeader_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `plan3d` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NULL,
`plan3dHeader_id` int(11) NOT NULL,
`link_type` varchar(127) NULL,
`link_id` varchar(127) NULL,
`position` text NULL,
`display` text NULL,
`css` text NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `name` ON `plan3d` (`name` ASC);
CREATE INDEX `link_type_link_id` ON `plan3d` (`link_type` ASC,`link_id` ASC);
CREATE INDEX `fk_3d_3dHeader1_idx` ON `plan3d` (`plan3dHeader_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `plan3dHeader` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NULL,
`order` int(11) NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `order` ON `plan3dHeader` (`order` ASC)
Fix : CREATE TABLE IF NOT EXISTS `planHeader` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NULL,
`image` mediumtext NULL,
`order` int(11) NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `order` ON `planHeader` (`order` ASC)
Fix : CREATE TABLE IF NOT EXISTS `scenario` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NULL,
`group` varchar(127) NULL,
`isActive` tinyint(1) NULL DEFAULT "1",
`mode` varchar(127) NULL,
`schedule` text NULL,
`scenarioElement` text NULL,
`trigger` varchar(511) NULL,
`timeout` int(11) NULL,
`isVisible` tinyint(1) NULL DEFAULT "1",
`object_id` int(11) NULL,
`display` text NULL,
`description` text NULL,
`configuration` text NULL,
`order` int(11) NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `name` ON `scenario` (`group` ASC,`object_id` ASC,`name` ASC);
CREATE INDEX `fk_scenario_object1_idx` ON `scenario` (`object_id` ASC);
CREATE INDEX `trigger` ON `scenario` (`trigger`(255) ASC);
CREATE INDEX `mode` ON `scenario` (`mode` ASC);
CREATE INDEX `modeTriger` ON `scenario` (`mode` ASC,`trigger`(255) ASC)
Fix : CREATE TABLE IF NOT EXISTS `scenarioElement` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order` int(11) NOT NULL,
`type` varchar(127) NULL,
`name` varchar(127) NULL,
`options` text NULL,
`log` text NULL,
primary key(`id`))
 ENGINE InnoDB;

Fix : CREATE TABLE IF NOT EXISTS `scenarioExpression` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order` int(11) NULL,
`scenarioSubElement_id` int(11) NOT NULL,
`type` varchar(127) NULL,
`subtype` varchar(127) NULL,
`expression` text NULL,
`options` text NULL,
`log` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `fk_scenarioExpression_scenarioSubElement1_idx` ON `scenarioExpression` (`scenarioSubElement_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `scenarioSubElement` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order` int(11) NULL,
`scenarioElement_id` int(11) NOT NULL,
`type` varchar(127) NULL,
`subtype` varchar(127) NULL,
`name` varchar(127) NULL,
`options` text NULL,
`log` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `fk_scenarioSubElement_scenarioElement1_idx` ON `scenarioSubElement` (`scenarioElement_id` ASC);
CREATE INDEX `type` ON `scenarioSubElement` (`scenarioElement_id` ASC,`type` ASC)
Fix : CREATE TABLE IF NOT EXISTS `update` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(127) NULL,
`name` varchar(127) NULL,
`logicalId` varchar(127) NULL,
`localVersion` varchar(127) NULL,
`remoteVersion` varchar(127) NULL,
`updateDate` datetime NULL,
`source` varchar(127) NULL DEFAULT "market",
`status` varchar(127) NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `status` ON `update` (`status` ASC)
Fix : CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(45) NULL,
`profils` varchar(127) NOT NULL DEFAULT "admin",
`password` varchar(255) NULL,
`options` text NULL,
`hash` varchar(255) NULL,
`rights` text NULL,
`enable` int(11) NULL DEFAULT "1",
primary key(`id`))
 ENGINE InnoDB;

Fix : CREATE TABLE IF NOT EXISTS `view` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(127) NULL,
`display` text NULL,
`order` int(11) NULL,
`image` mediumtext NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `name_UNIQUE` ON `view` (`name` ASC)
Fix : CREATE TABLE IF NOT EXISTS `viewData` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order` int(11) NULL,
`viewZone_id` int(11) NOT NULL,
`type` varchar(127) NULL,
`link_id` int(11) NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `viewData` (`viewZone_id` ASC,`link_id` ASC,`type` ASC);
CREATE INDEX `order` ON `viewData` (`order` ASC,`viewZone_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `viewZone` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`view_id` int(11) NOT NULL,
`type` varchar(127) NULL,
`name` varchar(127) NULL,
`position` int(11) NULL,
`configuration` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE INDEX `fk_zone_view1` ON `viewZone` (`view_id` ASC)
Fix : CREATE TABLE IF NOT EXISTS `widgets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) NOT NULL,
`type` varchar(27) NULL,
`subtype` varchar(27) NULL,
`template` varchar(255) NULL,
`display` text NULL,
`replace` text NULL,
`test` text NULL,
primary key(`id`))
 ENGINE InnoDB;

CREATE UNIQUE INDEX `unique` ON `widgets` (`type` ASC,`subtype` ASC,`name` ASC)
Fix : CREATE TABLE IF NOT EXISTS `timeline` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`folder` varchar(255) NULL,
`type` varchar(27) NULL,
`subtype` varchar(27) NULL,
`link_id` varchar(27) NULL,
`name` varchar(255) NULL,
`datetime` datetime NOT NULL,
`options` text NULL,
primary key(`id`,`datetime`))
 ENGINE InnoDB;

CREATE INDEX `datetime` ON `timeline` (`datetime` ASC)[END CHECK AND FIX DB]

Voici le résultat de la commande, mais aucun changement mêm aprés un relance du docker.Texte préformaté

Pour compléter, je suis sous docker / synology car il s’agit de mon environnement de test.

Peux tu mettres les logs dans une valise code car la c’est illisible…

Ensuite tu as toujours la même erreur ? C’est pas une veille erreur ?

Affirmatif, cela ressemble bien à une ancienne erreur.

Mais je te confirme que j’utilise la derniére image.

Dans ce cas faut trouver la vrai erreur sinon je vois pas trop comment aider. Essaye peut être de supprimer le dossier de ton plugin déjà pour voir. Si y’a une erreur de syntaxe tu as de grande chance d’avoir une page blanche sans erreur

Donc j’ai supprimé le plugin, avec le même résultat.
Le fichier jeedom.config est présent. Il semble accessible car le script donné fonctionne.
Le log du docker ne me parait pas des plus intéressant :

Start init
Jeedom is already install

d
Stopping deferred execution scheduler: atd.
Starting deferred execution scheduler: atd.
Starting mariadb
mysql: unrecognized service
Stopping MariaDB database server: mariadbd.
Starting MariaDB database server: mariadbd . . . ..
All init complete
Start apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.7. Set the 'ServerName' directive globally to suppress this message
Starting Apache httpd web server: apache2.

Je pense repartir d’une page vierge et recharger une sauvegarde par exemple. Mais je pense avoir de nouveaux problèmes, pour avoir déjà testé les trois solutions :
A) Repartir des fichiers d’origine sur une dernière version d’image docker :

Erreur [MySQL] Error code : 42S02 (1932). Table ‹ jeedom.config › doesn’t exist in engine : SELECT key,value FROM config WHERE key IN (‹ language ›) AND plugin=:plugin

B) Démarrage d’une version « fresh » est implémenté une sauvegarde :

Le gestionnaire de plugin est planté

C) Démarrage d’une version « fresh » et implantation du plugin qui marché :
le plugin ne démarre pas je n’ai que le log :

‹ Lancement démon ›

Il va falloir détailler plus car là tu dis gestionnaire de plugin planté mais avant tu disais pas de jeedom. Détails le plus possible on est pas a coter de toi.

Ce que je dis est que si je recharge une sauvegarde sur une installation vierge, le gestionnaire de plugin affiche bien des plugins dont certain valide et d’autre grisé.
Mais dans le menu, il n’y a aucun plugin d’actif et donc accessible
.

Il faut que j’avance, et je vais revenir à mon objectif principal,et abandonner cette erreur, par contre, il ne faut jamais mettre à jour une image docker via Container, sous peine d’avoir cette erreur.
Pour résoudre, j’invite à recharger une sauvegarde en espérant que cela marche.

Dans mon cas, de Jeedom pour développements, je vais refaire une installation de 0.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.