Bonjour,
Aujourd’hui j’essaye de passer ma Smart sur la eMMC Jeedom 16Go officielle vendue par Domadoo.
Je suis le guide du site de domadoo :
- J’ouvre la smart
- je change la carte
- je redémarre
- je recharge ma sauvegarde
Alors que ça semblait etre bon, en fait non : plusieurs plugins refusent de mettre à jour leur dépendances (et pas les moins importants : zwave-js, mqtt manager, google smart home entre autre)…
A priori, c’est un problème de nodejs v10.x qui refuse de passer en v16.
Apres de multiples recherches sur internet et essais en ligne de commande, j’abandonne et essaye de remettre la box en configuration d’usine pour repartir de quelque chose de propre.
J’utilise une clé USB de 16Go pour être sur, tout semble bien se dérouler… Jusqu’au moment où la restauration me demande si je veux restaurer ma sauvegarde et que je dise oui… Rien ne se passe et mon jeedom reste en configuration d’usine, vide. Au bout d’un quart d’heure, je me dit que je vais relancer l’import de ma sauvegarde, mais celle-ci plante à la fin du process :
[START RESTORE]
***************Début de la restauration de Jeedom 2023-02-05 20:30:07***************
Envoi l'évènement de début de restauration...OK
Vérification des droits...
OK
Fichier utilisé pour la restauration : /var/www/html/core/class/../../backup/backup-Jeedom-4.3.15-2023-02-05-20h02.tar.gz
Backup database access configuration...Can not copy /var/www/html/install/../core/config/common.config.php
OK
Disable all task
OK
Disable all scenario OK
Décompression de la sauvegarde...
OK
Supprimer la table de la sauvegardeDésactive les contraintes...OK
Supprimer la table : cmd ...
OK
Supprimer la table : config ...
OK
Supprimer la table : cron ...OK
Supprimer la table : dataStore ...OK
Supprimer la table : eqLogic ...OK
Supprimer la table : eqReal ...OK
Supprimer la table : history ...OK
Supprimer la table : historyArch ...OK
Supprimer la table : interactDef ...OK
Supprimer la table : interactQuery ...OK
Supprimer la table : listener ...OK
Supprimer la table : message ...OK
Supprimer la table : note ...OK
Supprimer la table : object ...OK
Supprimer la table : plan ...OK
Supprimer la table : plan3d ...OK
Supprimer la table : plan3dHeader ...OK
Supprimer la table : planHeader ...OK
Supprimer la table : scenario ...OK
Supprimer la table : scenarioElement ...OK
Supprimer la table : scenarioExpression ...OK
Supprimer la table : scenarioSubElement ...OK
Supprimer la table : update ...OK
Supprimer la table : user ...OK
Supprimer la table : view ...OK
Supprimer la table : viewData ...OK
Supprimer la table : viewZone ...OK
Supprimer la table : widgets ...OK
Restauration de la base de données...OK
Supprimer la table de la sauvegardeDésactive les contraintes...OK
Supprimer la table : NAEvent ...OK
Supprimer la table : blea_remote ...OK
Supprimer la table : cmd ...OK
Supprimer la table : config ...OK
Supprimer la table : cron ...OK
Supprimer la table : dataStore ...OK
Supprimer la table : eqLogic ...OK
Supprimer la table : eqReal ...OK
Supprimer la table : gsh_devices ...OK
Supprimer la table : history ...OK
Restauration de la base de données...
OK
Active les contraintes...OK
Restauration du cache...OK
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /var/www/html/plugins/mail/3rdparty/PHPMailer/PHPMailerAutoload.php on line 45
Check jeedom consistency...[START CONSISTENCY]
[START CHECK AND FIX DB]
[END CHECK AND FIX DB]
Check jeedom package...
***ERREUR*** Installation de package impossible car il y a déjà une installation en cours
Check jeedom database...OK
Check crons...
Check filesystem right...PHP Fatal error: Uncaught Error: Call to undefined method jeedom::cleanFileSystemRight() in /var/www/html/install/consistency.php:375
Stack trace:
#0 /var/www/html/install/restore.php(199): require_once()
#1 {main}
thrown in /var/www/html/install/consistency.php on line 375
OK
Active les contraintes...OK
Restauration du cache...rm: cannot remove '/tmp/jeedom/cache': Directory not empty
mkdir: cannot create directory '/tmp/jeedom/cache': File exists
OK
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /var/www/html/plugins/mail/3rdparty/PHPMailer/PHPMailerAutoload.php on line 45
Check jeedom consistency...[START CONSISTENCY]
[START CHECK AND FIX DB]
[END CHECK AND FIX DB]
Check jeedom package...
***ERREUR*** Installation de package impossible car il y a déjà une installation en cours
Check jeedom database...OK
Check crons...
Check filesystem right...PHP Fatal error: Uncaught Error: Call to undefined method jeedom::cleanFileSystemRight() in /var/www/html/install/consistency.php:375
Stack trace:
#0 /var/www/html/install/restore.php(199): require_once()
#1 {main}
thrown in /var/www/html/install/consistency.php on line 375
Bon je tente quand même de me connecter, et mis à part quelques détails, ca semble quand même fonctionner à minima.
Et là paf : le même problème à la mise à jour des dépendances des plugins…
Bon pour ce soir, je vais remettre ma emmc de 8go car j’ai besoin de mon chauffage, de mes lumières et de fermer mes volets…
Mais il y a quelque chose qui ne fonctionne pas et j’aimerai bien comprendre ce que je fais de mal avant de retenter et de me re-gâcher un dimanche…
[EDIT]
En bonus la log d’install des dépendances du plugin mqtt manager :
0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_mqtt2
0003|+ echo 1
0004|+ echo 2
0005|+ sudo apt update
0006|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0007|Reading package lists...
0008|E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
0009|E: Unable to lock directory /var/lib/apt/lists/
0010|+ echo 3
0011|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0012|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0013|Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
0014|deb-multimedia existe !
0015|Désactivation de la source deb-multimedia !
0016|Reading package lists...
0017|E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
0018|E: Unable to lock directory /var/lib/apt/lists/
0019|E: Problem renaming the file /var/cache/apt/pkgcache.bin.mxvywH to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
0020|W: You may want to run apt-get update to correct these problems
0021|E: The package cache file is corrupted
0022|Reading package lists...
0023|Building dependency tree...
0024|Reading state information...
0025|apt-utils is already the newest version (1.8.2.1).
0026|build-essential is already the newest version (12.6).
0027|git is already the newest version (1:2.20.1-2+deb10u3).
0028|lsb-release is already the newest version (10.2019051400).
0029|0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
0030|[Check Version NodeJS actuelle : Aucune : [ KO ]
0031|Installation de NodeJS 16
0032|Utilisation du dépot officiel
0033|## Installing the NodeSource Node.js 16.x repo...
0034|## Populating apt-get cache...
0035|+ apt-get update
0036|Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0037|Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0038|Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0039|Ign:4 https://oph.mdrjr.net/meveric all InRelease
0040|Ign:5 https://oph.mdrjr.net/meveric buster InRelease
0041|Err:6 https://oph.mdrjr.net/meveric all Release
0042|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0043|Err:7 https://oph.mdrjr.net/meveric buster Release
0044|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0045|Reading package lists...
0046|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0047|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0048|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0049|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0050|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0051|Error executing command, exiting
0052|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0053|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0054|/var/www/html/core/class/../../resources/install_nodejs.sh: line 141: nodejs: command not found
0055|[Check Version NodeJS après install : : [ KO ] -> relancez les dépendances
0056|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0057|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0058|sudo: npm: command not found
0059|Réactivation de la source deb-multimedia qu'on avait désactivé !
0060|+ echo 4
0061|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0062|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0063|Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
0064|deb-multimedia existe !
0065|Désactivation de la source deb-multimedia !
0066|Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0067|Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0068|Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0069|Ign:4 https://oph.mdrjr.net/meveric all InRelease
0070|Ign:5 https://oph.mdrjr.net/meveric buster InRelease
0071|Err:6 https://oph.mdrjr.net/meveric all Release
0072|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0073|Err:7 https://oph.mdrjr.net/meveric buster Release
0074|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0075|Reading package lists...
0076|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0077|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0078|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0079|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0080|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0081|Reading package lists...
0082|Building dependency tree...
0083|Reading state information...
0084|apt-utils is already the newest version (1.8.2.1).
0085|build-essential is already the newest version (12.6).
0086|git is already the newest version (1:2.20.1-2+deb10u3).
0087|lsb-release is already the newest version (10.2019051400).
0088|0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
0089|[Check Version NodeJS actuelle : Aucune : [ KO ]
0090|Installation de NodeJS 16
0091|Utilisation du dépot officiel
0092|## Installing the NodeSource Node.js 16.x repo...
0093|## Populating apt-get cache...
0094|+ apt-get update
0095|Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0096|Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0097|Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0098|Ign:4 https://oph.mdrjr.net/meveric all InRelease
0099|Ign:5 https://oph.mdrjr.net/meveric buster InRelease
0100|Err:6 https://oph.mdrjr.net/meveric all Release
0101|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0102|Err:7 https://oph.mdrjr.net/meveric buster Release
0103|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0104|Reading package lists...
0105|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0106|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0107|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0108|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0109|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0110|Error executing command, exiting
0111|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0112|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0113|/var/www/html/core/class/../../resources/install_nodejs.sh: line 141: nodejs: command not found
0114|[Check Version NodeJS après install : : [ KO ] -> relancez les dépendances
0115|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0116|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0117|sudo: npm: command not found
0118|+ echo 5
0119|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0120|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0121|Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
0122|deb-multimedia existe !
0123|Désactivation de la source deb-multimedia !
0124|Get:1 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0125|Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0126|Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0127|Ign:4 https://oph.mdrjr.net/meveric all InRelease
0128|Ign:5 https://oph.mdrjr.net/meveric buster InRelease
0129|Err:6 https://oph.mdrjr.net/meveric all Release
0130|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0131|Err:7 https://oph.mdrjr.net/meveric buster Release
0132|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0133|Reading package lists...
0134|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0135|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0136|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0137|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0138|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0139|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0140|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0141|[Check Version NodeJS actuelle : Aucune : [ KO ]
0142|Installation de NodeJS 16
0143|Utilisation du dépot officiel
0144|## Installing the NodeSource Node.js 16.x repo...
0145|## Populating apt-get cache...
0146|+ apt-get update
0147|Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0148|Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
0149|Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
0150|Ign:4 https://oph.mdrjr.net/meveric all InRelease
0151|Ign:5 https://oph.mdrjr.net/meveric buster InRelease
0152|Err:6 https://oph.mdrjr.net/meveric all Release
0153|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0154|Err:7 https://oph.mdrjr.net/meveric buster Release
0155|Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 216.155.132.189 443]
0156|Reading package lists...
0157|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0158|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0159|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0160|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0161|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0162|Error executing command, exiting
0163|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0164|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0165|/var/www/html/core/class/../../resources/install_nodejs.sh: line 141: nodejs: command not found
0166|[Check Version NodeJS après install : : [ KO ] -> relancez les dépendances
0167|E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
0168|E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
0169|sudo: npm: command not found
0170|Réactivation de la source deb-multimedia qu'on avait désactivé !
0171|+ echo 6
0172|+ cd /var/www/html/core/class/../../plugins/mqtt2/resources/mqtt2d
0173|+ rm -rf node_modules
0174|+ sudo npm install
0175|sudo: npm: command not found
0176|+ chown -R www-data:www-data jeedom mqtt2d.js package.json package-lock.json
0177|+ echo 7
0178|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end mqtt2
0179|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0180|E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0181|E: The repository 'https://oph.mdrjr.net/meveric all Release' no longer has a Release file.
0182|E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0183|E: The repository 'https://oph.mdrjr.net/meveric buster Release' no longer has a Release file.
0184|E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
0185|E: Repository 'http://www.deb-multimedia.org buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
0186|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0187|E: Failed to fetch http://ftp.uk.debian.org/debian/pool/main/libu/libuv1/libuv1_1.24.1-1_arm64.deb 404 Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]
0188|E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
0189|sudo: mosquitto_passwd: command not found
0190|Job for mosquitto.service failed because the control process exited with error code.
0191|See "systemctl status mosquitto.service" and "journalctl -xe" for details.
0192|+ rm /tmp/jeedom_install_in_progress_mqtt2
0193|+ echo '*******************End of package installation******************'
0194|*******************End of package installation******************