NEWS
Probleme mit der Verbindung Master Slave
-
@mico probier es zu fuss
auf dem slave mit
iobroker setup custom
https://www.iobroker.net/docu/index-24.htm?page_id=3068&lang=de#Installation
-
https://forum.iobroker.net/topic/76290/multihost-probleme-error-no-configuration-received/26?page=2
Hier wird Dein Problem auch besprochen und die Lösung von @arteck präsentiert.
@arteck aber wie kann es sein, dass eine über 5 Jahre alte Docu dieses Problem hier löst?
Wer müsste über diese Thematik gucken ? Und wo sollte man melden , dass die aktuellen Befehle zu einem Fehler führen ?
Vielleicht ist es auch schon offiziell bekannt , soweit habe ich noch nicht recherchiert. -
@haselchen sagte in Probleme mit der Verbindung Master Slave:
aber wie kann es sein, dass eine über 5 Jahre alte Docu dieses Problem hier löst?
weil sich seitdem nichts vetändert hat
iob setup custom
ist seit 10 Jahren die Methode per Konsole eine Multihost Umgebung aufzusetzen und daher das Fallback wenn eine andere Methode, aus welchem Grund auch immer, fehlschlägt -
-
Also ich soll nun iob setup custom auf meinen beiden Raspi durchführen ist das korrekt?
Beginnend mit dem späteren Master in meinem Fall der Raspi 5Type of objects DB [file, couch, redis], default [file]: ENTER Host of objects DB(file), default[127.0.0.1]: <0.0.0.0> Port of objects DB(file), default[9001]: ENTER Type of states DB [file, redis], default [file]: ENTER Host of states DB (file), default[0.0.0.0]: ENTER Port of states DB (file), default[9000]: ENTER Host name of this machine [hostname]: ENTER
die <0.0.0.0> soll dann die IP Adresse des Raspi 5 sein? Der Hostname wird dann nochmals neu bestimmt und damit überschrieben?
Bei iob fix kommt das raus
Your system is booting into 'graphical.target', which means that a user interfac e or desktop is available. Usually a server is running without a desktop to have more RAM available. Do you want to switch to 'multi-user.target'? (y/N) library: loaded Library version=2024-10-22 ioBroker or some processes are still running: 10828 iobroker.js-con 10950 io.admin.0 11002 io.history.0 11028 io.javascript.0 11054 io.node-red.0 11091 io.pushover.0 11098 io.meross.0 11121 io.scenes.0 11151 io.shelly.0 11166 io.backitup.0 11173 io.tuya.0 11207 io.alexa2.0 11226 io.zigbee.0 11232 io.cloud.0 11257 io.geofency.0 11264 io.discovery.0 11287 io.iot.0 11302 io.text2command 11317 io.trashschedul 11332 io.vis-2.0 11364 io.web.0 11379 io.yahka.0 12428 io.telegram.0 Please stop them first and try again!
beim Raspi 3 das
Your system is booting into 'graphical.target', which means that a user interfac e or desktop is available. Usually a server is running without a desktop to have more RAM available. Do you want to switch to 'multi-user.target'? (y/N) library: loaded Library version=2024-10-22 ioBroker or some processes are still running: 685 iobroker.js-con 1765 io.backitup.0 1774 io.admin.0 1775 io.discovery.0 Please stop them first and try again! Bei dem iob diag kommt bei beiden das raus *** iob diag is starting up, please wait *** iob diag needs to be updated. Please execute 'iobroker fix' first.
MOD-EDIT: Code in code-tags gesetzt!
Gruß
Mico -
@mico sagte in Probleme mit der Verbindung Master Slave:
Please stop them first and try again!
Der Fixer kann nicht mit dem ioBroker zugleich laufen.
Also zuerstiob stop
-
@mico sagte in Probleme mit der Verbindung Master Slave:
die <0.0.0.0> soll dann die IP Adresse des Raspi 5 sein?
das sollst du so eingeben!
@mico sagte in Probleme mit der Verbindung Master Slave:
Der Hostname wird dann nochmals neu bestimmt
Da wird dann der richtige stehen!
Die Anleitung kennt deinen Hostnamen ja nicht
-
so das erste mit iob fix habe ich schon mal
auf dem Raspi 5 kommt das.
pi@raspberrypi:~ $ iob fix Your system is booting into 'graphical.target', which means that a user interfac e or desktop is available. Usually a server is running without a desktop to have more RAM available. Do you want to switch to 'multi-user.target'? (y/N) library: loaded Library version=2024-10-22 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2024-10-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/5) ========================================================================== Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB ] Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease Fetched 48.0 kB in 0s (99.3 kB/s) Reading package lists... Done Processing triggers for man-db (2.11.2-2) ...u1_arm64.deb ...nstalled.) Installed distro-info ========================================================================== Checking ioBroker user and directory permissions (2/5) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Check and cleanup npm temporary directories (3/5) ========================================================================== Done. ========================================================================== Database maintenance (4/5) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! Compressing /opt/iobroker/iobroker-data/states.jsonl Compressing /opt/iobroker/iobroker-data/objects.jsonl Compressed 2 JSONL files. Done ========================================================================== Checking autostart (5/5) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================
und auf dem Raspi 3 das:
pi@raspberrypi2:~ $ iob fix Your system is booting into 'graphical.target', which means that a user interfac e or desktop is available. Usually a server is running without a desktop to have more RAM available. Do you want to switch to 'multi-user.target'? (y/N) library: loaded Library version=2024-10-22 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2024-10-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/5) ========================================================================== Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB ] Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease Fetched 48.0 kB in 2s (21.9 kB/s) Reading package lists... Done Processing triggers for man-db (2.11.2-2) ...u1_arm64.deb ...nstalled.) Installed distro-info ========================================================================== Checking ioBroker user and directory permissions (2/5) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Check and cleanup npm temporary directories (3/5) ========================================================================== Done. ========================================================================== Database maintenance (4/5) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! Compressing /opt/iobroker/iobroker-data/states.jsonl Compressing /opt/iobroker/iobroker-data/objects.jsonl Compressed 2 JSONL files. Done ========================================================================== Checking autostart (5/5) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================
Der iob diag ergab beim Raspi 5
======================= SUMMARY ======================= v.2024-10-19 Static hostname: raspberrypi Icon name: computer Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.6.51+rpt-rpi-2712 Architecture: arm64 Installation: native Kernel: aarch64 Userland: 64 bit Timezone: Europe/Berlin (CET, +0100) User-ID: 1000 Display-Server: true Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v20.18.0 /usr/bin/node v20.18.0 /usr/bin/npm 10.8.2 /usr/bin/npx 10.8.2 /usr/bin/corepack 0.29.3 Recommended versions are nodejs Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. 20.18.0 and npm Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. 10.8.2 nodeJS installation is correct MEMORY: total used free shared buff/cache available Mem: 8.4G 543M 5.9G 21M 2.1G 7.9G Swap: 209M 0B 209M Total: 8.7G 543M 6.2G Active iob-Instances: 1 Upgrade policy: none ioBroker Core: js-controller 6.0.11 admin 7.1.5 ioBroker Status: Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes. iobroker is not running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: system.adapter.admin.0 : admin : raspberrypi - enabled, port: 7881, bind: 0.0.0.0, run as: admin system.adapter.web.0 : web : raspberrypi - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 9676 States: 7517 Size of iob-Database: 28M /opt/iobroker/iobroker-data/objects.jsonl 1.6M /opt/iobroker/iobroker-data/states.jsonl Operating System is the current Debian stable version codenamed 'bookworm'! =================== END OF SUMMARY ====================
und beim Raspi 3 das:
======================= SUMMARY ======================= v.2024-10-19 Static hostname: raspberrypi2 Icon name: computer Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.6.51+rpt-rpi-v8 Architecture: arm64 Installation: native Kernel: aarch64 Userland: 64 bit Timezone: Europe/Berlin (CET, +0100) User-ID: 1000 Display-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v20.18.0 /usr/bin/node v20.18.0 /usr/bin/npm 10.8.2 /usr/bin/npx 10.8.2 /usr/bin/corepack 0.29.3 Recommended versions are nodejs 20.18.0 and npm 10.8.2 nodeJS installation is correct MEMORY: total used free shared buff/cache available Mem: 951M 221M 247M 155K 549M 729M Swap: 209M 153M 56M Total: 1.2G 374M 304M Active iob-Instances: 1 Upgrade policy: none ioBroker Core: js-controller 6.0.11 admin 7.1.5 ioBroker Status: iobroker is not running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: system.adapter.admin.0 : admin : raspberrypi2 - enabled, port: 8081, bind: 0.0.0.0, run as: admin Objects: 149 States: 79 Size of iob-Database: 9.6M /opt/iobroker/iobroker-data/objects.jsonl 40K /opt/iobroker/iobroker-data/states.jsonl Operating System is the current Debian stable version codenamed 'bookworm'! =================== END OF SUMMARY ====================
Gruß
Mico -
@haselchen ja hast ja recht.... auch wenn sich nix geändert hat..
-
so nun habe ich bei beiden Systemen ein iobroker setup custom ausgeführt beim slave mußte ich allerdings den Stecker danach ziehen und neu starten und jetzt meldet er sich am ersten System an.
Danke für Eure Hilfestellungen
Gruß
Mico -
Nie nie nie niemals den Stecker ziehen .
Das ist wirklich das aller aller allerletzte Mittel !
Entweder sudo reboot oder sudo shutdown.
Zeig mal bitte vom Slave iob diag
um zu sehen , ob Dein Dateisystem noch ordnungsgemäß läuft nach dem Steckerziehen.