Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller Update schlägt immer fehl

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    js-controller Update schlägt immer fehl

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pjo123456 @apollon77 last edited by pjo123456

      @apollon77 Moin!

      Mit --force hatte ich es auch probiert. Nach ca. 20 Versuchen habe ich nun zumindest das System wieder am Laufen. Mit aktuellem js-controller. Keine Ahnung was jetzt genau anders gelaufen ist.

      apollon77 1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @pjo123456 last edited by

        @pjo123456 Naja ohne Logs oder andere Details der fehlgeschlagenen Versuche schwierig was dazu zu sagen

        1 Reply Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @pjo123456 last edited by

          @pjo123456 sagte in js-controller Update schlägt immer fehl:

          Dazu installiere ich den History und Javascript Adapter und konfiguriere den Backitup Adapter

          Es wird nur der backup Adapter eingerichtet, nichts anderes.
          Wie schon geschrieben, wenn denn Versionen nicht passen. Mach es schritt für schritt und poste die Meldungen, sonst kann man nicht helfen

          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            Und dazu: Der Restore Prozess hat sich mit js-controller 4.0 geändert und kann nun VIEEL LÄÄNGER dauern. Zuerst werden alle adapter deinstalliert und richtet der erste Start das alles wieder ein wie es sein muss... Aber sind alles nur annahmen weil Unklar ist wo und bei was es hier genau hängt

            P 1 Reply Last reply Reply Quote 0
            • P
              pjo123456 @apollon77 last edited by

              OK, beim nächsten Update werde ich alle logs speichern.

              Da ja nun alles wieder hergestellt ist, taucht natürlich das Problem vom Anfang wieder auf. Diese komischen Einträge ("dataDir": "f"). Kann ich die iobroker.json mit dem nano Editor bearbeiten? Die Zeilen einfach löschen?

              apollon77 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @pjo123456 last edited by

                @pjo123456 ja einfach editieren mit Texteditor

                P 1 Reply Last reply Reply Quote 0
                • P
                  pjo123456 @apollon77 last edited by

                  Habe die iobroker.json geändert. Der iobroker läuft noch. 😊 Aber irgendwie scheint sich ein Fehler eingeschlichen zu haben, denn jetzt geht Flot und Vis nicht mehr. Es erscheint dann nur eine weiße Seite mit "File edit.html not found: {}". Nehme ich meine gesicherte iobroker.json wieder ist alles ok.
                  Kann sich jemand mal die iobroker.json ansehen? Und eventuell den Fehler finden?

                  die originale Datei ist weiter oben zu sehen. Und so habe ich sie jetzt geändert.

                  {
                    "system": {
                      "memoryLimitMB": 0,
                      "hostname": "",
                      "statisticsInterval": 15000,
                      "checkDiskInterval": 300000
                    },
                    "multihostService": {
                      "enabled": false,
                      "secure": true,
                      "password": "$/aes-192-cbc:28a379506c10d56d6f67db5c2290f15d:37ee00d646c76cc95210975ac782ff1d",
                      "persist": false
                    },
                    "network": {
                      "IPv4": true,
                      "IPv6": true,
                      "bindAddress": null,
                      "useSystemNpm": true
                    },
                    "objects": {
                      "type": "jsonl",
                      "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                      "host": "0.0.0.0",
                      "port": 9001,
                      "user": "",
                      "pass": "",
                      "noFileCache": false,
                      "connectTimeout": 2000,
                      "options": {
                        "auth_pass": null,
                        "enableReadyCheck": true,
                        "host": "0.0.0.0",
                        "port": 9001,
                        "db": 0,
                        "family": 0,
                        "password": null,
                        "autoResubscribe": false,
                        "connectionName": "host.iobroker-master",
                        "retry_max_delay": 5000
                      },
                      "maxQueue": 1000
                    },
                    "states": {
                      "type": "jsonl",
                      "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                      "host": "0.0.0.0",
                      "port": 9000,
                      "maxQueue": 1000,
                      "options": {
                        "auth_pass": null,
                        "enableReadyCheck": true,
                        "host": "0.0.0.0",
                        "port": 9000,
                        "db": 0,
                        "family": 0,
                        "password": null,
                        "autoResubscribe": false,
                        "connectionName": "host.iobroker-master",
                        "retry_max_delay": 5000
                      }
                    },
                    "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_comment": "The host running syslogd, defaults to localhost.",
                          "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                          "protocol": "udp4",
                          "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                          "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                          "facility_comment": "Syslog facility to use (Default: local0).",
                          "localhost": "iobroker",
                          "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                          "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                          "app_name_comment": "The name of the application (Default: process.title).",
                          "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                        }
                      }
                    },
                    "dataDirComment": "Always relative to iobroker.js-controller/",
                    "dataDir": "../../iobroker-data/"
                  }
                  

                  Aber wie gesagt, es muss noch etwas falsch sein. Ich hoffe, jemand kann das finden oder meine Orginaldatei im dritten Post entsprechend ändern. Danke!

                  mfg pjo123456

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @pjo123456 last edited by

                    @pjo123456 bin grad nur am handy, aber fehlen da nicht ein paar Zeilen?
                    Eigentlich sind es dich nur 3 Zeilen zum entfernen.
                    29, 62 und 106

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pjo123456 @crunchip last edited by

                      Ich glaube im Post mit der iobroker.json ist beim Kopieren etwas schiefgelaufen. Da ist ein Teil doppelt. Habe jetzt noch einmal die Sicherungskopie genommen.
                      Wenn ich einfach nur die Zeilen mit "dataDir": "f", lösche kann ich die Admin Oberfläche nicht mehr erreichen.
                      Hier noch einmal die Originaldatei:

                      {
                        "system": {
                          "memoryLimitMB": 0,
                          "hostname": "",
                          "statisticsInterval": 15000,
                          "checkDiskInterval": 300000
                        },
                        "multihostService": {
                          "enabled": false,
                          "secure": true,
                          "password": "$/aes-192-cbc:28a379506c10d56d6f67db5c2290f15d:37ee00d646c76cc95210975ac782ff1d",
                          "persist": false
                        },
                        "network": {
                          "IPv4": true,
                          "IPv6": true,
                          "bindAddress": null,
                          "useSystemNpm": true
                        },
                        "objects": {
                          "type": "jsonl",
                          "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                          "host": "0.0.0.0",
                          "port": 9001,
                          "user": "",
                          "pass": "",
                          "noFileCache": false,
                          "connectTimeout": 2000,
                          "dataDir": "f",
                          "options": {
                            "auth_pass": null,
                            "enableReadyCheck": true,
                            "host": "0.0.0.0",
                            "port": 9001,
                            "db": 0,
                            "family": 0,
                            "password": null,
                            "autoResubscribe": false,
                            "connectionName": "host.iobroker-master",
                            "retry_max_delay": 5000
                          },
                          "maxQueue": 1000
                        },
                        "states": {
                          "type": "jsonl",
                          "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                          "host": "0.0.0.0",
                          "port": 9000,
                          "maxQueue": 1000,
                          "options": {
                            "auth_pass": null,
                            "enableReadyCheck": true,
                            "host": "0.0.0.0",
                            "port": 9000,
                            "db": 0,
                            "family": 0,
                            "password": null,
                            "autoResubscribe": false,
                            "connectionName": "host.iobroker-master",
                            "retry_max_delay": 5000
                          },
                          "dataDir": "f"
                        },
                        "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_comment": "The host running syslogd, defaults to localhost.",
                              "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                              "protocol": "udp4",
                              "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                              "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                              "facility_comment": "Syslog facility to use (Default: local0).",
                              "localhost": "iobroker",
                              "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                              "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                              "app_name_comment": "The name of the application (Default: process.title).",
                              "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                            }
                          }
                        },
                        "dataDirComment": "Always relative to iobroker.js-controller/",
                        "dataDir": "../../iobroker-data/"
                      }
                      
                      

                      Und hier meine Änderungen:

                      {
                        "system": {
                          "memoryLimitMB": 0,
                          "hostname": "",
                          "statisticsInterval": 15000,
                          "checkDiskInterval": 300000
                        },
                        "multihostService": {
                          "enabled": false,
                          "secure": true,
                          "password": "$/aes-192-cbc:28a379506c10d56d6f67db5c2290f15d:37ee00d646c76cc95210975ac782ff1d",
                          "persist": false
                        },
                        "network": {
                          "IPv4": true,
                          "IPv6": true,
                          "bindAddress": null,
                          "useSystemNpm": true
                        },
                        "objects": {
                          "type": "jsonl",
                          "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                          "host": "0.0.0.0",
                          "port": 9001,
                          "user": "",
                          "pass": "",
                          "noFileCache": false,
                          "connectTimeout": 2000,
                      
                          "options": {
                            "auth_pass": null,
                            "enableReadyCheck": true,
                            "host": "0.0.0.0",
                            "port": 9001,
                            "db": 0,
                            "family": 0,
                            "password": null,
                            "autoResubscribe": false,
                            "connectionName": "host.iobroker-master",
                            "retry_max_delay": 5000
                          },
                          "maxQueue": 1000
                        },
                        "states": {
                          "type": "jsonl",
                          "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                          "host": "0.0.0.0",
                          "port": 9000,
                          "maxQueue": 1000,
                          "options": {
                            "auth_pass": null,
                            "enableReadyCheck": true,
                            "host": "0.0.0.0",
                            "port": 9000,
                            "db": 0,
                            "family": 0,
                            "password": null,
                            "autoResubscribe": false,
                            "connectionName": "host.iobroker-master",
                            "retry_max_delay": 5000
                          },
                      
                        },
                        "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_comment": "The host running syslogd, defaults to localhost.",
                              "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                              "protocol": "udp4",
                              "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                              "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                              "facility_comment": "Syslog facility to use (Default: local0).",
                              "localhost": "iobroker",
                              "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                              "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                              "app_name_comment": "The name of the application (Default: process.title).",
                              "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                            }
                          }
                        },
                        "dataDirComment": "Always relative to iobroker.js-controller/",
                        "dataDir": "../../iobroker-data/"
                      }
                      
                      
                      crunchip 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @pjo123456 last edited by

                        @pjo123456 zeile 61 ist ein Komma zu viel

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pjo123456 @crunchip last edited by

                          @crunchip OK, das Komma habe ich entfernt. Admin ist wieder erreichbar aber Flot und Vis nicht mehr.

                          crunchip 1 Reply Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @pjo123456 last edited by

                            @pjo123456 ich kann bei mir gerade nicht nachsehen wie es aussehen müsste. Bin nur am Handy.
                            Daher kann ich da nicht weiterhelfen

                            1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 last edited by

                              naja Du hast mit dem modifizierten DataDir dir ggf ein blödes EI gelegt weil DU jetzt Meta Daten an zwei verschiedenen stellen hast

                              Daher: Schau mal ob unter /opt/iobroker/node_modules/iobroker.js-controller/f/iobroker-data Daten liegen und welche

                              Schau auch ob in /opt/iobroker/node_modules/iobroker.js-controller/f/iobroker-data/files Daten liegen - da könnten jetzt deine Vis Files liegen. Das musst DU jetzt anschauen und irgendwie zusammenführen.
                              Kannst versuchen ein backup /opt/iobroker/iobroker-data/* zu machen zur sicherheit und dann kannst du versuchen /opt/iobroker/node_modules/iobroker.js-controller/f/iobrokee-data/files/* mal in /opt/iobroker/iobroker-data/files/ reinzukopieren.
                              Danach am besten noch ein "iob upload all" ausführen.

                              Die Frage ist halt wie lange das bei Dir so lief.

                              Wenn du aber pech hast ist unter /opt/iobroker/node_modules/iobroker.js-controller/f/ nichts mehr weil du durch den js.controller update ein neues npm Paket installiert hast und der das alles was "Zuviel" war weggeräumt hat. Dann kannst Du nur schauen ob Du aus der Zeit wo es falsch war ein Backup hast was du mal wegkopiert hast und was Du ggf nutzen kannst.

                              Wenn das alles nicht ist dann habe ich leider Bad news: Dann musst Du von vorne anfangen.

                              EIn "iob upload all" sollte dazu führen das alle Adapter tun. Ein pot angelegtes Vis wäre dann aber weg.

                              P 1 Reply Last reply Reply Quote 0
                              • P
                                pjo123456 @apollon77 last edited by

                                Unter /opt/iobroker/node_modules/iobroker.js-controller/f/iobroker-data habe ich die Verzeichnisse:
                                6b76665f-251f-4788-a122-830b9cbd8bcf-image.png

                                In files sieht es so aus:
                                e3f04189-7852-468f-a500-ff6b6151c7ad-image.png

                                Ich werde dann morgen mal das Kopieren probieren. Mal sehen ob es klappt.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Support us

                                ioBroker
                                Community Adapters
                                Donate
                                FAQ Cloud / IOT
                                HowTo: Node.js-Update
                                HowTo: Backup/Restore
                                Downloads
                                BLOG

                                1.1k
                                Online

                                32.1k
                                Users

                                80.6k
                                Topics

                                1.3m
                                Posts

                                5
                                24
                                951
                                Loading More Posts
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes
                                Reply
                                • Reply as topic
                                Log in to reply
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                The ioBroker Community 2014-2023
                                logo