Restore ancienne version

Hello,

malgré plusieurs tentatives, je n’arrive pas a restore un backup 4.0.38 sur une fresh install
jeedom plante et ne boot plus
est-il possible de forcer une install de jeedom en version 4.0.38 ?

> pi@jeedom:/var/www/html/install $ sudo php restore.php
> [START RESTORE]
> ***************Begin Jeedom restore 2025-01-19 11:55:57***************
> Send begin restore event...OK
> Checking rights...OK
> Restore from file : /var/www/html/install/../backup/backup-abcd-4.0.38-2025-                                                                                                         01-19-00h05.tar.gz
> Backup database access configuration...Cannot copy /var/www/html/install/../core                                                                                                         /config/common.config.php
> OK
> Disable all task OK
> Disable all scenario OK
> Unpacking backup...OK
> Update composer file...
> OK
> [PROGRESS][58]
> Deleting database...Disabling constraints...OK
> Deleting table : cache ...OK
> Deleting table : cmd ...OK
> Deleting table : config ...OK
> Deleting table : cron ...OK
> Deleting table : dataStore ...OK
> Deleting table : eqLogic ...OK
> Deleting table : event ...OK
> Deleting table : history ...OK
> Deleting table : historyArch ...OK
> Deleting table : interactDef ...OK
> Deleting table : interactQuery ...OK
> Deleting table : listener ...OK
> Deleting table : message ...OK
> Deleting table : note ...OK
> Deleting table : object ...OK
> Deleting table : plan ...OK
> Deleting table : plan3d ...OK
> Deleting table : plan3dHeader ...OK
> Deleting table : planHeader ...OK
> Deleting table : scenario ...OK
> Deleting table : scenarioElement ...OK
> Deleting table : scenarioExpression ...OK
> Deleting table : scenarioSubElement ...OK
> Deleting table : timeline ...OK
> Deleting table : update ...OK
> Deleting table : user ...OK
> Deleting table : view ...OK
> Deleting table : viewData ...OK
> Deleting table : viewZone ...OK
> Deleting table : widgets ...OK
> Restoring database from backup...OK
> Enable back constraints...OK
> Restoring cache...OK
>         Restoring Plugin : calendar...OK
> Check jeedom consistency...[START CONSISTENCY]
> PHP Fatal error:  Uncaught Error: Non-static method DB::compareAndFix() cannot b                                                                                                         e called statically in /var/www/html/install/database.php:31
> Stack trace:
> #0 {main}
>   thrown in /var/www/html/install/database.php on line 31
> [START CHECK AND FIX DB]
> Check jeedom database...
> Fix : ALTER TABLE `interactQuery` ENGINE = InnoDBOK
> 
> Check filesystem right...OK
> [END CONSISTENCY]
> OK
> Enable scenario : OK
> Enable task : OK
> Check Network Conf : OK
> Sending end restore event...OK
> Restore duration : 52s
> ***************Jeedom Restore End***************
> [END RESTORE SUCCESS]
> pi@jeedom:/var/www/html/install $

Bonjour.

On y voit un problème de php, quelle est la version de l’os ?

Testez avec une Debian 10.

bookworm sur pi3b
le backup : pi3b ancienne distro

vous avez probablement un pb de prérequis

entre les version de debian, php, et le core jeedom il y a des dépendances

exemple:

4.4 : Pré-requis
Debian 11 “Bullseye” (très fortement recommandé, Jeedom reste fonctionnel en version précédente)
Php 7.4

la 4.0.38 c’est ancien :

4.0 : Pré-requis
Debian 9 Stretch

C’est ce que je vous disais, il faut une plus vielle distribution de Debian pour y restaurer votre vielle version de Jeedom.

Ok ok du coup comment restaurer une ancienne version de Jeedom ?

On vous l’a dit, sur une vielle version de Debian.

Testez depuiy une installation debian 11 et non 12.

Antoine

ok si je comprends bien, sur une debian le script d’install jeedom va automatiquement m’installer la 4.038 ?

Non, il va installer la dernière version, mais votre restauration devrait fonctionner, car cela sera la bonne version de PHP (inclus dans la Debian).

1 « J'aime »