NEWS
SOLVED SQL Adapter läuft nicht mehr
-
Systemdata Hardwaresystem: Raspi 4 Arbeitsspeicher: 4GB Festplattenart: SD-Karte Betriebssystem: Raspbian Node-Version: 10.15.2 Nodejs-Version: 10.15.2 NPM-Version: 6.12.1 Installationsart: Skript Image genutzt: Nein Hi,
Kriege nach einem Neustart (Hard reset, strom aus bei Raspi) den SQL-Adapter nicht mehr zum laufen.
Folgende Fehler stehen im Log (Log ist auf Debug, gibt aber nicht mehr aus):
host.raspberrypi 2019-11-12 16:23:08.445 info Restart adapter system.adapter.sql.0 because enabled host.raspberrypi 2019-11-12 16:23:08.445 error instance system.adapter.sql.0 terminated with code 1 () Caught 2019-11-12 16:23:08.445 error by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) Caught 2019-11-12 16:23:08.445 error by controller[0]: at Module._compile (internal/modules/cjs/loader.js:689:30) Caught 2019-11-12 16:23:08.445 error by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.sql/node_modules/ajv/lib/definition_schema.js:3:18) Caught 2019-11-12 16:23:08.445 error by controller[0]: at require (internal/modules/cjs/helpers.js:22:18) Caught 2019-11-12 16:23:08.445 error by controller[0]: at Module.require (internal/modules/cjs/loader.js:637:17) Caught 2019-11-12 16:23:08.445 error by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:530:3) Caught 2019-11-12 16:23:08.444 error by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12) Caught 2019-11-12 16:23:08.444 error by controller[0]: at Module.load (internal/modules/cjs/loader.js:599:32) Caught 2019-11-12 16:23:08.444 error by controller[0]: at Object.Module._extensions..json (internal/modules/cjs/loader.js:708:27) Caught 2019-11-12 16:23:08.444 error by controller[0]: at JSON.parse (<anonymous>) Caught 2019-11-12 16:23:08.444 error by controller[0]: SyntaxError: /opt/iobroker/node_modules/iobroker.sql/node_modules/ajv/lib/refs/json-schema-draft-07.json: Unexpected token ` in JSON at position 4119 Caught 2019-11-12 16:23:08.444 error by controller[0]: ^ Caught 2019-11-12 16:23:08.444 error by controller[0]: throw err; Caught 2019-11-12 16:23:08.444 error by controller[0]: internal/modules/cjs/loader.js:711 host.raspberrypi 2019-11-12 16:23:06.171 info instance system.adapter.sql.0 started with pid 4166 host.raspberrypi 2019-11-12 16:23:06.158 info "system.adapter.sql.0" enabled host.raspberrypi 2019-11-12 16:23:06.157 info object change system.adapter.sql.0
Was ich bereits versucht habe:
Stop / Start Adapter
npm update
Neu installiert mit "npm i sql"
npm update ajv
2x komplett reboot raspi
installation_fixer.sh ausgeführtInteressant ist, ich hatte den Fehler heute schon mal nach einem Hard Reset, dabei konnte ich aber iobroker stoppen und wieder starten damit er sich wieder gefangen hat. Jetzt läuft er gar nicht mehr.
-
Ok, nach dem Schreiben des Posts nochmals npm update gemacht weil ich nicht ganz sicher war ob ich das wirklich gemacht hatte, jetzt läuft er wieder. Hat demnach wohl irgend eine Datei der SD-Karte zerschossen. Sollte wohl mal überlegen, ob die SD-Karte ideal ist für das Raspi mit ioBroker...
-
Ok, nach dem Schreiben des Posts nochmals npm update gemacht weil ich nicht ganz sicher war ob ich das wirklich gemacht hatte, jetzt läuft er wieder. Hat demnach wohl irgend eine Datei der SD-Karte zerschossen. Sollte wohl mal überlegen, ob die SD-Karte ideal ist für das Raspi mit ioBroker...