Navigation

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

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    ioBroker startet nach Stromausfall nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SchAndy last edited by SchAndy

      Hallo zusammen,
      ich habe den Thread zum Stromausfall schon gelesen und abgearbeitet aber leider hat es nicht geholfen.
      Ich habe auch zusätzlich eine andere Ausgabe aus dem Befehl iobroker status:

      pi@ioBrokerRaspi:/ $ iobroker status
      Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
      

      Dazu gibt es auch eine Thread aber der Thread ist recht unübersichtlich, da zwischen drin auch plötzlich andere sachen behandelt werden und da ich diesen nicht auch noch Kapern möchte, hier ein neuer.

      Also fehler wie folgt, meine USV hat aus gründen der "Dummheit" versagt und mein Pi4 mit ioBroker, ist dadurch zwei mal innerhalb von ca. 10 sek. vom Strom getrennt gewesen. Ergebnis daraus ist obige Meldung.
      in den Logs finde ich immer da gleich wie hier:

      2022-11-02 10:49:48.978  - ESC[31merrorESC[39m: host.ioBrokerRaspi No connection to databases possible, restart
      2022-11-02 10:49:48.995  - ESC[32minfoESC[39m: host.ioBrokerRaspi iobroker _restart
      2022-11-02 10:49:54.700  - ESC[32minfoESC[39m: host.ioBrokerRaspi iobroker.js-controller version 4.0.23 js-controller starting
      2022-11-02 10:49:54.707  - ESC[32minfoESC[39m: host.ioBrokerRaspi Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
      2022-11-02 10:49:54.708  - ESC[32minfoESC[39m: host.ioBrokerRaspi hostname: ioBrokerRaspi, node: v12.22.12
      2022-11-02 10:49:54.709  - ESC[32minfoESC[39m: host.ioBrokerRaspi ip addresses: 10.10.39.179 fd00::a7a5:f13:8067:28ec 2001:16b8:179d:e900:4ab9:ab45:3ee2:b3bf fe80::fef5:4b50:9fe6:a11f 172.19.0.1 fe80::42:d3ff:fed6:91f6 169.254.87.141 fe80::4b84:e42d:7a01:3d10
      2022-11-02 10:50:24.731  - ESC[31merrorESC[39m: host.ioBrokerRaspi No connection to databases possible, restart
      2022-11-02 10:50:24.748  - ESC[32minfoESC[39m: host.ioBrokerRaspi iobroker _restart
      2022-11-02 10:50:30.411  - ESC[32minfoESC[39m: host.ioBrokerRaspi iobroker.js-controller version 4.0.23 js-controller starting
      2022-11-02 10:50:30.418  - ESC[32minfoESC[39m: host.ioBrokerRaspi Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
      2022-11-02 10:50:30.418  - ESC[32minfoESC[39m: host.ioBrokerRaspi hostname: ioBrokerRaspi, node: v12.22.12
      2022-11-02 10:50:30.419  - ESC[32minfoESC[39m: host.ioBrokerRaspi ip addresses: 10.10.39.179 fd00::a7a5:f13:8067:28ec 2001:16b8:179d:e900:4ab9:ab45:3ee2:b3bf fe80::fef5:4b50:9fe6:a11f 172.19.0.1 fe80::42:d3ff:fed6:91f6 169.254.87.141 fe80::4b84:e42d:7a01:3d10
      

      ich habe schon folgendes abgearbeitet:
      https://forum.iobroker.net/topic/43325/mini-howto-cannot-find-view-system-for-search-host?_=1616096619995

      keine Änderung.

      Jemand eine Idee? oder einfach Neuinstallation und Backup rein spielen?

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @SchAndy last edited by

        @schandy sagte in ioBroker startet nach Stromausfall nicht:

        Jemand eine Idee? oder einfach Neuinstallation und Backup rein spielen?

        Ist vermutlich die schnellere Variante, wenn ein aktuelles Backup vorhanden ist. In diesem Zug kannst/solltest du auch die nodejs auf v16 umstellen.

        S 1 Reply Last reply Reply Quote 0
        • S
          SchAndy @Thomas Braun last edited by

          @thomas-braun erledigt. Hab einfach neu installiert, Backup rein fertig.

          S 1 Reply Last reply Reply Quote 0
          • S
            SchAndy @SchAndy last edited by

            jetzt habe ich ein anderes Problem.. Ich hatte zur sicherheit einfach mal den iobroker fix ausgeführt. Dann habe ich Meldungen bekommen, meine Speicherkarte sei voll. da war ich erstmal überrascht...
            Und tatsächlich, df sagt, Karte voll warum auch immer... bisschen aufgeräumt und dann erstmal einen reboot gemacht.
            jetzt funktioniert kein Befehl mehr mit iobroker.

            systemctl sagt mir folgendes:

            pi@ioBrokerRaspi:/opt/iobroker $ systemctl status iobroker
            ● iobroker.service
               Loaded: bad-setting (Reason: Unit iobroker.service has a bad unit file setting.)
               Active: inactive (dead)
            

            ich kann auch nicht Restart machen.

            was kann ich tun?

            Thomas Braun 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @SchAndy last edited by

              @schandy sagte in ioBroker startet nach Stromausfall nicht:

              was kann ich tun?

              Da dürfte es in der Datei
              /etc/systemd/system/multi-user.target.wants/iobroker.service
              Ungereimtheiten geben.

              S 1 Reply Last reply Reply Quote 0
              • S
                SchAndy @Thomas Braun last edited by

                @thomas-braun
                in der datei ist gar nichts drin. Komplett leer

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @SchAndy last edited by

                  @schandy

                  Trag das ein:

                  [Unit]
                  Description=ioBroker Server
                  Documentation=http://iobroker.net
                  After=network.target redis.service influxdb.service mysql-server.service mariadb-server.service
                  Wants=redis.service influxdb.service mysql-server.service mariadb-server.service
                  
                  [Service]
                  Type=simple
                  User=iobroker
                  Environment="NODE=$(which node)"
                  ExecStart=/usr/bin/bash -c '${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js'
                  Restart=on-failure
                  RestartSec=3s
                  
                  [Install]
                  WantedBy=multi-user.target
                  
                  1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @SchAndy last edited by

                    @schandy sagte in ioBroker startet nach Stromausfall nicht:

                    Karte voll warum auch immer... bisschen aufgeräumt

                    Was soll das genau heißen?
                    Wo waren die dicken Hunde und warum?
                    Was hast du da gelöscht?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SchAndy @Thomas Braun last edited by

                      @thomas-braun

                      nach dem eintragen und reboot kommt nur noch das im journal:

                      Nov 04 11:16:04 ioBrokerRaspi systemd[3433]: iobroker.service: Failed at step EXEC spawning /usr/bin/bash: No such file or directory
                      Nov 04 11:16:04 ioBrokerRaspi systemd[3433]: iobroker.service: Failed to execute command: No such file or directory
                      Nov 04 11:16:04 ioBrokerRaspi systemd[1]: Started ioBroker Server.
                      Nov 04 11:16:04 ioBrokerRaspi systemd[1]: Stopped ioBroker Server.
                      Nov 04 11:16:04 ioBrokerRaspi systemd[1]: iobroker.service: Scheduled restart job, restart counter is at 42.
                      Nov 04 11:16:04 ioBrokerRaspi systemd[1]: iobroker.service: Service RestartSec=3s expired, scheduling restart.
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: iobroker.service: Failed with result 'exit-code'.
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: iobroker.service: Main process exited, code=exited, status=203/EXEC
                      Nov 04 11:16:01 ioBrokerRaspi systemd[3388]: iobroker.service: Failed at step EXEC spawning /usr/bin/bash: No such file or directory
                      Nov 04 11:16:01 ioBrokerRaspi systemd[3388]: iobroker.service: Failed to execute command: No such file or directory
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: Started ioBroker Server.
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: Stopped ioBroker Server.
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: iobroker.service: Scheduled restart job, restart counter is at 41.
                      Nov 04 11:16:01 ioBrokerRaspi systemd[1]: iobroker.service: Service RestartSec=3s expired, scheduling restart.
                      Nov 04 11:15:58 ioBrokerRaspi systemd[1]: iobroker.service: Failed with result 'exit-code'.
                      Nov 04 11:15:58 ioBrokerRaspi systemd[1]: iobroker.service: Main process exited, code=exited, status=203/EXEC
                      Nov 04 11:15:58 ioBrokerRaspi systemd[3373]: iobroker.service: Failed at step EXEC spawning /usr/bin/bash: No such file or directory
                      Nov 04 11:15:58 ioBrokerRaspi systemd[3373]: iobroker.service: Failed to execute command: No such file or directory
                      

                      gelöscht habe ich Ordner im Download Verzeichnis, was ich irgendwann mal als temp. Verzeichnis dahin kopiert habe. Also nichts aus dem System selber.

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @SchAndy last edited by

                        @schandy sagte in ioBroker startet nach Stromausfall nicht:

                        /usr/bin/bash

                        Schlecht wenn es die nicht geben sollte...

                        ls -la /usr/bin/bash
                        

                        sagt?

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          SchAndy @Thomas Braun last edited by

                          @thomas-braun

                          pi@ioBrokerRaspi:~ $ ls -la /usr/bin/bash
                          ls: Zugriff auf '/usr/bin/bash' nicht möglich: Datei oder Verzeichnis nicht gefunden
                          

                          Aber warum ist das plötzlich so...?

                          Thomas Braun 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @SchAndy last edited by

                            @schandy sagte in ioBroker startet nach Stromausfall nicht:

                            Aber warum ist das plötzlich so...?

                            Das weiß ich nicht. Hab ja dein System nicht 'aufgeräumt' oder hart vom Strom genommen...

                            Mach es neu, da wirst du vermutlich vom Hölzchen aufs Stöckchen kommen, wenn du das restaurieren willst. Wer weiß wo es da überall Baustellen gibt.
                            Neues Installationsmedium würde ich auch empfehlen, falles es eine SD-Karte sein sollte.

                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @SchAndy last edited by

                              @schandy

                              dmesg -T | grep -i ext4
                              

                              sagt?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                SchAndy @Thomas Braun last edited by

                                @thomas-braun sagte in ioBroker startet nach Stromausfall nicht:

                                dmesg -T | grep -i ext4

                                pi@ioBrokerRaspi:/opt/iobroker $ dmesg -T | grep -i ext4
                                [Fr Nov  4 11:13:40 2022] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=DC:A6:32:7F:2C:98 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
                                [Fr Nov  4 11:13:41 2022] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
                                [Fr Nov  4 11:13:41 2022] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
                                [Fr Nov  4 11:13:43 2022] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @SchAndy last edited by

                                  @schandy

                                  Das ist okay. Hatte vermutet da stünde anderes drin.

                                  Aber offenbar ist da doch irgendwas kaputt.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    SchAndy @Thomas Braun last edited by SchAndy

                                    @thomas-braun mh..
                                    Komisch halt, dass es erst so ist, nachdem ich iobroker fix ausgeführt habe.. vorher lief der iobroker noch... Und jetzt ist er kaputt.
                                    Neues System aufsetzen wird warten müssen. Dafür brauche ich Zeit, weil dann muss ich auch mein Homematic im docker neu aufsetzen..

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @SchAndy last edited by

                                      @schandy sagte in ioBroker startet nach Stromausfall nicht:

                                      vorher lief der iobroker noch... Und jetzt ist er kaputt.

                                      Der fixer macht aber den ioBroker nicht kaputt. Im Gegenteil.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        SchAndy @Thomas Braun last edited by

                                        @thomas-braun
                                        Mag sein, ich kann nur sagen wie es war. Ich habe sonst keine System Daten gelöscht. Evtl konnte der fixer ja irgendwas nicht auf die Karte schreiben weiß der Geier..

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @SchAndy last edited by

                                          @schandy sagte in ioBroker startet nach Stromausfall nicht:

                                          Evtl konnte der fixer ja irgendwas nicht auf die Karte schreiben

                                          möglich, wenn

                                          nach Stromausfall

                                          das Dateisystem zerschossen war

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            SchAndy @Homoran last edited by

                                            ich habe jetzt mal iobroker neu installiert nochmal einfach so. Alte daten umbenannt in iobroker_
                                            dann installiert. Restore, läuft.. warum auch immer

                                            S 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

                                            592
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            21
                                            888
                                            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