Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ioBroker startet nicht mehr

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ioBroker startet nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Atticus last edited by

      @atticus sagte in ioBroker startet nicht mehr:

      iobroker 763 137 4.8 507568 389432 ? Rsl 14:16 0:17 iobroker.js-controller

      da läuft noch einer

      1 Reply Last reply Reply Quote 1
      • apollon77
        apollon77 @Atticus last edited by

        @atticus sagte in ioBroker startet nicht mehr:

        iobroker 763 137 4.8 507568 389432 ? Rsl 14:16 0:17 iobroker.js-controller

        Genau, da läuft noch ein conteoller Prozess, daher ost die DB gelockt. Kill den mal oder mach nochmal "iob stop" oder Reboote mal

        1 Reply Last reply Reply Quote 0
        • Max Zelmer
          Max Zelmer last edited by

          Hallo zusammen,

          ich habe ebenfalls dieses Problem.
          Ich habe heute morgen ein Update durchgeführt:

          sudo apt-get update && sudo apt-get upgrade
          

          Im Anschluss habe ich meinen Server neugestartet:

          sudo reboot -h 0
          

          Danach habe ich versucht, per Webbrowser auf meinen iobroker (also die Adminoberfläche) zuzugreifen.
          Der Browser meldet zurück: 192.168.178.10 hat eine Verbindung verweigert.

          Also habe ich versucht, den iobroker Status abzufragen:

          max@server:/opt/iobroker/iobroker-data$ iobroker status
          Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!
          

          Ich habe mich an den Dingen orientiert, die hierzu bereits geschrieben wurden. Leider ohne Erfolg.
          Ich habe dann den iobroker gestoppt und geschaut, ob noch ein Prozess dazu läuft. Leider nein:

          max@server:/opt/iobroker/iobroker-data$ iob stop
          max@server:/opt/iobroker/iobroker-data$ ps auxwww |grep io
          root          11  0.0  0.0      0     0 ?        S    11:00   0:00 [migration/0]
          root          17  0.0  0.0      0     0 ?        S    11:00   0:00 [migration/1]
          root          78  0.0  0.0      0     0 ?        I<   11:00   0:00 [blkcg_punt_bio]
          root          92  0.0  0.0      0     0 ?        I<   11:00   0:00 [vfio-irqfd-clea]
          root         398  0.0  0.0      0     0 ?        I<   11:00   0:00 [rpciod]
          root         399  0.0  0.0      0     0 ?        I<   11:00   0:00 [xprtiod]
          message+     661  0.0  0.1   7800  4572 ?        Ss   11:00   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
          max         4391  0.0  0.0   6432   656 pts/0    S+   11:36   0:00 grep --color=auto io
          

          Und jetzt weiß ich auch absolut nicht mehr weiter 😞

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

            @max-zelmer wenn kein Prozess mehr läuft, vllt ist der Port 9000 anderweitig belegt

            netstat -tulpen
            
            1 Reply Last reply Reply Quote 0
            • sigi234
              sigi234 Forum Testing Most Active @Max Zelmer last edited by

              @max-zelmer

              Hast du Logitech Media Server laufen?

              1 Reply Last reply Reply Quote 0
              • Max Zelmer
                Max Zelmer last edited by Max Zelmer

                Hi,

                @sigi234 ich habe keinen Logitech Media Server am laufen.

                Ich konnte mir mittlerweile helfen, in dem ich die node_modules kopiert habe in node_modules_. Dann habe ich mit Force den NPM-Cache geleert, NPM und ein paar Adapter neu installiert.
                Konkret bin ich nach dieser Anleitung vorgegangen:
                https://forum.iobroker.net/topic/13693/howto-anleitung-reset-der-iobroker-installation-mit-beibehaltung-der-konfiguration

                Also kurz gesagt: mein ioBroker läuft wieder. Keine Ahnung, was da los war ...

                Edit: Nachdem der ioBroker wieder lief, habe ich mein Backup von letzter Nacht per Backitup wieder eingespielt.

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

                  @max-zelmer WIeviele objekte und states hast du?

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

                    @apollon77 Laut der Seite "Objekte":
                    Objekte: 10056, Zustände: 9100

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

                      @max-zelmer Ok, das ist jetzt nicht mega viel. Ok hast es ja gelöst bekommen.

                      1 Reply Last reply Reply Quote 0
                      • F
                        fraso @Atticus last edited by fraso

                        Hallo,

                        ich habe das gleiche Problem.
                        Admin 4.0.21
                        Mein iobroker startete nachts autmatisch neu (normaler, tägl. restart)

                        Auffällig finde ich das die states.jsonl so groß ist

                        -rw-rwxr--+  1 iobroker iobroker 25996559277 15. Apr 05:08 states.jsonl
                        

                        Meine Lösung:
                        löschen der Datei.
                        iobroker startet normal, die states sind leer...
                        dann RESTORE vom iobroker backup von der selben nacht
                        iobroker läuft wieder

                        Hier die Datei states.jsonl nach dem Restore:

                        -rw-rw-r--+  1 iobroker iobroker     7621579 15. Apr 08:49 states.jsonl
                        

                        Schon nach kurzer Zeit wächst die wieder.

                        -rw-rw-r--+  1 iobroker iobroker     8443910 15. Apr 08:54 states.jsonl
                        

                        Für Hinweise wie ich das in Zukunft verhindern kann wäre ich sehr dankbar. Das ist mir jetzt schon 1-2x in der letzten Woche passiert.

                        Fing an als ich modbus für meine Vestel zum Überschußladen programmiert habe (was wunderbar klappt). Allerdings polled mein Blockly dort alle 25ms-29ms die Daten. Vllt. ist das das Übel. Ich schalte das mal aus. Oder was meint Ihr? Kann es daran liegen?

                        ec72c37c-daa9-4b45-902a-64123fc1c485-image.png e2976975-44fd-43d4-a61b-01349380bd09-image.png

                        States Info:

                        [DEBUG] [iobroker] - host.NUCioBroker 20775 states saved
                        
                        [DEBUG] [iobroker] - host.NUCioBroker 31807 objects saved
                        

                        Und eine Frage: nur die states.jsonl habe ich in meinem Backup nicht gefunden... wo steht die? (fürs nächste mal 😞 )

                        Danke.

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

                          @fraso bitte zeige mal deine /opt/iobroker/iobroker-data/iobroker.json und da die Abschnitte mit States und objects.

                          Side question:

                          Mein iobroker startete nachts autmatisch neu (normaler, tägl. restart)

                          Warum das eigentlich?

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            fraso last edited by

                            @apollon77 sagte in ioBroker startet nicht mehr:

                            Warum das eigentlich?

                            Das kann ich Dir nicht beantworten.
                            Ob ich das eingestellt habe oder bei der Installation vorgegeben war... ich wüßte jetzt nicht mal wo ich aus/einschalten kann.

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

                              @apollon77 sagte in ioBroker startet nicht mehr:

                              bitte zeige mal deine /opt/iobroker/iobroker-data/iobroker.json und da die Abschnitte mit States und objects.

                              e6iob@NUCioBroker:~$ cat /opt/iobroker/iobroker-data/iobroker.json
                              {
                                "system": {
                                  "memoryLimitMB": 0,
                                  "hostname": "",
                                  "statisticsInterval": 15000,
                                  "statisticsIntervalComment": "Interval how often the counters for input/output in adapters and controller will be updated",
                                  "checkDiskInterval": 300000,
                                  "checkDiskIntervalComment": "Interval how often the disk size will be checked",
                                  "instanceStartInterval": 2000,
                                  "noChmodComment": "Flag to test new feature with no chmod call. Must be deleted later and noChmod must be mainline (2018.06.04)",
                                  "compact": false,
                                  "compactComment": "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,
                                  "allowShellCommandsComment": "Allow execution of \"shell\" sendToHost commands",
                                  "memLimitWarn": 100,
                                  "memLimitWarnComment": "If the available RAM is below this threshold on adapter start, a warning will be logged.",
                                  "memLimitError": 50,
                                  "memLimitErrorComment": "If the available RAM is below this threshold on adapter start, an error will be logged."
                                },
                                "multihostService": {
                                  "enabled": false,
                                  "secure": true,
                                  "password": ""
                                },
                                "objects": {
                                  "type": "jsonl",
                                  "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                                  "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,
                                    "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
                                    "hours": 48,
                                    "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
                                    "period": 120,
                                    "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
                                    "path": "",
                                    "pathComment": "Absolute path to backup directory or empty to backup in data directory"
                                  },
                                  "jsonlOptions": {
                                    "autoCompress": {},
                                    "throttleFS": {}
                                  }
                                },
                                "states": {
                                  "type": "jsonl",
                                  "typeComment": "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,
                                    "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
                                    "hours": 48,
                                    "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
                                    "period": 120,
                                    "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
                                    "path": "",
                                    "pathComment": "Absolute path to backup directory or empty to backup in data directory"
                                  },
                                  "jsonlOptions": {
                                    "autoCompress": {},
                                    "throttleFS": {}
                                  }
                                },
                                "log": {
                                  "level": "info",
                                  "maxDays": 3,
                                  "noStdout": true,
                                  "transport": {
                                    "file1": {
                                      "type": "file",
                                      "enabled": true,
                                      "filename": "log/iobroker",
                                      "fileext": ".log",
                                      "maxsize": null,
                                      "maxFiles": null,
                                      "maxSize": null,
                                      "level": ""
                                    },
                                    "syslog1": {
                                      "type": "syslog",
                                      "enabled": false,
                                      "host": "localhost",
                                      "hostComment": "The host running syslogd, defaults to localhost.",
                                      "portComment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                      "protocol": "udp4",
                                      "protocolComment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                      "pathComment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                                      "facilityComment": "Syslog facility to use (Default: local0).",
                                      "localhost": "iobroker",
                                      "localhostComment": "Host to indicate that log messages are coming from (Default: localhost).",
                                      "sysLogTypeComment": "The type of the syslog protocol to use (Default: BSD).",
                                      "app_nameComment": "The name of the application (Default: process.title).",
                                      "eolComment": "The end of line character to be added to the end of the message (Default: Message without modifications).",
                                      "level": "",
                                      "facility": ""
                                    },
                                    "seq1": {
                                      "type": "seq",
                                      "enabled": false,
                                      "serverUrl": "http://IP:PORT",
                                      "serverUrlComment": "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": "",
                                      "apiKeyComment": "The apiKey of the seq system",
                                      "level": "",
                                      "eol": ""
                                    }
                                  }
                                },
                                "plugins": {},
                                "dataDir": "../../iobroker-data/"
                              }e6iob@NUCioBroker:~$ 
                              
                              
                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @fraso last edited by

                                @fraso ok. Da ist in States und objects jeweils ein Bereich mit jsonOptions mit quasi zwei leeren Einträgen. Bitte wirf den kompletten jsonlOptions Teil raus. Und schau das nach dem } davor auch das Komma am Ende weg ist. Danach sollte alles wieder tun wie es soll.

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

                                  @apollon77

                                  Kurze Info. Startet wieder ganz normal nachts durch.
                                  Wie gesagt, nicht der NUC macht ein stummes reboot sonder der iobroker wird beendet und dann neu gestartet. warum weiß ich aber immer noch nicht 🙂

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

                                    @fraso sagte in ioBroker startet nicht mehr:

                                    sonder der iobroker wird beendet und dann neu gestartet

                                    von alleine macht er das ja nicht, also muss du das ja irgendwo "programmiert" haben
                                    auf was genau läuft der iobroker?

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fraso @crunchip last edited by

                                      @crunchip

                                      Hi, als "Alleininstallation" zusammen mit motioneye. (Windows gekillt).
                                      Sonst nix drauf.

                                      Was genau er macht weiß ich gar nicht.

                                      Debian GNU/Linux 11

                                      Intel Nuc Mini Komplett PC, Intel Core i3-10110U 2X 4,10 GHz, 16 GB RAM, 256 GB SSD

                                      Jetzt wo ich mich aufgrund der Nachfrage damit beschäftige bin ich mir nicht sicher ob wirklich der iobroker neu startet. Ich habe das angenommen da mir Telegram diese Nachricht sendet. Ich kam nur drauf, da nach der Meldung "beendet" iobroker eben nicht mehr lief. Mit den oben beschriebenen Effekten.

                                      83348616-d2d9-4be6-ba9c-7b6bceffd628-image.png

                                      Im Telegram Adapter habe ich diesen Text eingetragen, der eigentlich heißen müßte: Adapter Telegram wurde beendet / gestartet.

                                      f0df53af-8553-430e-9fb2-04e13444f722-image.png

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

                                        @fraso hier ausschalten
                                        1edb8391-930a-452f-bf77-2985941cdfce-image.png

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

                                          Ansonsten einfach ins Log File schauen, liegt auf Platte unter /opt/iobroker/log/... ... wenn der Controller restarted und auch sonst alles findet man dort

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            fraso last edited by

                                            @apollon77

                                            Ahhhh. ein Cronjob. OK. Ausgeschaltet. Danke.

                                            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.0k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            123
                                            11642
                                            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