NEWS
Iobroker 1zu1 Portierung
-
Hallo,
ich teste gerade den Ernstfall und habe versucht iobroker (ubuntu) auf ein neues System zu portieren, leider ohne Erfolgt.
Ich habe auf dem neuen System alles soweit installiert, so dass iobroker in der Grundkonfiguration läuft.
Anschließend habe ich die ip des alten Systems vergeben und versucht das iobroker Verzeichnis zu kopieren, iobroker lässt sich zwar dann starten, ich komme aber nicht auf die Weboberfläche.
Das Gleiche passiert wenn ich versuche ein Backup auf dem neuen System einzuspielen.
Beide Instance web und admin sind gestartet.
Bin etwas ratlos und geschockt ;( Ich dachte, gleiches System, 1zu1 Kopie und alles ist gut.
Gibt es hier ein Workaround für solch einen Umzug?
Sollte ein Umzug klappen, bleibe die IDs die Gleiche? Z.b. die von Homematic?
Danke,
-
Ok, der Servername wars! Es hat geklappt!
Ich teste nun noch ob die IDs die gleichen bleiben.
-
Es gibt zwei Möglichkeiten, wie man so eine Portierung macht:
-
backup auf den altem und dann restore auf neuem System.
-
einfach iobroker-data Verzeichnis kopieren und dann "iobroker host this" ausführen. https://github.com/ioBroker/ioBroker/wi … roker-host
-
-
ich habs gleich mal ausprobiert und erhalte folgende Fehlermeldung:
root@ubuntu-test2:/opt/iobroker# ./iobroker stop ioBroker controller daemon is not running root@ubuntu-test2:/opt/iobroker# ./iobroker host this Rename state "system.host.ubuntu-test.mem". Rename state "system.host.ubuntu-test.memHeapUsed". Rename state "system.host.ubuntu-test.memHeapTotal". Rename state "system.host.ubuntu-test.memRss". Rename state "system.host.ubuntu-test.uptime". Rename state "system.host.ubuntu-test.load". Rename state "system.host.ubuntu-test.alive". Rename host "system.host.ubuntu-test". TypeError: Object # <console>has no method 'err' at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1848:45 at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2216:23) at ObjectsInMemServer. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2176:33) at checkObjectRights (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:463:16) at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2172:13) at taskCnt (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1830:25) at Object.States.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2185:82) at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:179:26) at Timer.listOnTimeout [as ontimeout] (timers.js:121:15) root@ubuntu-test2:/opt/iobroker# node -v v0.10.40 root@ubuntu-test2:/opt/iobroker#</anonymous></console>
Kann es an der Node Version liegen?
Gruß,
Marco
4217_rainyman.txt -
Nein. Es liegt an den Fehler, den ich eingebaut habe.
Kann es sein, dass multihost system hast? Wenn ja, dann musst du statt "this" explizit sagen, wie hiss host und den wird umbenannt.
-
Nein, kein Multihost.
Alter Servername "ubuntu-test" neuer Name "ubuntu-test2". Komisch ist das bei Angabe des neuen Namens nach Instanzen gesucht wird?
root@ubuntu-test2:/opt/iobroker# hostname ubuntu-test2 root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test2 No instances found for this host "ubuntu-test2". root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test Rename state "system.host.ubuntu-test.mem". Rename state "system.host.ubuntu-test.memHeapUsed". Rename state "system.host.ubuntu-test.memHeapTotal". Rename state "system.host.ubuntu-test.memRss". Rename state "system.host.ubuntu-test.uptime". Rename state "system.host.ubuntu-test.load". Rename state "system.host.ubuntu-test.alive". Rename host "system.host.ubuntu-test". TypeError: Object # <console>has no method 'err' at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1848:45 at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2216:23) at ObjectsInMemServer. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2176:33) at checkObjectRights (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:463:16) at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2172:13) at taskCnt (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1830:25) at Object.States.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2185:82) at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:179:26) at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)</anonymous></console>
-
Nein, kein Multihost.
Alter Servername "ubuntu-test" neuer Name "ubuntu-test2". Komisch ist das bei Angabe des neuen Namens nach Instanzen gesucht wird?
root@ubuntu-test2:/opt/iobroker# hostname ubuntu-test2 root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test2 No instances found for this host "ubuntu-test2". root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test Rename state "system.host.ubuntu-test.mem". Rename state "system.host.ubuntu-test.memHeapUsed". Rename state "system.host.ubuntu-test.memHeapTotal". Rename state "system.host.ubuntu-test.memRss". Rename state "system.host.ubuntu-test.uptime". Rename state "system.host.ubuntu-test.load". Rename state "system.host.ubuntu-test.alive". Rename host "system.host.ubuntu-test". TypeError: Object # <console>has no method 'err' at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1848:45 at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2216:23) at ObjectsInMemServer. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2176:33) at checkObjectRights (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:463:16) at ObjectsInMemServer.getObjectList (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2172:13) at taskCnt (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1830:25) at Object.States.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2185:82) at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:179:26) at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)</anonymous></console> ```` `
Update mal js.controller auf den neuesten Stand:,
cd /opt/iobroker iobroker stop sudo npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master
-
Jetzt hat es geklappt:
root@ubuntu-test2:/opt/iobroker# hostname ubuntu-test2 root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test2 No instances found for this host "ubuntu-test2". root@ubuntu-test2:/opt/iobroker# ./iobroker host ubuntu-test Rename state "system.host.ubuntu-test.mem". Rename state "system.host.ubuntu-test.memHeapUsed". Rename state "system.host.ubuntu-test.memHeapTotal". Rename state "system.host.ubuntu-test.memRss". Rename state "system.host.ubuntu-test.uptime". Rename state "system.host.ubuntu-test.load". Rename state "system.host.ubuntu-test.alive". Rename host "system.host.ubuntu-test". More than one host found. Cannot rename. Instance host changed for "system.adapter.admin.0" from "ubuntu-test" to "ubuntu-test2". Instance host changed for "system.adapter.web.0" from "ubuntu-test" to "ubuntu-test2". Instance host changed for "system.adapter.icons-mfd-png.0" from "ubuntu-test" to "ubuntu-test2". Instance host changed for "system.adapter.vis.0" from "ubuntu-test" to "ubuntu-test2". Instance host changed for "system.adapter.javascript.0" from "ubuntu-test" to "ubuntu-test2". Instance host changed for "system.adapter.icons-open-icon-library-png.0" from "ubuntu-test" to "ubuntu-test2".
Danke.