Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    ioBroker Docker Synology startet nicht

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

      @codierknecht

      Nein, seit ich den Container beendet habe und neu starten wollte kommt die im Eingangspost eingefügte Fehlermeldung. Der Container startet nicht mehr

      1 Reply Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @Marc Berg last edited by

        @marc-berg sagte in ioBroker Docker Synology startet nicht:

        Außerdem gibt es ja im Verzeichnis /opt/iobroker/iobroker-data/backup-objects automatische Sicherungen der Objects und States. Aber auch hier: Ob dir das weiterhilft, weiß ich nicht.

        Wäre eine Idee.

        @Sweatchuck
        Auf der Synology findest Du im besagten Ordner gepackte Kopien der states.jsonl und der objects.jsonl.
        9ca78e11-ca64-4def-80ca-d0fe52cdadc1-image.png

        Die könntest Du daraus extrahieren und damit die Originale (die Du vorher zur Sicherheit anderswo hinkopierst) ersetzen. Natürlich unter dem korrekten Namen.

        3112ac25-cd01-480b-97cc-11e2c58fdc6f-image.png

        Sollte Dein ioBroker aber mit Redis laufen, bin ich raus ...

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

          @codierknecht

          Werde ich testen...

          Nur nochmal zum Verständnis:

          Die states.jsonl.gz und objects.jsonl.gz habe ich gefunden. Ich nehme dieses Daten (ein älteres Datum wo ioBroker noch funktoiniert hat?) entpacke diese und Ersetze damit die states.jsonl und objects.jsonl im Ordner iobroker-data?

          P.S. bevor ich etwas ändere werde ich den gesamten Ordner iobroker_data sichern. Somit kann ich alles probieren.

          Was ist in diesen Datei eigentlich enthalten? Die Adapter, Instanzen und Objekte?

          Wie gesagt, ich bin für jeden Tipp dankbar und werden alles probieren.

          Marc Berg Codierknecht 2 Replies Last reply Reply Quote 0
          • Marc Berg
            Marc Berg Most Active @Sweatchuck last edited by

            @sweatchuck sagte in ioBroker Docker Synology startet nicht:

            Wie gesagt, ich bin für jeden Tipp dankbar und werden alles probieren.

            Ich würde zunächst den Container im debug Modus starten und mal iob fix drüber laufen lassen. Offensichtlich gibt es ja Rechteprobleme durch das händische "Backup":

            2023-10-04 00:00:08.448  - error: host.iobroker instance system.adapter.ical.0 terminated with code 10 (CANNOT_FIND_ADAPTER_DIR)
            
            S 1 Reply Last reply Reply Quote 0
            • S
              Sweatchuck @Marc Berg last edited by

              @marc-berg

              Hallo Marc,

              ich brauche mehr Information. Bin ein absoluter Anfänger...

              Wie kann ich den Container im debug Modus starten?

              Wenn ich das geschafft habe muss unter portainer in der console vom iobroker Container iob fix eingeben?

              Glasfaser 1 Reply Last reply Reply Quote 0
              • Codierknecht
                Codierknecht Developer Most Active @Sweatchuck last edited by

                @sweatchuck sagte in ioBroker Docker Synology startet nicht:

                Was ist in diesen Datei eigentlich enthalten? Die Adapter, Instanzen und Objekte?

                Das ist im Grunde genommen die "Datenbank", von der in der Fehlermeldung die Rede ist.
                Zumindest nach meinem Verständnis.

                1 Reply Last reply Reply Quote 0
                • Glasfaser
                  Glasfaser @Sweatchuck last edited by Glasfaser

                  @sweatchuck

                  Nimm dein LOG vom 02.10. raus iobroker.2023-10-02.log.gz ,
                  es enthält Persönliche Daten !

                  Laut Log zeigt er :

                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' ......

                  JS Controller zerschossen .

                  Was mich nur wundert , das er nicht startet ..Loop

                  Aber erstmal zeige das DEBUG Log dazu .

                  in der ENV eintragen :

                  09daffb3-9a71-4cb7-b314-d228f1c9021f-grafik.png

                  siehe auch hier :

                  https://docs.buanet.de/de/iobroker-docker-image/docs/#umgebungsvariablen-env

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

                    @glasfaser

                    Habe in der ENV

                    DEBUG mit true eingetragen. Wie komme ich an das Log? Der Container startet ja nicht.

                    Glasfaser 1 Reply Last reply Reply Quote 0
                    • Glasfaser
                      Glasfaser @Sweatchuck last edited by Glasfaser

                      @sweatchuck sagte in ioBroker Docker Synology startet nicht:

                      Anbei ein Screenshot vom Log. Bitte um hilfe!

                      ist das gleich LOG wie oben !

                      Also bricht der Container zusammen , was kommt als Fehlermeldung wenn du Ihn startetst "?

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

                        @sweatchuck

                        Du kannst auch einen neuen Container erstellen und mounte dann auch die

                        docker/iobroker_data

                        in den Einstellungen vom neuen Container .

                        Hast du das auch schon versucht !?

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

                          @glasfaser

                          
                          Unselect
                                 
                          ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                          
                          ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                          
                          ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                          
                          ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                          
                          ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                          
                          -----                                                                      -----
                          
                          -----              Welcome to your ioBroker Docker container!              -----
                          
                          -----                    Startupscript is now running!                     -----
                          
                          -----                          Please be patient!                          -----
                          
                          --------------------------------------------------------------------------------
                          
                           
                          
                          --------------------------------------------------------------------------------
                          
                          -----                          System Information                          -----
                          
                          -----                    arch:                x86_64                       -----
                          
                          -----                    hostname:            iobroker                     -----
                          
                          -----                                                                      -----
                          
                          -----                          Version Information                         -----
                          
                          -----                    image:               v8.1.0                       -----
                          
                          -----                    build:               2023-09-21T23:45:32+00:00    -----
                          
                          -----                    node:                v18.17.1                     -----
                          
                          -----                    npm:                 9.6.7                        -----
                          
                          -----                                                                      -----
                          
                          -----                        Environment Variables                         -----
                          
                          -----                    AVAHI:               false                        -----
                          
                          -----                    DEBUG:               true                         -----
                          
                          -----                    PACKAGES:            nano                         -----
                          
                          -----                    SETGID:              1000                         -----
                          
                          -----                    SETUID:              1000                         -----
                          
                          --------------------------------------------------------------------------------
                          
                           
                          
                          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                          
                          !!!!                            DEBUG LOG ACTIVE                            !!!!
                          
                          !!!!               Environment variable DEBUG is set to true.               !!!!
                          
                          !!!! This will extend the logging output and may slow down container start. !!!!
                          
                          !!!!          Please make sure to deactivate if no longer needed.           !!!!
                          
                          !!!!     For more information see ioBroker Docker image documentation:      !!!!
                          
                          !!!!           https://docs.buanet.de/iobroker-docker-image/docs/           !!!!
                          
                          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                          
                           
                          
                          --------------------------------------------------------------------------------
                          
                          -----                   Step 1 of 5: Preparing container                   -----
                          
                          --------------------------------------------------------------------------------
                          
                           
                          
                          Updating Linux packages on first run... Done.
                          
                           
                          
                          PACKAGES is set. Installing the following additional Linux packages: nano
                          
                           
                          
                          nano is not installed. Installing... Done.
                          
                           
                          
                          Registering maintenance script as command... Done.
                          
                           
                          
                          --------------------------------------------------------------------------------
                          
                          -----             Step 2 of 5: Detecting ioBroker installation             -----
                          
                          --------------------------------------------------------------------------------
                          
                           
                          
                          Existing installation of ioBroker detected in "/opt/iobroker".
                          
                           
                          
                          --------------------------------------------------------------------------------
                          
                          -----             Step 3 of 5: Checking ioBroker installation              -----
                          
                          --------------------------------------------------------------------------------
                          
                           
                          
                          (Re)setting permissions (This might take a while! Please be patient!)... Done.
                          
                           
                          
                          Fixing "sudo-bug" by replacing sudo with gosu... Done.
                          
                           
                          
                          [DEBUG] Checking multihost settings... 
                          
                          [DEBUG] No multihost settings detected.
                          
                          [DEBUG] Done.
                          
                           
                          
                          [DEBUG] Checking custom objects db settings... 
                          
                          [DEBUG] No custom objects db settings detected.
                          
                          [DEBUG] Done.
                          
                           
                          
                          [DEBUG] Checking custom states db settings... 
                          
                          [DEBUG] No custom states db settings detected.
                          
                          [DEBUG] Done.
                          
                           
                          
                          Checking Database connection... Failed.
                          
                          [DEBUG] Error message: 
                          
                          [DEBUG] node:internal/modules/cjs/loader:1080
                          
                          [DEBUG]   throw err;
                          
                          [DEBUG]   ^
                          
                          [DEBUG] 
                          
                          [DEBUG] Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                          
                          [DEBUG]     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
                          
                          [DEBUG]     at Module._load (node:internal/modules/cjs/loader:922:27)
                          
                          [DEBUG]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                          
                          [DEBUG]     at node:internal/main/run_main_module:23:47 {
                          
                          [DEBUG]   code: 'MODULE_NOT_FOUND',
                          
                          BUG]   requireStack: []
                          
                          
                          }
                          
                          [DEBUG] 
                          
                          [DEBUG] Node.js v18.17.1
                          
                          Please check your configuration and try again.
                          
                          For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs).
                          
                           
                          
                          [DEBUG] Debug mode prevents the container from exiting on errors.
                          
                          [DEBUG] This enables you to investigate or fix your issue on the command line.
                          
                          [DEBUG] If you want to stop or restart your container you have to do it manually.
                          
                          [DEBUG] IoBroker is not running!
                          
                          

                          Diesmal läuft er wohl weiter aber ich komme nicht auf die ioBroker Seite

                          Glasfaser 2 Replies Last reply Reply Quote 0
                          • S
                            Sweatchuck @Glasfaser last edited by

                            @glasfaser

                            Ja, kein Erfolg.

                            Wenn ich eine leeren Ordner anlege z.B. iobroker_data_neu dann funktioniert das ganze wieder…allerdings natürlich ohne meine Daten

                            1 Reply Last reply Reply Quote 0
                            • Glasfaser
                              Glasfaser @Sweatchuck last edited by

                              @sweatchuck

                              OK , der Container startet .

                              dann melde dich im Terminal an im Portainer oder im Synology Docker Terminal und

                              dann

                              cd /opt/iobroker
                              

                              und

                              sudo -H -u iobroker npm install iobroker.js-controller
                              
                              S 2 Replies Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @Sweatchuck last edited by

                                @sweatchuck sagte in ioBroker Docker Synology startet nicht:

                                Diesmal läuft er wohl weiter aber ich komme nicht auf die ioBroker Seite

                                Brauchst kein EDIT im Beitrag machen .. ich habe es schon gesehn , das er läuft !

                                siehe oben ..

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

                                  @glasfaser

                                  E8A3AF5B-AB4A-48F1-B10D-5CC1C699A848.jpeg

                                  Glasfaser 1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @Sweatchuck last edited by

                                    @sweatchuck

                                    find "/opt/iobroker/node_modules" -type d -iname ".*-????????" ! -iname ".local-chromium" -exec rm -rf "{}" \; &> /dev/null
                                    

                                    dann nochmal versuchen

                                    1 Reply Last reply Reply Quote 0
                                    • OliverIO
                                      OliverIO @Sweatchuck last edited by

                                      @sweatchuck sagte in ioBroker Docker Synology startet nicht:

                                      @oliverio

                                      Ich verwende eine Synolgy DS 218+ mit Docker und Portainer.

                                      Was genau meinst du?

                                      Ich habe da nichts spezielles gemacht.

                                      Das Skript meckert darüber das die Verbindung zur Datenbank nicht klappt.
                                      Dann zeige mal deine Konfiguration für den Container.
                                      Hast du ein docker-compose/stacks?

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

                                        @glasfaser

                                        526877D7-9996-474E-8271-D50C80556EE5.jpeg BCAE95E2-A35D-4D95-9B3B-D378D38D49C3.jpeg 556CBEF0-0435-49CB-91BA-E47C52A0793D.jpeg

                                        Glasfaser 1 Reply Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @Sweatchuck last edited by

                                          @sweatchuck

                                          Ja ... alles gut .. ist nur Werbung

                                          Dann noch zusätzlich

                                          pkill -u iobroker
                                          iob fix
                                          

                                          Container neu starten in der Synology Weboberfläche

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

                                            @glasfaser

                                            Es geht wieder!!!

                                            Wie kann ich dir Danken?

                                            Glasfaser 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

                                            800
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            56
                                            2810
                                            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