NEWS
Datei iobroker.json gelöscht
-
Hallo
Ich habe nochmal iobroker installiert . Jetzt ist eine leere Datei iobroker.json vorhanden aber mein Iobroker läuft nicht . Bei Eingabe von " iobroker list instances " erscheint folgendes:code_textSyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2724:23) at CLIProcess.setAdapterEnabled (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:102:9) at CLIProcess.start (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:39:18) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:413:33) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2912:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)Gruß
Heinz -
Hallo
Ich habe nochmal iobroker installiert . Jetzt ist eine leere Datei iobroker.json vorhanden aber mein Iobroker läuft nicht . Bei Eingabe von " iobroker list instances " erscheint folgendes:code_textSyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2724:23) at CLIProcess.setAdapterEnabled (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:102:9) at CLIProcess.start (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:39:18) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:413:33) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2912:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)Gruß
Heinz -
Hallo
Mit dem Befehl : curl -sLf https://iobroker.net/install.sh | bash - wurde iobroker installiert . Am Ende der Installation auch die Meldung Installation successful und Start über Http möglich . Aber der Iobroker läuft nichtGruß
Heinz -
Hallo
Mit dem Befehl : curl -sLf https://iobroker.net/install.sh | bash - wurde iobroker installiert . Am Ende der Installation auch die Meldung Installation successful und Start über Http möglich . Aber der Iobroker läuft nichtGruß
HeinzDas bringt so nix.
iobroker stop iobroker fixmal versucht?
Wenn das nicht funktioniert:
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller -
Hallo
Ich habe nochmal iobroker installiert . Jetzt ist eine leere Datei iobroker.json vorhanden aber mein Iobroker läuft nicht . Bei Eingabe von " iobroker list instances " erscheint folgendes:code_textSyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2724:23) at CLIProcess.setAdapterEnabled (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:102:9) at CLIProcess.start (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliProcess.js:39:18) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:413:33) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2912:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)Gruß
Heinz@brur1250 sagte: Jetzt ist eine leere Datei iobroker.json vorhanden
Kopiere den folgenden Inhalt (ist eine Kopie von Github) in die leere Datei iobroker.json:
{ "system": { "memoryLimitMB": 0, "hostname": "", "statisticsInterval": 15000, "// statisticsInterval": "Interval how often the counters for input/output in adapters and controller will be updated", "checkDiskInterval": 300000, "// checkDiskInterval": "Interval how often the disk size will be checked", "instanceStartInterval": 2000, "// noChmod": "Flag to test new feature with no chmod call. Must be deleted later and noChmod must be mainline (2018.06.04)", "compact": false, "// compact": "Controller will try to start the instances as a part of the same process. No spawn will be done. Only by adapters that support it and have flag compact flag in io-package.json", "allowShellCommands": false, "// allowShellCommands": "Allow execution of \"shell\" sendToHost commands", "memLimitWarn": 100, "// memLimitWarn": "If the available RAM is below this threshold on adapter start, a warning will be logged.", "memLimitError": 50, "// memLimitError": "If the available RAM is below this threshold on adapter start, an error will be logged." }, "multihostService": { "enabled": false, "secure": true, "password": "" }, "objects" : { "type": "file", "// type": "Possible values: 'file' - [port 9001], redis - [port 6379 or 26379 for sentinel].", "host": "127.0.0.1", "port": 9001, "noFileCache": false, "maxQueue": 1000, "connectTimeout": 2000, "writeFileInterval": 5000, "dataDir": "", "options": { "auth_pass": null, "retry_max_delay": 5000, "retry_max_count": 19, "db": 0, "family": 0 }, "backup": { "disabled": false, "files": 24, "// files": "Minimal number of backup files, after the deletion will be executed according to backupTime settings", "hours": 48, "// hours": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber", "period": 120, "// period": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0", "path": "", "// path": "Absolute path to backup directory or empty to backup in data directory" }, "jsonlOptions": { "// autoCompress (1)": "The JSONL DB is append-only and will contain unnecessary entries after a while.", "// autoCompress (2)": "It will be compressed when the uncompressed size is >= size * sizeFactor AND >= sizeFactorMinimumSize", "// autoCompress (3)": "Note that too low values here will cause the DB to be rewritten often.", "autoCompress": { "sizeFactor": 2, "sizeFactorMinimumSize": 25000 }, "// ignoreReadErrors": "If single lines in the DB are corrupted, they can be ignored without losing the whole DB.", "ignoreReadErrors": true, "// throttleFS (1)": "By default, the database immediately writes to the database file. Write accesses can be reduced using the throttleFS option.", "// throttleFS (2)": "Be aware that buffered changes will be lost in case the process crashes.", "throttleFS": { "// intervalMs": "Write to the database file no more than every intervalMs milliseconds.", "intervalMs": 60000, "// maxBufferedCommands": "Force writing after this many changes have been buffered. This reduces memory consumption and data loss in case of a crash.", "maxBufferedCommands": 100 } } }, "states" : { "type": "file", "// type": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].", "host": "127.0.0.1", "port": 9000, "connectTimeout": 2000, "writeFileInterval": 30000, "dataDir": "", "options": { "auth_pass": null, "retry_max_delay": 5000, "retry_max_count": 19, "db": 0, "family": 0 }, "backup": { "disabled": false, "files": 24, "// files": "Minimal number of backup files, after the deletion will be executed according to backupTime settings", "hours": 48, "// hoursC": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber", "period": 120, "// period": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0", "path": "", "// path": "Absolute path to backup directory or empty to backup in data directory" }, "jsonlOptions": { "// autoCompress (1)": "The JSONL DB is append-only and will contain unnecessary entries after a while.", "// autoCompress (2)": "It will be compressed when the uncompressed size is >= size * sizeFactor AND >= sizeFactorMinimumSize", "// autoCompress (3)": "Note that too low values here will cause the DB to be rewritten often.", "autoCompress": { "sizeFactor": 10, "sizeFactorMinimumSize": 50000 }, "// ignoreReadErrors": "If single lines in the DB are corrupted, they can be ignored without losing the whole DB.", "ignoreReadErrors": true, "// throttleFS (1)": "By default, the database immediately writes to the database file. Write accesses can be reduced using the throttleFS option.", "// throttleFS (2)": "Be aware that buffered changes will be lost in case the process crashes.", "throttleFS": { "// intervalMs": "Write to the database file no more than every intervalMs milliseconds.", "intervalMs": 60000, "// maxBufferedCommands": "Force writing after this many changes have been buffered. This reduces memory consumption and data loss in case of a crash.", "maxBufferedCommands": 2000 } } }, "log": { "level": "info", "maxDays": 7, "noStdout": true, "transport": { "file1": { "type": "file", "enabled": true, "filename": "log/iobroker", "fileext": ".log", "maxsize": null, "maxFiles": null }, "syslog1": { "type": "syslog", "enabled": false, "host": "localhost", "// host": "The host running syslogd, defaults to localhost.", "// port": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).", "protocol": "udp4", "// protocolC": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).", "// path": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).", "// facility": "Syslog facility to use (Default: local0).", "localhost": "iobroker", "// localhost": "Host to indicate that log messages are coming from (Default: localhost).", "// sysLogType": "The type of the syslog protocol to use (Default: BSD).", "// app_name": "The name of the application (Default: process.title).", "// eol": "The end of line character to be added to the end of the message (Default: Message without modifications)." }, "seq1": { "type": "seq", "enabled": false, "serverUrl": "http://IP:PORT", "// serverUrl": "The http(s) URL including port of the seq server. If you use HTTPS a real certificate is needed; self signed certs are ot accepted.", "apiKey": "", "// apiKey": "The apiKey of the seq system" } } }, "// dataDir": "Always relative to iobroker.js-controller/", "plugins": { } } -
Das bringt so nix.
iobroker stop iobroker fixmal versucht?
Wenn das nicht funktioniert:
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller@thomas-braun said in Datei iobroker.json gelöscht:
sudo -H -u iobroker npm install iobroker.js-controller
Iobroker fix hat nichts gebracht nach sudo -H -u iobroker npm install iobroker.js-controller kam das hiernpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@3.3.22 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-02-02T14_02_31_316Z-debug.logGruß
Heinz -
@thomas-braun said in Datei iobroker.json gelöscht:
sudo -H -u iobroker npm install iobroker.js-controller
Iobroker fix hat nichts gebracht nach sudo -H -u iobroker npm install iobroker.js-controller kam das hiernpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@3.3.22 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-02-02T14_02_31_316Z-debug.logGruß
Heinz -
@brur1250 sagte: Jetzt ist eine leere Datei iobroker.json vorhanden
Kopiere den folgenden Inhalt (ist eine Kopie von Github) in die leere Datei iobroker.json:
{ "system": { "memoryLimitMB": 0, "hostname": "", "statisticsInterval": 15000, "// statisticsInterval": "Interval how often the counters for input/output in adapters and controller will be updated", "checkDiskInterval": 300000, "// checkDiskInterval": "Interval how often the disk size will be checked", "instanceStartInterval": 2000, "// noChmod": "Flag to test new feature with no chmod call. Must be deleted later and noChmod must be mainline (2018.06.04)", "compact": false, "// compact": "Controller will try to start the instances as a part of the same process. No spawn will be done. Only by adapters that support it and have flag compact flag in io-package.json", "allowShellCommands": false, "// allowShellCommands": "Allow execution of \"shell\" sendToHost commands", "memLimitWarn": 100, "// memLimitWarn": "If the available RAM is below this threshold on adapter start, a warning will be logged.", "memLimitError": 50, "// memLimitError": "If the available RAM is below this threshold on adapter start, an error will be logged." }, "multihostService": { "enabled": false, "secure": true, "password": "" }, "objects" : { "type": "file", "// type": "Possible values: 'file' - [port 9001], redis - [port 6379 or 26379 for sentinel].", "host": "127.0.0.1", "port": 9001, "noFileCache": false, "maxQueue": 1000, "connectTimeout": 2000, "writeFileInterval": 5000, "dataDir": "", "options": { "auth_pass": null, "retry_max_delay": 5000, "retry_max_count": 19, "db": 0, "family": 0 }, "backup": { "disabled": false, "files": 24, "// files": "Minimal number of backup files, after the deletion will be executed according to backupTime settings", "hours": 48, "// hours": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber", "period": 120, "// period": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0", "path": "", "// path": "Absolute path to backup directory or empty to backup in data directory" }, "jsonlOptions": { "// autoCompress (1)": "The JSONL DB is append-only and will contain unnecessary entries after a while.", "// autoCompress (2)": "It will be compressed when the uncompressed size is >= size * sizeFactor AND >= sizeFactorMinimumSize", "// autoCompress (3)": "Note that too low values here will cause the DB to be rewritten often.", "autoCompress": { "sizeFactor": 2, "sizeFactorMinimumSize": 25000 }, "// ignoreReadErrors": "If single lines in the DB are corrupted, they can be ignored without losing the whole DB.", "ignoreReadErrors": true, "// throttleFS (1)": "By default, the database immediately writes to the database file. Write accesses can be reduced using the throttleFS option.", "// throttleFS (2)": "Be aware that buffered changes will be lost in case the process crashes.", "throttleFS": { "// intervalMs": "Write to the database file no more than every intervalMs milliseconds.", "intervalMs": 60000, "// maxBufferedCommands": "Force writing after this many changes have been buffered. This reduces memory consumption and data loss in case of a crash.", "maxBufferedCommands": 100 } } }, "states" : { "type": "file", "// type": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].", "host": "127.0.0.1", "port": 9000, "connectTimeout": 2000, "writeFileInterval": 30000, "dataDir": "", "options": { "auth_pass": null, "retry_max_delay": 5000, "retry_max_count": 19, "db": 0, "family": 0 }, "backup": { "disabled": false, "files": 24, "// files": "Minimal number of backup files, after the deletion will be executed according to backupTime settings", "hours": 48, "// hoursC": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber", "period": 120, "// period": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0", "path": "", "// path": "Absolute path to backup directory or empty to backup in data directory" }, "jsonlOptions": { "// autoCompress (1)": "The JSONL DB is append-only and will contain unnecessary entries after a while.", "// autoCompress (2)": "It will be compressed when the uncompressed size is >= size * sizeFactor AND >= sizeFactorMinimumSize", "// autoCompress (3)": "Note that too low values here will cause the DB to be rewritten often.", "autoCompress": { "sizeFactor": 10, "sizeFactorMinimumSize": 50000 }, "// ignoreReadErrors": "If single lines in the DB are corrupted, they can be ignored without losing the whole DB.", "ignoreReadErrors": true, "// throttleFS (1)": "By default, the database immediately writes to the database file. Write accesses can be reduced using the throttleFS option.", "// throttleFS (2)": "Be aware that buffered changes will be lost in case the process crashes.", "throttleFS": { "// intervalMs": "Write to the database file no more than every intervalMs milliseconds.", "intervalMs": 60000, "// maxBufferedCommands": "Force writing after this many changes have been buffered. This reduces memory consumption and data loss in case of a crash.", "maxBufferedCommands": 2000 } } }, "log": { "level": "info", "maxDays": 7, "noStdout": true, "transport": { "file1": { "type": "file", "enabled": true, "filename": "log/iobroker", "fileext": ".log", "maxsize": null, "maxFiles": null }, "syslog1": { "type": "syslog", "enabled": false, "host": "localhost", "// host": "The host running syslogd, defaults to localhost.", "// port": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).", "protocol": "udp4", "// protocolC": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).", "// path": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).", "// facility": "Syslog facility to use (Default: local0).", "localhost": "iobroker", "// localhost": "Host to indicate that log messages are coming from (Default: localhost).", "// sysLogType": "The type of the syslog protocol to use (Default: BSD).", "// app_name": "The name of the application (Default: process.title).", "// eol": "The end of line character to be added to the end of the message (Default: Message without modifications)." }, "seq1": { "type": "seq", "enabled": false, "serverUrl": "http://IP:PORT", "// serverUrl": "The http(s) URL including port of the seq server. If you use HTTPS a real certificate is needed; self signed certs are ot accepted.", "apiKey": "", "// apiKey": "The apiKey of the seq system" } } }, "// dataDir": "Always relative to iobroker.js-controller/", "plugins": { } }@paul53 Hallo , ich habe das in die Datei geschrieben , danach keine Fehlermeldung mehr von "iobroker.json" aber Weboberfläche startet nicht
c instance is alive pi@raspberrypi:/opt/iobroker $ pi@raspberrypi:/opt/iobroker $ iobroker start admin Cannot find any instances of "admin"! pi@raspberrypi:/opt/iobroker $ iobroker set admin.0 --port 8081 The instance "admin.0" does not exist! pi@raspberrypi:/opt/iobroker $Wahrscheinlich geht es schneller alles neu zu installieren als stundenlang zu suchen . Backup ist ja täglich gemacht worden und dann üben wir das mit der Installation
Gruß
Heinz -
@paul53 Hallo , ich habe das in die Datei geschrieben , danach keine Fehlermeldung mehr von "iobroker.json" aber Weboberfläche startet nicht
c instance is alive pi@raspberrypi:/opt/iobroker $ pi@raspberrypi:/opt/iobroker $ iobroker start admin Cannot find any instances of "admin"! pi@raspberrypi:/opt/iobroker $ iobroker set admin.0 --port 8081 The instance "admin.0" does not exist! pi@raspberrypi:/opt/iobroker $Wahrscheinlich geht es schneller alles neu zu installieren als stundenlang zu suchen . Backup ist ja täglich gemacht worden und dann üben wir das mit der Installation
Gruß
Heinziobroker list adapter iobroker list instances -
iobroker list adapter iobroker list instances@thomas-braun Danke für Eure Bemühungen . Da gab es Probleme reichlich so das ich die SD Karte mal eben neu gemacht habe und alles neu eingegeben ( Restore)
Jetzt läuft alles wiederGruß
Heinz
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden