NEWS
[gelöst] Adapter löschen - IOBroker tot
-
Ich wollte meine IO Broker Installation aufräumen und nicht benötigte Adapter entfernen.
pi@raspberrypi4:~ $ iobroker del ble Delete adapter "ble" host.raspberrypi4 Counted 1 instances of ble host.raspberrypi4 Counted 1 meta of ble host.raspberrypi4 Counted 1 adapter for ble host.raspberrypi4 Counted 15605 devices of ble host.raspberrypi4 Counted 15607 channels of ble host.raspberrypi4 Counted 31227 states of ble host.raspberrypi4 Counted 14 states of system.adapter.ble host.raspberrypi4 Counted 26739 states (io.ble.*) from states host.raspberrypi4 Counted 14 states (system.adapter.ble.*) from states host.raspberrypi4 file ble.admin deleted host.raspberrypi4 object ble deleted host.raspberrypi4 object ble.admin deleted host.raspberrypi4 Deleting 62456 object(s). Be patient... host.raspberrypi4: Only 62400 objects left to be deleted. host.raspberrypi4: Only 62200 objects left to be deleted. host.raspberrypi4: Only 62000 objects left to be deleted. Objects database error: read ECONNRESET Objects database error: connect ECONNREFUSED 0.0.0.0:9001 States database error: connect ECONNREFUSED 0.0.0.0:9000 States database error: connect ECONNREFUSED 0.0.0.0:9000 Objects database error: connect ECONNREFUSED 0.0.0.0:9001 Objects database error: connect ECONNREFUSED 0.0.0.0:9001 States database error: connect ECONNREFUSED 0.0.0.0:9000 host.raspberrypi4: Only 61800 objects left to be deleted.
seitdem bekomme ich die unterschiedlichsten Statusmeldungen:
pi@raspberrypi4:~ $ iobroker status Server Cannot load /opt/iobroker/iobroker-data/objects.json: /opt/iobroker/iobroker-data/objects.json: Unexpected end of JSON input. Try last Backup! No connection to databases possible ... Cannot load "custom": Connection is closed. Cannot initialize database scripts: Cannot load "custom" into objects database: Connection is closed. Unable to subscribe to expiry Keyspace events from Redis Server: Connection is closed. Unable to subscribe to evicted Keyspace events from Redis Server: Connection is closed. pi@raspberrypi4:~ $ iobroker status iobroker is running on this host. Objects type: file States type: file pi@raspberrypi4:~ $ iobroker status No connection to databases possible ... pi@raspberrypi4:~ $ pi@raspberrypi4:~ $ iobroker status Server Cannot load /opt/iobroker/iobroker-data/objects.json: /opt/iobroker/iobroker-data/objects.json: Unexpected end of JSON input. Try last Backup! No connection to databases possible ...
Wie bekomme ich das wieder repariert?
-
@wolfgangfb sagte in Adapter löschen - IOBroker tot:
Try last Backup!
-
@arteck
Da beißt sich die Katze in den Schwanz. Dann frage ich anders rum. Wie werde ich die amokgelaufene ble Instanz wieder los? Wenn ich das Backup nehme ist die ble Instanz wieder da, wenn ich versuche die zu löschen stirbt IOBroker. -
@wolfgangfb
Stellt sich die Frage warum die Instanz beim Löschen des Adapter nicht einfach mit verschwindet so wie es eigentlich sein soll?Wenn Du das Backup restorst, wird eh alles frisch installiert und dann sollte sich auch der Adpter "normal" deinstallieren lassen. Ist das nicht der Fall, ist was anderes krumm.
-
@wolfgangfb sagte in Adapter löschen - IOBroker tot:
host.raspberrypi4: Only 62000 objects left to be deleted.
das ist wohl zu viel
-
Das das zu viel ist sehe ich auch so. Keine Ahnung woher der ble Adapter so viele Einträge hat. Aber wie werde ich den wieder los?
Wenn ich ihn versuche mitiobroker del ble
zu löschen reist mir das das System in den Tod.
Auf welche Arten kann man einen Adapter (mit Objekten) noch löschen?
-
@wolfgangfb
Wenn Du dem Adapter erlaubst alle BT Geräte zu erkennen, dann hast je nach Wohnlage schnell mal paar tausend Objekte drin
Kannst die Objekte nicht manuell löschen (wird wohl lange dauern) und dann den Adapter normal deinstallieren? -
Ich habe jetzt mal versucht aus der "Objekte" Instanz die ersten 10 Datenpunkte von Hand zu löschen. Alleine das genügt um die objeects.json zu zerstören -:(
Hat noch irgend jemand eine Idee wie ich das repariert bekomme?
-
Hast du das
iobroker del ble
abgeschossen?
Lass das mal sein Werk tun, ggf. übernacht.
Und den Datenpunkt 'Allow new devices' oder so ähnlich auf false setzen.Warum ist das eigentlich noch
Objects type: file
States type: file
und nicht zum aktuellen Format konvertiert? Mit dem js-controller 4 sollte das eigentlich der Fall sein. -
Ich habe den ble Adapter inzwischen ausgeschaltet.
iobroker del ble
läuft durch
host.raspberrypi4: Only 1000 states left to be deleted. host.raspberrypi4: Only 800 states left to be deleted. host.raspberrypi4: Only 600 states left to be deleted. host.raspberrypi4: Only 400 states left to be deleted. host.raspberrypi4: Only 200 states left to be deleted. npm uninstall iobroker.ble --loglevel error --prefix "/opt/iobroker" (System call)
Aber schon zuvor ist das System tot.
Cannot find view "system" for search "enum" host.raspberrypi4 error: Error: Cannot find view "system" Cannot find view "system" for search "enum" host.raspberrypi4 error: Error: Cannot find view "system" host.raspberrypi4 Deleting 26769 state(s). Be patient... host.raspberrypi4: Only 26600 states left to be deleted. host.raspberrypi4: Only 26400 states left to be deleted.
Ab diesem Zeitpunkt ist die objects.json kaputt und IOBrokker läuft nicht mehr.
Ich habe jetzt mal geschaut, ob es einen json Editor gibt, mit dem ich den ganzen ble Tree löschen kann. Ich habe aber noch keinen gefunden, der eine 37 MB große Datei laden kann.
-
@wolfgangfb Notepad++ wird das können.
-
Notepadd++ kann die Datei zwar laden, aber nicht als Json Tree darstellen. Es wird eine Zeile mit 37142573 Zeichen angezeigt. Wenn ich zum Vergleich die iobroker.json lade bekomme ich die Baumstruktur.
-
@wolfgangfb Für Notepad++ gibt es ein JSON Viewer als Plugin
-
Hallo an alle
Notepad++ versucht sich immer noch an der Datei. Das wird wohl nichts mehr.
Aber: Mit UltraEdit konnte ich den ersten Block mit ca. 20000 Objekten löschen. Anschließend hat dann auch iobroker del ble funktioniert!
Jetzt bin ich den ble Adapter endlich los, das System läuft auf einmal wieder richtig flott. Ich hoffe dass mir das so schnell nicht wieder passiert. -
@wolfgangfb Schreibst noch ein [gelöst] in den Titel deines Beitrags?