NEWS
[gelöst] Umzug Datenbank von ext redis auf jsonl
-
Guten Tag zusammen
ich wollte heute die Datenbanken von redis auf den iobroker host "zurück-züglen".
Habe in der console iob stop eingegeben;
dann im iob setup custom alles eiggegeben - als er dann startete, habe ich die Fehlermeldung bekommen, dass ich den js-controller von iobroker stoppen soll.... ?! - habe ich das nicht mit iob stop gemacht?
den iob fix / upgrade / upgrade self etc konnte ich alles machen ohne mucken die Weboberfläche war auch erst wieder nach iob start aufrufbar.was habe ich da falsch gemacht?
Grüsse
Matt -
Vielleicht würde es helfen, die kompletten Ein- und Ausgaben zu zeigen und das nicht nachzuerzählen, eventuell fällt dann noch etwas auf. Die komplette Ausgabe von "iob diag" schadet sicher auch nicht.
-
Options: --help Show help [boolean] $ iob setup custom Current configuration: - Objects database: - Type: redis - Host/Unix Socket: 192.168.1.154 - Port: 6379 - States database: - Type: redis - Host/Unix Socket: 192.168.1.154 - Port: 6379 Type of objects DB [(j)sonl, (f)ile, (r)edis, ...], default [redis]: j Host / Unix Socket of objects DB(jsonl), default[127.0.0.1]: 192.168.1.245 Port of objects DB(jsonl), default[9001]: Type of states DB [(j)sonl, (f)file, (r)edis, ...], default [jsonl]: j Host / Unix Socket of states DB (jsonl), default[192.168.1.245]: Port of states DB (jsonl), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [iobroker]: It appears that you want to convert this slave host into a Master or Single host system. Is this correct? [Y/n]: y Do you want to migrate objects and states from "redis/redis" to "jsonl/jsonl" [y/N]: y Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y Connecting to previous DB "redis/redis"... Cannot migrate DB while js-controller is still running! Please stop ioBroker and try again. No settings have been changed. $ sudo iob stop ***For security reasons ioBroker should not be run or administrated as root.*** By default only a user that is member of iobroker group can execute ioBroker commands. Please execute 'iob fix'to create an appropriate setup! $ iob stop $ iob status iobroker is not running on this host. At least one iobroker host is running. Objects type: redis States type: redis
-
Wenn du die ganzen Aktionen nicht als root ausführst ist es einfacher mit den Rechten...
Und mit gestopptem ioBroker schaut das Ganze dann wie aus?
-
@thomas-braun
ich habe gemerkt, dass ich alle iob Instanzen stoppen muss - heisst Master und Slaves... jetzt ist es am durchlaufen...