Apollon77 / ioBroker.homekit-controller

Pair and control HomeKit devices directly
MIT License
16 stars 8 forks source link

CANT UPDTAE FROM 0.5.8 to 0.5.9 #312

Closed tiigaaa closed 5 months ago

tiigaaa commented 5 months ago

Hello,

i have tried to update via the Webgui, and it run into an error. Then I have tried to updat eit via ssh, but again error.

Here is the Log from th eupdate. For me its a mess of data. Maybe somone can find the issue?

HOMEKIT_LOG.txt

Thank you so much BR KOAL

Apollon77 commented 5 months ago

hm ... puuhh ... irgendwie geht beim bauen von noble (BLE support) bei dir schieff. schwierig ... aber mit ganz komischen meldungen wegen python.

Welöche python version ist bei dir aktiv?

python3 --version

tiigaaa commented 5 months ago

Hi, danke fürs schauen. Check ich sofort morgen früh. Ich werde auch probieren andere Adapter installieren ob es ein globales Thema ist.

Dankeeeeeee.

Apollon77 commented 5 months ago

BTW https://github.com/Apollon77/ioBroker.homekit-controller/issues/311#issuecomment-1883074851

tiigaaa commented 5 months ago

Hi, ja das hab ich schon versucht mit iob fix.

Python hab ich das: Python 3.11.2 Andere Adapter konnte ich installieren, zum test "ADGuard"

Ich hab so probiert: iob stop iob update iob fix iob upgrade self iob upgrade --debug

tiigaaa commented 5 months ago

Ich glaub mein NPM hat was...

Bei dem Befehl "npm exec node-gyp-build" Kommt diese Meldung...

gyp info it worked if it ends with ok gyp info using node-gyp@10.0.1 gyp info using node@18.19.0 | linux | x64 gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/opt/iobroker/node_modules/node-gyp-build/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-gyp-build', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp: binding.gyp not found (cwd: /opt/iobroker/node_modules/node-gyp-build) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18) gyp ERR! stack at ChildProcess.emit (node:events:517:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) gyp ERR! System Linux 6.1.0-17-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/node-gyp-build gyp ERR! node -v v18.19.0 gyp ERR! node-gyp -v v10.0.1 gyp ERR! not ok

tiigaaa commented 5 months ago

Ich hab nun probiert das ganze NPM neu machen... https://forum.iobroker.net/topic/22867/how-to-node-js-f%C3%BCr-iobroker-richtig-updaten

cd /opt/iobroker sudo rm -r node_modules/ npm install iobroker.js-controller@5.0.17 --production

npm WARN config production Use --omit=dev instead. npm WARN skipping integrity check for git dependency ssh://git@github.com/Schnup89/ioBroker.openwrt.git npm WARN skipping integrity check for git dependency ssh://git@github.com/TA2k/ioBroker.omada.git npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3 npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained. npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies. npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated xmldom@0.1.16: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup '/opt/iobroker/node_modules/usocket', npm WARN cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/usocket'] { npm WARN cleanup errno: -39, npm WARN cleanup code: 'ENOTEMPTY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: '/opt/iobroker/node_modules/usocket' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup '/opt/iobroker/node_modules', npm WARN cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/usocket'] { npm WARN cleanup errno: -39, npm WARN cleanup code: 'ENOTEMPTY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: '/opt/iobroker/node_modules/usocket' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup '/opt/iobroker/node_modules/canvas', npm WARN cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/canvas/build/Release'] { npm WARN cleanup errno: -39, npm WARN cleanup code: 'ENOTEMPTY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: '/opt/iobroker/node_modules/canvas/build/Release' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup '/opt/iobroker/node_modules/nodejieba', npm WARN cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/opt/iobroker/node_modules/nodejieba'] { npm WARN cleanup errno: -39, npm WARN cleanup code: 'ENOTEMPTY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: '/opt/iobroker/node_modules/nodejieba' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/@abandonware/noble npm ERR! command failed npm ERR! command sh -c node-gyp-build npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@18.19.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" npm ERR! (node:663557) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use node --trace-deprecation ... to show where the warning was created) npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/@abandonware/noble/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/iobroker/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/@abandonware/noble', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! Traceback (most recent call last): npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in npm ERR! sys.exit(gyp.script_main()) npm ERR! ^^^^^^^^^^^^^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 670, in script_main npm ERR! return main(sys.argv[1:]) npm ERR! ^^^^^^^^^^^^^^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 662, in main npm ERR! return gyp_main(args) npm ERR! ^^^^^^^^^^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 629, in gyp_main npm ERR! [generator, flat_list, targets, data] = Load( npm ERR! ^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 150, in Load npm ERR! result = gyp.input.Load( npm ERR! ^^^^^^^^^^^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Load npm ERR! LoadTargetBuildFile( npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFile npm ERR! build_file_data = LoadOneBuildFile( npm ERR! ^^^^^^^^^^^^^^^^^ npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile npm ERR! build_file_contents = open(build_file_path, "rU").read() npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^ npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) npm ERR! gyp ERR! System Linux 6.1.0-17-amd64 npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noble npm ERR! gyp ERR! node -v v18.19.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-01-10T07_13_44_042Z-debug-0.log

Also geh ich davon aus das mein System einen Fehler hat. zum Glück hab ich einen Snapshot gemacht vorher so kann ich zumindest auf die lauffähige Version zurück, aber wie ich das Problem löse weis ich noch nicht. :/

@Apollon77: siehest du eventuell im Log was, was mir helfen könnte?

DANKE

tiigaaa commented 5 months ago

Hi ich hab jetzt ein Backup vom Server (mein letzes Fullbackup) vom November 2023 eingespielt. Es waren dann 16 Updates zu machen, das gibg alles gut, in der GUI hat er auch homekot aktuallisiert aber das Update ging dann nie weg, deshablb hab ich es nochmal in der Shell gemacht,..selber Fehler, entweder ich schleppe den BUG schon lange mit oder es passt was anderes nicht.

homekit

OS: Debian 12 Kern: 6.1.0-12-amd64

Versionen: npm >>9.8.1 node >>v18.18.2 python3 >>Python 3.11.2

Ich werde noch versuchen den IOBROKER auf einen anderen Host zu installieren und mit BACKITUP ein backup erstellen und das dort zu laden, hoffe das geht. Hab das backlup so noch nie gebraucht.

HOMEKIT_LOG2.txt

Und das Log,

tiigaaa commented 5 months ago

Nachtrag,

ich konnte alle anderen Pakete (Liste) aktualisieren, nur beim homekit ging es nicht. :( Kann es sein das dein Update einen Fehler hat, oder braucht homekit etwas das sonst keiner braucht und bei mir eben hin ist?

Used repository: stable Adapter "admin" : 6.12.0 , installed 6.12.0 Adapter "alarm" : 3.4.3 , installed 3.4.3 Adapter "alexa2" : 3.26.3 , installed 3.26.1 [Updatable] Adapter "alias-manager": 1.2.6 , installed 1.2.6 Adapter "backitup" : 2.9.8 , installed 2.8.7 [Updatable] Adapter "chromecast" : 3.0.3 , installed 3.0.3 Adapter "countdown" : 2.2.0 , installed 2.2.0 Adapter "daswetter" : 3.1.11 , installed 3.1.10 [Updatable] Adapter "devices" : 1.1.5 , installed 1.1.5 Adapter "discovery" : 4.2.0 , installed 4.2.0 Adapter "emby" : 1.1.1 , installed 1.0.2 [Updatable] Adapter "fhem" : 2.0.5 , installed 2.0.5 Adapter "firetv" : 2.0.2 , installed 2.0.2 Adapter "flot" : 1.12.0 , installed 1.12.0 Adapter "fronius" : 2.0.2 , installed 2.0.2 Adapter "fronius-solarweb": 0.0.3 , installed 0.0.3 Adapter "go-e" : 1.0.29 , installed 1.0.27 [Updatable] Adapter "history" : 3.0.1 , installed 3.0.1 Adapter "homeconnect" : 1.3.0 , installed 1.1.1 [Updatable] Adapter "homekit-controller": 0.5.9, installed 0.5.8 [Updatable] Adapter "hue" : 3.10.1 , installed 3.10.1 Adapter "icons-addictive-flavour-png": 0.1.0, installed 0.1.0 Adapter "icons-fatcow-hosting": 0.1.0, installed 0.1.0 Adapter "icons-icons8" : 0.0.1 , installed 0.0.1 Adapter "icons-material-png": 0.1.0, installed 0.1.0 Adapter "icons-material-svg": 0.1.0, installed 0.1.0 Adapter "icons-mfd-png": 1.2.1 , installed 1.1.0 [Updatable] Adapter "icons-mfd-svg": 1.2.0 , installed 1.1.0 [Updatable] Adapter "icons-open-icon-library-png": 0.1.2, installed 0.1.2 Adapter "icons-ultimate-png": 1.0.1, installed 1.0.1 Adapter "influxdb" : 3.2.0 , installed 3.2.0 Adapter "info" : 2.0.0 , installed 2.0.0 Adapter "iot" : 2.0.11 , installed 2.0.11 Adapter "javascript" : 7.1.6 , installed 7.1.4 [Updatable] Controller "js-controller": 5.0.17 , installed 5.0.16 [Updatable] Adapter "knx" : 2.0.24 , installed 2.0.23 [Updatable] Adapter "linux-control": 1.1.5 , installed 1.1.5 Adapter "loqed" : 0.3.1 , installed 0.3.1 Adapter "lovelace" : 3.0.1 , installed 3.0.1 Adapter "material" : 1.3.1 , installed 1.3.1 Adapter "mielecloudservice": 6.5.4, installed 6.5.4 Adapter "mihome-vacuum": 4.1.0 , installed 4.1.0 Adapter "modbus" : 6.0.1 , installed 5.0.11 [Updatable] Adapter "moma" : 1.2.9 , installed 1.2.9 Adapter "mqtt" : 5.1.0 , installed 5.1.0 Adapter "net-tools" : 0.2.0 , installed 0.2.0 Adapter "node-red" : 4.0.3 , installed 4.0.3 Adapter "nut" : 1.6.0 , installed 1.6.0 Adapter "openknx" : 0.6.3 , installed 0.5.3 [Updatable] Adapter "operating-hours": 1.0.6 , installed 1.0.6 Adapter "parser" : 2.0.7 , installed 2.0.7 Adapter "pi-hole" : 1.3.6 , installed 1.3.6 Adapter "ping" : 1.6.2 , installed 1.6.2 Adapter "pushover" : 3.0.6 , installed 3.0.3 [Updatable] Adapter "radar2" : 2.1.0 , installed 2.0.8 [Updatable] Adapter "rickshaw" : 1.0.0 , installed 1.0.0 Adapter "s7" : 1.3.15 , installed 1.3.15 Adapter "sayit" : 3.0.5 , installed 3.0.5 Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "snmp" : 3.1.0 , installed 3.1.0 Adapter "socketio" : 6.6.0 , installed 6.5.5 [Updatable] Adapter "sonoff" : 3.0.3 , installed 3.0.3 Adapter "sonos" : 3.0.0 , installed 3.0.0 Adapter "squeezeboxrpc": 1.3.9 , installed 1.3.9 Adapter "telegram" : 3.0.1 , installed 2.0.1 [Updatable] Adapter "vis" : 1.5.4 , installed 1.4.16 [Updatable] Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-canvas-gauges": 1.0.1, installed 1.0.1 Adapter "vis-colorpicker": 2.0.3 , installed 2.0.3 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-google-fonts": 1.0.4 , installed 1.0.4 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets": 1.4.0 , installed 1.4.0 Adapter "vis-icontwo" : 1.3.0 , installed 0.97.1 [Updatable] Adapter "vis-inventwo" : 3.3.3 , installed 3.3.3 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-justgage" : 2.1.0 , installed 2.0.0 [Updatable] Adapter "vis-keyboard" : 0.0.2 , installed 0.0.2 Adapter "vis-lcars" : 1.1.1 , installed 1.1.1 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-material" : 0.1.3 , installed 0.1.3 Adapter "vis-material-advanced": 1.7.4, installed 1.7.4 Adapter "vis-materialdesign": 0.5.9, installed 0.5.9 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-players" : 0.1.6 , installed 0.1.6 Adapter "vis-plumb" : 1.0.2 , installed 1.0.2 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.2.2, installed 1.2.2 Adapter "vis-weather" : 2.5.6 , installed 2.5.6 Adapter "weatherunderground": 3.6.0, installed 3.6.0 Adapter "web" : 6.1.10 , installed 6.1.10 Adapter "windows-control": 0.1.5 , installed 0.1.5 Adapter "wled" : 0.7.2 , installed 0.7.1 [Updatable] Adapter "ws" : 2.5.8 , installed 2.5.8

LG, DANKE

tiigaaa commented 5 months ago

@Apollon77 : Problem gelöst! 💯

Ich hab wie hier https://forum.iobroker.net/topic/22867/how-to-node-js-f%C3%BCr-iobroker-richtig-updaten beschrieben eine Neuinstallation gemacht.

1.) Alles löschen:

sudo apt-get purge -y nodejs npm nodejs-legacy sudo apt -y autoremove

sudo rm /etc/sources.list.d/nodesource.list sudo apt-get update

sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules

sudo rm -rf /usr/local/lib/node sudo rm -rf /usr/local/include/node sudo rm -rf /usr/local/bin/node*

2.) Nodejs Npm neu installiert:

curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - &&\ apt-get install -y nodejs

3.) IOB neu installieren und warten bis alle Adapter wieder grün sind.

cp -r /opt/iobroker/iobroker-data sudo rm -r /opt/iobroker/ sudo mkdir /opt/iobroker cd /opt/iobroker curl -sL https://iobroker.net/install.sh | bash -

Dannach konnte ich wie gewohnt den Adapter auf V.0.5.9 heben. :) Adapter "homekit-controller": 0.5.9, installed 0.5.9

homekit2

Juhuuuuu :)