Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut)

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut)

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

      @smartboart Kannst du deine Datei mal vollständig zeigen? Mir sieht es aus als fehlt da was im Vergleich zum Screenshot.

      Ansonsten probiere das Fixer-Skript mal aus, das sollte eigentlich alles richten.

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

        Habe gestern das image wieder hergestellt und mein backup installiert um zu schauen ob es die Datei überhaupt gibt. /lib/systemd/system/iobroker.service
        Die Datei ist im ursprünglichen Zustand nicht vorhanden. Habe auch eine ältere Installation auf meinem Tinker. Aber alle Updates durchgeführt. Also alles aktuell ebenfalls iobroker und adapter auf latest.
        In dem Zustand funktioniert alles tadellos. Nur der langsame reboot und shutdown nach umstellung auf redis im Multihostsystem...Muss die datei acuh in älteren installationen vorhanden sein? Ist das Fixer script nicht nur für Installationen nach der neuen Anleitung?

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer last edited by

          Dann hast du wahrscheinlich noch eine init.d-basierte Installation. Öffne mal die Datei /etc/init.d/iobroker.sh mit dem Editor. Dort sollte zu Beginn soetwas stehen:

          #!/bin/bash
          ### BEGIN INIT INFO
          # Provides:          iobroker.sh
          # Required-Start:    \$network \$local_fs \$remote_fs
          # Required-Stop:     \$network \$local_fs \$remote_fs
          # Default-Start:     2 3 4 5
          # Default-Stop:      0 1 6
          # Short-Description: starts ioBroker
          # Description:       starts ioBroker
          

          Ändere das zu

          #!/bin/bash
          ### BEGIN INIT INFO
          # Provides:          iobroker.sh
          # Required-Start:    \$network \$local_fs \$remote_fs
          # Required-Stop:     \$network \$local_fs \$remote_fs
          # Should-Start:      redis-server
          # Should-Stop:       redis-server
          # Default-Start:     2 3 4 5
          # Default-Stop:      0 1 6
          # Short-Description: starts ioBroker
          # Description:       starts ioBroker
          

          (also die beiden Zeilen mit redis-server einfügen).

          smartboart 2 Replies Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            @AlCalzone Sollte der installations-Fixer das nicht fixen?

            Homoran AlCalzone 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @apollon77 last edited by

              @apollon77
              Aber nur bei neuen Installationen.

              @smartboart sagte in IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut):

              Ist das Fixer script nicht nur für Installationen nach der neuen Anleitung?

              Die gerade von @AlCalzone gepostete Anleitung gilt für npm instal... Installationen

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

                @apollon77 Ja sollte er, aber er ersetzt vermutlich die init.d mit systemd. Die schnelle Lösung für @smartboart sind die beiden Zeilen.
                Vermutlich lohnt sich dennoch ein Backup + Fixer.

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

                  @AlCalzone dann im Fixer immer auch die anderen init-System Files löschen Und nur das relevante neue anlegen?

                  1 Reply Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer last edited by

                    Wird schon längst so gemacht 🙂

                    1 Reply Last reply Reply Quote 0
                    • smartboart
                      smartboart @AlCalzone last edited by

                      @AlCalzone said in IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut):

                      Should-Start: redis-server

                      Should-Stop: redis-server

                      vielen Lieben Dank für den Tipp...werde ich am WE mal ausprobieren....
                      Unbenannt.PNG

                      1 Reply Last reply Reply Quote 0
                      • smartboart
                        smartboart @AlCalzone last edited by

                        @AlCalzone said in IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut):

                        Should-Start: redis-server

                        Should-Stop: redis-server

                        super das hats gebracht! Vielen Dank der Tipp war Gold wert.
                        Kann mir kurz noch einer erklären warum ich das fixer script trotzdem noch mal laufen lassen sollte?
                        Mein System läuft absolut stabil...

                        AlCalzone 1 Reply Last reply Reply Quote 0
                        • AlCalzone
                          AlCalzone Developer @smartboart last edited by

                          @smartboart sagte in IObroker VM braucht ewig lange zum runterfahren (Grund Redis - Erneut):

                          Mein System läuft absolut stabil...

                          Brauchst du nicht unbedingt. Wenn bei dir wirklich alles problemlos läuft, kannst du es auch erst mal lassen.

                          Ins Fixer-Skript und den neuesten Installer ist einiges an Erfahrung eingeflossen, was die Rechte-Problematiken auf neueren Systemen (insbesondere wegen npm) angeht. Ausführen als Root (sudo iobroker start, etc..., was eine Sicherheitslücke darstellt) und EACCES-Probleme bei Installationen sind damit Geschichte.

                          1 Reply Last reply Reply Quote 0
                          • H
                            hennerich last edited by

                            Moin zusammen,

                            ja ich weiß, dieses Thema ist schon paar Jahre alt. Der Issue jedoch ist (zumindest bei mir) noch aktuell.
                            Wenn ich auf der Konsole ioBroker stop machen möchte (z.B. bei Updates), dann dauert das Stoppen bis zu 5min bei mir.
                            Jetzt wollte ich gerne diesen Tipp hier ausprobieren, nur gibts die Datei /etc/init.d/iobroker.sh nicht mehr.
                            Und ja, es gab vor etlicher Zeit mal die Umstellung auf diesen Service. Ich weiß trotzdem nicht, wo ich denn jetzt das Redis Zeug ausschalten kann, damit das schneller geht.
                            Mit dem Installation Fixer hat das jedenfalls nicht funktioniert.

                            Danke und Grüße
                            Henri

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

                              systemctl status iobroker sagt dir wo das service File in aktuellen Environments liegt.

                              Bildschirmfoto 2022-02-03 um 11.08.09.png

                              Am Ende das editieren und dann

                              systemctl daemon-reload zum "speichern" des genderten servcie files

                              H 1 Reply Last reply Reply Quote 1
                              • H
                                hennerich @apollon77 last edited by

                                @apollon77
                                Danke dir apollon.
                                Darf ich dich noch mal fragen, was genau ich in der Datei ändern muss, damit dieses "Redis/ langsames Herunterfahren" abgestellt wird?

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

                                  @hennerich Also an sich sollte da sdhcon alles drin sein ... iobroker.fix schreibt das an sich neu.

                                  Unter "After" und "Wants" in der ersten Sektion muss redis.service drin sein ... anaonsten musst du schauen ob der bei dir vllt anders heisst?

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

                                    This post is deleted!
                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      hennerich @apollon77 last edited by

                                      @apollon77
                                      Hey, so sieht das File bei mir aus:

                                      [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=/bin/bash -c '${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js'
                                      Restart=on-failure
                                      
                                      [Install]
                                      WantedBy=multi-user.target
                                      
                                      apollon77 1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @hennerich last edited by

                                        @hennerich und so sollte es aussehen und so tut es bei mir

                                        1 Reply Last reply Reply Quote 1
                                        • H
                                          hennerich @apollon77 last edited by

                                          This post is deleted!
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @hennerich last edited by apollon77

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

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

                                            468
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            abhängigkeit redis-server
                                            7
                                            31
                                            1754
                                            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