Plugin hors service depuis mise à jour 2023-07-07 01:00:49

Bonjour à tous,

Je viens de faire la dernière màj du plugin : 2023-07-07 01:00:49
Depuis Daemon et Dépendance KO.
Je me suis souvenu avoir eu le même souci en 2022, et j’avais suivi ce fil : Problème Démon suite à la maj du 31 mai - #17 par LMQT
Malheureusement même après avoir fait sudo apt install npmpuis sudo npm install dans le répertoire, j’ai toujours le message d’erreur indiquant que npm n’existe pas

root@Jeedom:/var/www/html/plugins/espeasy/resources# sudo npm install
sudo: npm: command not found
root@Jeedom:/var/www/html/plugins/espeasy/resources# npm install
-bash: npm: command not found
root@Jeedom:/var/www/html/plugins/espeasy/resources#

Voici les logs lors de l’installation des dépendances:

y_packages
Log brut


+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_espeasy
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
deb-multimedia existe !
Désactivation de la source deb-multimedia !
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://oph.mdrjr.net/meveric all InRelease
Hit:5 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (1.8.2.3).
build-essential is already the newest version (12.6).
lsb-release is already the newest version (10.2019051400).
git is already the newest version (1:2.20.1-2+deb10u8).
0 upgraded, 0 newly installed, 0 to remove and 256 not upgraded.
[Check Version NodeJS actuelle : Aucune : [  KO  ]
Installation de NodeJS 16
Utilisation du dépot officiel
## Installing the NodeSource Node.js 16.x repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://oph.mdrjr.net/meveric all InRelease
Hit:5 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
Error executing command, exiting
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libc-ares2 libnode64 libuv1
Suggested packages:
npm
Recommended packages:
nodejs-doc
The following NEW packages will be installed:
libc-ares2 libnode64 libuv1 nodejs
0 upgraded, 4 newly installed, 0 to remove and 256 not upgraded.
Need to get 84.7 kB/5,549 kB of archives.
After this operation, 23.1 MB of additional disk space will be used.
Err:1 http://security.debian.org/debian-security buster/updates/main arm64 libc-ares2 arm64 1.14.0-1+deb10u2
404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/c/c-ares/libc-ares2_1.14.0-1+deb10u2_arm64.deb  404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
/var/www/html/core/class/../../resources/install_nodejs.sh: line 141: nodejs: command not found
[Check Version NodeJS après install :  : [  KO  ] -> relancez les dépendances
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
gyp libc-ares2 libjs-inherits libjs-is-typedarray libnode-dev libnode64
libuv1 libuv1-dev node-abbrev node-ajv node-ansi node-ansi-align
node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy
node-are-we-there-yet node-asn1 node-assert-plus node-asynckit
node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bluebird
node-boxen node-brace-expansion node-builtin-modules node-builtins
node-cacache node-call-limit node-camelcase node-caseless node-chalk
node-chownr node-cli-boxes node-cliui node-clone node-co node-color-convert
node-color-name node-combined-stream node-concat-map node-concat-stream
node-config-chain node-console-control-strings node-copy-concurrently
node-core-util-is node-cross-spawn node-cyclist node-dashdash
node-decamelize node-decompress-response node-deep-extend node-defaults
node-delayed-stream node-delegates node-detect-indent node-detect-newline
node-duplexer3 node-duplexify node-ecc-jsbn node-editor node-encoding
node-end-of-stream node-errno node-escape-string-regexp node-execa
node-extend node-extsprintf node-find-up node-flush-write-stream
node-forever-agent node-form-data node-from2 node-fs-vacuum
node-fs-write-stream-atomic node-fs.realpath node-gauge node-get-caller-file
node-get-stream node-getpass node-glob node-got node-graceful-fs node-gyp
node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
node-has-to-string-tag-x node-has-unicode node-hosted-git-info
node-http-signature node-iconv-lite node-iferr node-import-lazy
node-imurmurhash node-inflight node-inherits node-ini node-invert-kv
node-is-builtin-module node-is-npm node-is-object node-is-plain-obj
node-is-retry-allowed node-is-stream node-is-typedarray node-isarray
node-isexe node-isstream node-isurl node-jsbn node-json-parse-better-errors
node-json-schema node-json-stable-stringify node-json-stringify-safe
node-jsonify node-jsonparse node-jsonstream node-jsprim node-latest-version
node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
node-lowercase-keys node-lru-cache node-mem node-mime-types node-mimic-fn
node-mimic-response node-minimatch node-minimist node-mississippi
node-mkdirp node-move-concurrently node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npm-package-arg node-npm-run-path
node-npmlog node-oauth-sign node-object-assign node-once node-opener
node-os-locale node-osenv node-p-cancelable node-p-finally node-p-limit
node-p-locate node-p-timeout node-package-json node-parallel-transform
node-path-exists node-path-is-absolute node-path-is-inside
node-performance-now node-prepend-http node-process-nextick-args
node-promise-inflight node-promzard node-proto-list node-prr node-pump
node-pumpify node-punycode node-qs node-qw node-rc node-read
node-read-package-json node-readable-stream node-registry-auth-token
node-registry-url node-request node-require-directory
node-require-main-filename node-resolve-from node-retry node-rimraf
node-run-queue node-safe-buffer node-semver node-semver-diff
node-set-blocking node-sha node-shebang-command node-shebang-regex
node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri
node-stream-each node-stream-iterate node-stream-shift node-string-decoder
node-string-width node-strip-ansi node-strip-eof node-strip-json-comments
node-supports-color node-tar node-term-size node-text-table node-through
node-through2 node-timed-out node-tough-cookie node-tunnel-agent
node-tweetnacl node-typedarray node-uid-number node-unique-filename
node-unpipe node-url-parse-lax node-url-to-options node-util-deprecate
node-uuid node-validate-npm-package-license node-validate-npm-package-name
node-verror node-wcwidth.js node-which node-which-module node-wide-align
node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
node-yargs-parser nodejs
Recommended packages:
javascript-common nodejs-doc
The following NEW packages will be installed:
gyp libc-ares2 libjs-inherits libjs-is-typedarray libnode-dev libnode64
libuv1 libuv1-dev node-abbrev node-ajv node-ansi node-ansi-align
node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy
node-are-we-there-yet node-asn1 node-assert-plus node-asynckit
node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bluebird
node-boxen node-brace-expansion node-builtin-modules node-builtins
node-cacache node-call-limit node-camelcase node-caseless node-chalk
node-chownr node-cli-boxes node-cliui node-clone node-co node-color-convert
node-color-name node-combined-stream node-concat-map node-concat-stream
node-config-chain node-console-control-strings node-copy-concurrently
node-core-util-is node-cross-spawn node-cyclist node-dashdash
node-decamelize node-decompress-response node-deep-extend node-defaults
node-delayed-stream node-delegates node-detect-indent node-detect-newline
node-duplexer3 node-duplexify node-ecc-jsbn node-editor node-encoding
node-end-of-stream node-errno node-escape-string-regexp node-execa
node-extend node-extsprintf node-find-up node-flush-write-stream
node-forever-agent node-form-data node-from2 node-fs-vacuum
node-fs-write-stream-atomic node-fs.realpath node-gauge node-get-caller-file
node-get-stream node-getpass node-glob node-got node-graceful-fs node-gyp
node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
node-has-to-string-tag-x node-has-unicode node-hosted-git-info
node-http-signature node-iconv-lite node-iferr node-import-lazy
node-imurmurhash node-inflight node-inherits node-ini node-invert-kv
node-is-builtin-module node-is-npm node-is-object node-is-plain-obj
node-is-retry-allowed node-is-stream node-is-typedarray node-isarray
node-isexe node-isstream node-isurl node-jsbn node-json-parse-better-errors
node-json-schema node-json-stable-stringify node-json-stringify-safe
node-jsonify node-jsonparse node-jsonstream node-jsprim node-latest-version
node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
node-lowercase-keys node-lru-cache node-mem node-mime-types node-mimic-fn
node-mimic-response node-minimatch node-minimist node-mississippi
node-mkdirp node-move-concurrently node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npm-package-arg node-npm-run-path
node-npmlog node-oauth-sign node-object-assign node-once node-opener
node-os-locale node-osenv node-p-cancelable node-p-finally node-p-limit
node-p-locate node-p-timeout node-package-json node-parallel-transform
node-path-exists node-path-is-absolute node-path-is-inside
node-performance-now node-prepend-http node-process-nextick-args
node-promise-inflight node-promzard node-proto-list node-prr node-pump
node-pumpify node-punycode node-qs node-qw node-rc node-read
node-read-package-json node-readable-stream node-registry-auth-token
node-registry-url node-request node-require-directory
node-require-main-filename node-resolve-from node-retry node-rimraf
node-run-queue node-safe-buffer node-semver node-semver-diff
node-set-blocking node-sha node-shebang-command node-shebang-regex
node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri
node-stream-each node-stream-iterate node-stream-shift node-string-decoder
node-string-width node-strip-ansi node-strip-eof node-strip-json-comments
node-supports-color node-tar node-term-size node-text-table node-through
node-through2 node-timed-out node-tough-cookie node-tunnel-agent
node-tweetnacl node-typedarray node-uid-number node-unique-filename
node-unpipe node-url-parse-lax node-url-to-options node-util-deprecate
node-uuid node-validate-npm-package-license node-validate-npm-package-name
node-verror node-wcwidth.js node-which node-which-module node-wide-align
node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
node-yargs-parser nodejs npm
0 upgraded, 249 newly installed, 0 to remove and 256 not upgraded.
Need to get 84.7 kB/9,249 kB of archives.
After this operation, 43.0 MB of additional disk space will be used.
Err:1 http://security.debian.org/debian-security buster/updates/main arm64 libc-ares2 arm64 1.14.0-1+deb10u2
404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/c/c-ares/libc-ares2_1.14.0-1+deb10u2_arm64.deb  404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo: npm: command not found
Réactivation de la source deb-multimedia qu'on avait désactivé !
+ echo 3
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
deb-multimedia existe !
Désactivation de la source deb-multimedia !
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://oph.mdrjr.net/meveric all InRelease
Hit:5 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (1.8.2.3).
build-essential is already the newest version (12.6).
lsb-release is already the newest version (10.2019051400).
git is already the newest version (1:2.20.1-2+deb10u8).
0 upgraded, 0 newly installed, 0 to remove and 256 not upgraded.
[Check Version NodeJS actuelle : Aucune : [  KO  ]
Installation de NodeJS 16
Utilisation du dépot officiel
## Installing the NodeSource Node.js 16.x repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://oph.mdrjr.net/meveric all InRelease
Hit:5 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
Error executing command, exiting
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libc-ares2 libnode64 libuv1
Suggested packages:
npm
Recommended packages:
nodejs-doc
The following NEW packages will be installed:
libc-ares2 libnode64 libuv1 nodejs
0 upgraded, 4 newly installed, 0 to remove and 256 not upgraded.
Need to get 84.7 kB/5,549 kB of archives.
After this operation, 23.1 MB of additional disk space will be used.
Err:1 http://security.debian.org/debian-security buster/updates/main arm64 libc-ares2 arm64 1.14.0-1+deb10u2
404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/c/c-ares/libc-ares2_1.14.0-1+deb10u2_arm64.deb  404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
/var/www/html/core/class/../../resources/install_nodejs.sh: line 141: nodejs: command not found
[Check Version NodeJS après install :  : [  KO  ] -> relancez les dépendances
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
gyp libc-ares2 libjs-inherits libjs-is-typedarray libnode-dev libnode64
libuv1 libuv1-dev node-abbrev node-ajv node-ansi node-ansi-align
node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy
node-are-we-there-yet node-asn1 node-assert-plus node-asynckit
node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bluebird
node-boxen node-brace-expansion node-builtin-modules node-builtins
node-cacache node-call-limit node-camelcase node-caseless node-chalk
node-chownr node-cli-boxes node-cliui node-clone node-co node-color-convert
node-color-name node-combined-stream node-concat-map node-concat-stream
node-config-chain node-console-control-strings node-copy-concurrently
node-core-util-is node-cross-spawn node-cyclist node-dashdash
node-decamelize node-decompress-response node-deep-extend node-defaults
node-delayed-stream node-delegates node-detect-indent node-detect-newline
node-duplexer3 node-duplexify node-ecc-jsbn node-editor node-encoding
node-end-of-stream node-errno node-escape-string-regexp node-execa
node-extend node-extsprintf node-find-up node-flush-write-stream
node-forever-agent node-form-data node-from2 node-fs-vacuum
node-fs-write-stream-atomic node-fs.realpath node-gauge node-get-caller-file
node-get-stream node-getpass node-glob node-got node-graceful-fs node-gyp
node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
node-has-to-string-tag-x node-has-unicode node-hosted-git-info
node-http-signature node-iconv-lite node-iferr node-import-lazy
node-imurmurhash node-inflight node-inherits node-ini node-invert-kv
node-is-builtin-module node-is-npm node-is-object node-is-plain-obj
node-is-retry-allowed node-is-stream node-is-typedarray node-isarray
node-isexe node-isstream node-isurl node-jsbn node-json-parse-better-errors
node-json-schema node-json-stable-stringify node-json-stringify-safe
node-jsonify node-jsonparse node-jsonstream node-jsprim node-latest-version
node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
node-lowercase-keys node-lru-cache node-mem node-mime-types node-mimic-fn
node-mimic-response node-minimatch node-minimist node-mississippi
node-mkdirp node-move-concurrently node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npm-package-arg node-npm-run-path
node-npmlog node-oauth-sign node-object-assign node-once node-opener
node-os-locale node-osenv node-p-cancelable node-p-finally node-p-limit
node-p-locate node-p-timeout node-package-json node-parallel-transform
node-path-exists node-path-is-absolute node-path-is-inside
node-performance-now node-prepend-http node-process-nextick-args
node-promise-inflight node-promzard node-proto-list node-prr node-pump
node-pumpify node-punycode node-qs node-qw node-rc node-read
node-read-package-json node-readable-stream node-registry-auth-token
node-registry-url node-request node-require-directory
node-require-main-filename node-resolve-from node-retry node-rimraf
node-run-queue node-safe-buffer node-semver node-semver-diff
node-set-blocking node-sha node-shebang-command node-shebang-regex
node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri
node-stream-each node-stream-iterate node-stream-shift node-string-decoder
node-string-width node-strip-ansi node-strip-eof node-strip-json-comments
node-supports-color node-tar node-term-size node-text-table node-through
node-through2 node-timed-out node-tough-cookie node-tunnel-agent
node-tweetnacl node-typedarray node-uid-number node-unique-filename
node-unpipe node-url-parse-lax node-url-to-options node-util-deprecate
node-uuid node-validate-npm-package-license node-validate-npm-package-name
node-verror node-wcwidth.js node-which node-which-module node-wide-align
node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
node-yargs-parser nodejs
Recommended packages:
javascript-common nodejs-doc
The following NEW packages will be installed:
gyp libc-ares2 libjs-inherits libjs-is-typedarray libnode-dev libnode64
libuv1 libuv1-dev node-abbrev node-ajv node-ansi node-ansi-align
node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy
node-are-we-there-yet node-asn1 node-assert-plus node-asynckit
node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bluebird
node-boxen node-brace-expansion node-builtin-modules node-builtins
node-cacache node-call-limit node-camelcase node-caseless node-chalk
node-chownr node-cli-boxes node-cliui node-clone node-co node-color-convert
node-color-name node-combined-stream node-concat-map node-concat-stream
node-config-chain node-console-control-strings node-copy-concurrently
node-core-util-is node-cross-spawn node-cyclist node-dashdash
node-decamelize node-decompress-response node-deep-extend node-defaults
node-delayed-stream node-delegates node-detect-indent node-detect-newline
node-duplexer3 node-duplexify node-ecc-jsbn node-editor node-encoding
node-end-of-stream node-errno node-escape-string-regexp node-execa
node-extend node-extsprintf node-find-up node-flush-write-stream
node-forever-agent node-form-data node-from2 node-fs-vacuum
node-fs-write-stream-atomic node-fs.realpath node-gauge node-get-caller-file
node-get-stream node-getpass node-glob node-got node-graceful-fs node-gyp
node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
node-has-to-string-tag-x node-has-unicode node-hosted-git-info
node-http-signature node-iconv-lite node-iferr node-import-lazy
node-imurmurhash node-inflight node-inherits node-ini node-invert-kv
node-is-builtin-module node-is-npm node-is-object node-is-plain-obj
node-is-retry-allowed node-is-stream node-is-typedarray node-isarray
node-isexe node-isstream node-isurl node-jsbn node-json-parse-better-errors
node-json-schema node-json-stable-stringify node-json-stringify-safe
node-jsonify node-jsonparse node-jsonstream node-jsprim node-latest-version
node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
node-lowercase-keys node-lru-cache node-mem node-mime-types node-mimic-fn
node-mimic-response node-minimatch node-minimist node-mississippi
node-mkdirp node-move-concurrently node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npm-package-arg node-npm-run-path
node-npmlog node-oauth-sign node-object-assign node-once node-opener
node-os-locale node-osenv node-p-cancelable node-p-finally node-p-limit
node-p-locate node-p-timeout node-package-json node-parallel-transform
node-path-exists node-path-is-absolute node-path-is-inside
node-performance-now node-prepend-http node-process-nextick-args
node-promise-inflight node-promzard node-proto-list node-prr node-pump
node-pumpify node-punycode node-qs node-qw node-rc node-read
node-read-package-json node-readable-stream node-registry-auth-token
node-registry-url node-request node-require-directory
node-require-main-filename node-resolve-from node-retry node-rimraf
node-run-queue node-safe-buffer node-semver node-semver-diff
node-set-blocking node-sha node-shebang-command node-shebang-regex
node-signal-exit node-slash node-slide node-sorted-object node-spdx-correct
node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri
node-stream-each node-stream-iterate node-stream-shift node-string-decoder
node-string-width node-strip-ansi node-strip-eof node-strip-json-comments
node-supports-color node-tar node-term-size node-text-table node-through
node-through2 node-timed-out node-tough-cookie node-tunnel-agent
node-tweetnacl node-typedarray node-uid-number node-unique-filename
node-unpipe node-url-parse-lax node-url-to-options node-util-deprecate
node-uuid node-validate-npm-package-license node-validate-npm-package-name
node-verror node-wcwidth.js node-which node-which-module node-wide-align
node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
node-yargs-parser nodejs npm
0 upgraded, 249 newly installed, 0 to remove and 256 not upgraded.
Need to get 84.7 kB/9,249 kB of archives.
After this operation, 43.0 MB of additional disk space will be used.
Err:1 http://security.debian.org/debian-security buster/updates/main arm64 libc-ares2 arm64 1.14.0-1+deb10u2
404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/c/c-ares/libc-ares2_1.14.0-1+deb10u2_arm64.deb  404  Not Found [IP: 2a04:4e42:6a::644 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo: npm: command not found
Réactivation de la source deb-multimedia qu'on avait désactivé !
+ echo 4
+ cd /var/www/html/core/class/../../plugins/espeasy/resources
+ rm -rf node_modules
+ sudo npm install
sudo: npm: command not found
+ chown -R www-data:www-data espeasy.js nodejs.sh package.json package-lock.json
+ echo 5
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end espeasy
+ rm /tmp/jeedom_install_in_progress_espeasy
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Auriez vous d’autres idées, svp?

Merci d’avance.

Salut
As tu essayé de relancer les dépendances ?

Dams

Oui et elles n’arrivent pas à s’initialiser correctement.

tu as essayer cela?

Dams

Je suis sur une jeedom smart, donc pas certain que ce soit conseille,non?

En effet, ce n’est pas conseillé.

Antoine

Bonsoir,
C’est apt-get upgrade qui n’est pas conseillé sur la Smart. apt-get update est nécessaire si vous voulez installer un nouveau package.
Pouvez-vous fournir le résultat de la commande apt-get update en ssh et en root sur la Smart.

Résultat apt-get update sur ma Smart
root@Jeedom:~# apt-get update
Atteint :1 http://www.deb-multimedia.org buster InRelease
Atteint :2 http://security.debian.org/debian-security buster/updates InRelease
Atteint :3 http://ftp.uk.debian.org/debian buster InRelease
Atteint :4 https://deb.nodesource.com/node_16.x buster InRelease
Atteint :5 http://ftp.uk.debian.org/debian buster-updates InRelease
Atteint :6 https://oph.mdrjr.net/meveric all InRelease
Atteint :7 https://oph.mdrjr.net/meveric buster InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
199 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.

S’il y a des erreurs, inutile d’aller plus loin. Il faut les corriger avant.

La deuxième commande qui va installer node et npm est apt-get install nodejs
Vérifier leur version avec les commandes node -v et npm -v
image

Bonjour,

Voir ici : Impossibilité d'installer les dépendances mqtt - #4 par akenad

Puis ici : Plugin qui ne démarre pas, problème avec nodejs - #4 par akenad

akenad :slight_smile:

2 « J'aime »

Bonjour,
J’ai fait la PR pour l’installation de nodejs dans packages.json du plugin espeasy.

1 « J'aime »

Salut,

Voic le mien :

root@Jeedom:~# apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://oph.mdrjr.net/meveric all InRelease
Hit:5 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists... Done
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
root@Jeedom:~#

Mais ça n’a rien à voir avec la tienne…

Du coup, cela permettra de l’inclure dans la prochaine version d’ESPEasy par Lunarok?

Je viens de faire sudo apt-get update --allow-releaseinfo-change qui donne ces logs :

root@Jeedom:~# sudo apt-get update --allow-releaseinfo-change
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [56.6 kB]
Get:4 http://www.deb-multimedia.org buster InRelease [18.1 kB]
Hit:5 https://oph.mdrjr.net/meveric all InRelease
Get:6 http://security.debian.org/debian-security buster/updates/main Sources [417 kB]
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Get:8 http://security.debian.org/debian-security buster/updates/non-free Sources [2,680 B]
Get:9 http://security.debian.org/debian-security buster/updates/main arm64 Packages [533 kB]
Get:10 http://security.debian.org/debian-security buster/updates/main Translation-en [294 kB]
Get:11 http://security.debian.org/debian-security buster/updates/non-free Translation-en [23.7 kB]
Get:12 http://www.deb-multimedia.org buster/main Sources [101 kB]
Get:13 http://www.deb-multimedia.org buster/main arm64 Packages [112 kB]
Fetched 1,503 kB in 3s (509 kB/s)
Reading package lists... Done
N: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'
N: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
N: Repository 'http://www.deb-multimedia.org buster InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable'

Les dépendances sont reparties toutes seules :slight_smile: et sont OK :slight_smile:
J’ai relancé le daemon qui est OK :slight_smile:

Merci @akenad @jpty

Question subsidiaire : pour avoir une smart au top, est ce que je dois faire d’autres mise à jour via des apt-xxxx xxxxx?

Oui, ca sera inclus dans la prochaine stable d’espeasy.

Normalement non ( surtout quand ca fonctionne). C’est Jeedom qui fait les majs.

@lr3674 Pourriez-vous confirmer si vous avez modifié ou non le fichier packages.json tel que préconisé ICI ?
Normalement il n’y a pas besoin d’ajouter cette partie dans le fichier.
image
La virgule dans la section npm a déjà été supprimée. C’est la principale correction de la version du 07/07.
L’installation de nodejs est gérée par le core.

@akenad Ma PR avec l’ajout de la section apt dans packages.json est-elle nécessaire ?

Non, je n’ai rien modifié.

Oui, lorsque Nodejs, avec la version attendue, n’est pas installé.

akenad :slight_smile:

Pas convaincu.

  • Je viens de faire l’essai dans une VM Bullseye sans nodejs et sans la section apt dans packages.json.
    A l’activation du plugin espeasy, l’installation des dépendances démarre puis passe en OK. La version de node installée est alors la 16.
  • Pas trouvé de VM avec nodejs < 16 pour vérifier que la version passait en 16

Tu peux faire le même essai avec Buster.

akenad :slight_smile:

Bonjour,

Ce n’est pas dépendant de l’OS. C’est le système d’installation des dépendances de Jeedom qui lance les commandes.

  • En supprimant nodejs et en installant le plugin en version stable (sans la section apt nodejs), le script d’installation de nodejs est déjà lancé 2 fois: ( filtrage du log espeasy_packages sur le nom du script d’install de nodejs)
    image
  • En re-supprimant nodejs et en installant le plugin en version beta (avec la section apt nodejs), le script d’installation de nodejs est lancé 3 fois:
    image
    Essais faits sur Buster. :wink:
  • Dans les sources de la procédure d’install, s’il y a une section npm, nodejs est installé:

Rien de grave tout fonctionne mais la section apt nodejs est inutile.

Buster : nodejs et npm préinstallé
Bullseye : nodejs et npm non préinstallé

Voir ici : [Présentation] akenad - #10 par akenad

L’installation (ou pas) de nodejs par jeedom core dépend de la version de jeedom core.

Voir ici : Introduction Jeedom 4.2 : installation de dépendance – Jeedom – Le Blog

L’installation de nodejs via le packages.json du plugin est utile quand ni l’os ni jeedom ne l’installe directement par défaut.

akenad :slight_smile: