NEWS
Neuer Multihost unter Windows ...?
-
Hallo,
ich versuche gerade ein neues IO-Broker System unter Windows als mutlihost aufzusetzen...
Allerdings finde ich den parameter "setup" oder "multihost" nicht..
https://www.iobroker.net/docu/index-24.htm?page_id=3068&lang=de So wie hier beschrieben, geht es wohl mit der aktuellen Version (2.1.0) nicht mehr...
Geht das momentan gar nicht ?
C:\Program Files\iobroker\SigmaIT\daemon>iobroker help A wrapper binary that can be used to host executables as Windows services Usage: winsw [/redirect file] <command> [<args>] Missing arguments trigger the service mode Available commands: - 'install' - install the service to Windows Service Controller - 'uninstall' - uninstall the service - 'start' - start the service (must be installed before) - 'stop' - stop the service - 'restart' - restart the service - 'restart!' - self-restart (can be called from child processes) - 'status' - check the current status of the service - 'test' - check if the service can be started and then stopped - 'testwait' - starts the service and waits until a key is pressed then stops the service - 'version' - print the version info - 'help' - print the help info (aliases: -h,--help,-?,/?) Extra options: - '/redirect' - redirect the wrapper's STDOUT and STDERR to the specified file WinSW 2.3.0.0 More info: https://github.com/kohsuke/winsw Bug tracker: https://github.com/kohsuke/winsw/issues
-
-
Ja... nettes Video,
aber unter Windows gibt es eben den parameter "Multihost" nicht..
Und... ich bin in zwei Subnetzen.. da ginge das sowieso nicht....
EDIT:
OK... gefunden...
Man muss jetzt die "Io-Broker Commandline" aus dem Startmenü öffnen,
dann klappt auch der iobroker setup custom wieder
-
Geht leider noch nicht...
Master hat die IP 192.168.171.6 und ist per VPN mit Slave 192.168.170.1 verbunden..
Am Master follgendes durchgeführt:
C:\Program Files\iobroker\SigmaIT>iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 127.0.0.1 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 127.0.0.1 - Port: 9000 - Data Directory: ../../iobroker-data/ - Host name: srvCLApp(SigmaIT) Type of objects DB [(f)ile, (r)edis], default [file]: Host / Unix Socket of objects DB(file), default[127.0.0.1]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis], default [file]: Host / Unix Socket of states DB (file), default[127.0.0.1]: Port of states DB (file), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [srvCLApp(SigmaIT)]: updating conf/iobroker.json
Dann am Slave:
C:\Program Files\iobroker\SigmaIT2>iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 127.0.0.1 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 127.0.0.1 - Port: 9000 - Data Directory: ../../iobroker-data/ - Host name: srvLocal(SigmaIT2) Type of objects DB [(f)ile, (r)edis], default [file]: Host / Unix Socket of objects DB(file), default[127.0.0.1]: 192.168.171.6 Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis], default [file]: Host / Unix Socket of states DB (file), default[192.168.171.6]: Port of states DB (file), default[9000]: Host name of this machine [srvLocal]: updating conf/iobroker.json C:\Program Files\iobroker\SigmaIT2>iobroker start 2020-01-22 15:41:42,778 INFO - Starting the service with id 'iobroker(SigmaIT2)'
Im Slave Log taucht dann nur:
020-01-22 15:44:25.336 - [32minfo[39m: host.srvLocal iobroker Starting node restart.js 2020-01-22 15:47:08.834 - [32minfo[39m: host.srvLocal iobroker.js-controller version 2.1.0 js-controller starting 2020-01-22 15:47:08.834 - [32minfo[39m: host.srvLocal Copyright (c) 2014-2019 bluefox, 2014 hobbyquaker 2020-01-22 15:47:08.834 - [32minfo[39m: host.srvLocal hostname: srvLocal, node: v10.17.0 2020-01-22 15:47:08.850 - [32minfo[39m: host.srvLocal ip addresses: fe80::7019:5d74:3461:dbe4 192.168.170.1 2020-01-22 15:47:38.866 - [31merror[39m: host.srvLocal No connection to databases possible, restart 2020-01-22 15:47:38.866 - [32minfo[39m: host.srvLocal iobroker _restart 2020-01-22 15:47:39.413 - [32minfo[39m: host.srvLocal iobroker Starting node restart.js
auf.. Dienst beendet sich wieder... Keinerlei Versuch auf die 192.168.171.6 zuzugreifen...
-
-
@arteck Nein.. denn:
Multihost mit verschiedenen Subnetzen Achtung !!! Wenn beide ioBroker-Hosts in unterschiedlichen Subnetzen sind, … Beispiel: Normales LAN (für PC, Tablet, use.) = 192.168.178.0/24 IoT LAN (für Shelly, Kameras, usw.) = 10.20.30.0/24 … geht die Multihost-Automatik (“sudo iobroker multihost enable” und “sudo iobroker multihost browse“) nicht, sondern nur der alte Weg (iobroker setup custom) ==> Link
Muss das Enable trotzdem sein ?? Ich habs ja mit iobroker setup custom aktiviert...
-
@mameier1234 jo hast ja recht aber der Fehler liegt in dem local host
mach am master aus
Type of objects DB [(f)ile, (r)edis], default [file]: Host / Unix Socket of objects DB(file), default[127.0.0.1]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis], default [file]: Host / Unix Socket of states DB (file), default[127.0.0.1]: Port of states DB (file), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [srvCLApp(SigmaIT)]:
Type of objects DB [(f)ile, (r)edis], default [file]: Host / Unix Socket of objects DB(file), default[127.0.0.1]: 0.0.0.0 Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis], default [file]: Host / Unix Socket of states DB (file), default[0.0.0.0]: 0.0.0.0 Port of states DB (file), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [srvCLApp(SigmaIT)]:
am slave bleibt es so wie es ist
dann solte es gehen .. -
@arteck Tschaka !!
das sollte vieleicht in dem verlinkten Web-Artikel aktualisiert werden ?? ... noch schlimmer, es steht ja so da und ich habe versucht mitzudenken