Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Synology Docker]Iobroker startet nicht (no database)

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [Synology Docker]Iobroker startet nicht (no database)

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

      @thomas-braun said in [Synology Docker]Iobroker startet nicht (no database):

      @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

      ip addresses: 172.17.0.2

      Wasn das für eine IP?
      Die ist nicht aus dem Privaten IP Pool.

      Die wurde automatisch von Docker vergeben. Ist nur ne interne Docker IP. Von "außen" lokal ist der Docker/iobroker mit 192.168.115.252 erreichbar (Synology IP) Port Weiterleitung steht auch, bin ja den Wizard durchgegangen

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

        @homoran
        Ah Sorry, falsch verstanden. Habe den js-controller install Befehl erneut ausgeführt

        root@iobroker:/opt/iobroker# iobroker -H npm install iobroker.js-controller                                                                                                                         
        No connection to databases possible ...                                                                                                                                                             
        root@iobroker:/opt/iobroker#                                                                                                                                                                        
        root@iobroker:/opt/iobroker# iobroker start                                                                                                                                                         
        Starting iobroker controller daemon...                                                                                                                                                              
        iobroker controller daemon started. PID: 5414                                                                                                                                                       
        root@iobroker:/opt/iobroker# iobroker -H npm install iobroker.js-controller                                                                                                                         
        Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!                                                                                   
        root@iobroker:/opt/iobroker# 
        

        Kann ich die /opt/iobroker/iobroker-data/states.jsonl auch einfach löschen und noch ma probieren?

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

          @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

          iobroker -H npm install iobroker.js-controller

          Was soll der Befehl bezwecken?

          Vermutlich sollte das

          sudo -H -u iobroker npm install iobroker.js-controller
          

          werden.
          Und meld dich nicht als root an sonder als user. Geht wohl auch auf einem Synology-Docker.

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

            @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

            root@iobroker:/opt/iobroker# iobroker start

            Das macht man nicht im Container !!!!!

            Der Container wird neu gestartet über die Syn Oberfläche !!!

            Zeige mal

            ps auxwww |grep io
            
            S 1 Reply Last reply Reply Quote 0
            • Glasfaser
              Glasfaser @Thomas Braun last edited by Glasfaser

              @thomas-braun sagte in [Synology Docker]Iobroker startet nicht (no database):

              Und meld dich nicht als root an sonder als user. Geht wohl auch auf einem Synology-Docker.

              Das ist mir neu , es sei denn @andre hat da was umgebaut in der neuesten Beta Version !

              1 Reply Last reply Reply Quote 0
              • S
                SimKa last edited by

                @thomas-braun
                Habe ich in dem Thread gelesen
                https://forum.iobroker.net/topic/53378/server-cannot-start-inmem-objects-on-port-9001/50
                Post 50 von Jaridian

                Hat leider auch nicht funktioniert

                root@iobroker:/opt/iobroker# sudo -H -u iobroker npm install iobroker.js-controller                                                                                                                 
                (###########⠂⠂⠂⠂⠂⠂⠂) ⠹ reify:@serialport/parser-inter-byte-timeout: http fetch GET 200 https://registry.npmjs.org/@serialport/parser-inter-byte-timeout/-/parser-inter-byte-timeout-10.3.0.t
                (###########⠂⠂⠂⠂⠂⠂⠂) ⠧ reify:@serialport/bindings-interface: http fetch GET 200 https://registry.npmjs.org/@serialport/bindings-interface/-/bindings-interface-1.2.2.tgz 11973ms (cache miss
                npm ERR! code 22                                                                                                                                                                                    
                npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller                                                                                                                                     
                npm ERR! command failed                                                                                                                                                                             
                npm ERR! command sh -c node iobroker.js setup first                                                                                                                                                 
                npm ERR! No connection to databases possible ...                                                                                                                                                    
                                                                                                                                                                                                                    
                npm ERR! A complete log of this run can be found in:                                                                                                                                                
                npm ERR!     /opt/iobroker/.npm/_logs/2022-07-04T18_45_02_222Z-debug-0.log                                                                                                                          
                root@iobroker:/opt/iobroker#  
                

                2022-07-04T18_45_02_222Z-debug-0.log

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

                  @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                  ps auxwww |grep io

                  root@iobroker:/opt/iobroker# ps auxwww |grep io                                                                                                                                                     
                  root         1  0.0  0.0   7296   876 pts/0    Ss+  19:34   0:00 /bin/bash /opt/scripts/iobroker_startup.sh                                                                                         
                  root      7141  0.0  0.0   6504   968 pts/1    S+   20:53   0:00 grep io                                                                                                                            
                  root@iobroker:/opt/iobroker# 
                  
                  Glasfaser 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @SimKa last edited by

                    @simka

                    Hast du jetzt den Container mal neu gestartet !?

                    Nutzt du Portainer !?

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

                      @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                      @simka

                      Hast du jetzt den Container mal neu gestartet !?

                      Nutzt du Portainer !?

                      Habs eben neugestartet, log hänge ich an

                      Portainer sagt mir nichts

                      iobroker.2022-07-04 (11).log

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

                        @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

                        Habe ich in dem Thread gelesen

                        Aber nicht richtig. Der Befehl dort lautet anders.
                        Nämlich so wie ich das oben geschrieben habe.

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

                          @thomas-braun said in [Synology Docker]Iobroker startet nicht (no database):

                          @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

                          Habe ich in dem Thread gelesen

                          Aber nicht richtig. Der Befehl dort lautet anders.
                          Nämlich so wie ich das oben geschrieben habe.

                          Hab den Befehl nach deinen Angaben ausgeführt, aber auch gleicher Fehler.

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

                            @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

                            Habs eben neugestartet, log hänge ich an

                            ist der Befehl den ich dir gegeben habe vor oder nach dem Container neustart.

                            ps auxwww |grep io
                            

                            Zeige noch mal !

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

                              @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                              ps auxwww |grep io

                              War vor dem Neustart
                              Jetzt noch ma nach einem Neustart 🙂

                              @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                              @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

                              Habs eben neugestartet, log hänge ich an

                              ist der Befehl den ich dir gegeben habe vor oder nach dem Container neustart.

                              ps auxwww |grep io
                              

                              Zeige noch mal !

                              War vor dem Neustart
                              Jetzt aber nach dem Neustart 🙂

                              root@iobroker:/opt/iobroker# ps auxwww |grep io                                                                                                                                                     
                              root         1  0.0  0.0   7292  1796 pts/0    Ss+  20:55   0:00 /bin/bash /opt/scripts/iobroker_startup.sh                                                                                         
                              iobroker  1057  122  5.3 805700 214860 ?       Rsl  21:04   0:28 iobroker.js-controller                                                                                                             
                              root      1081  0.0  0.0   6504   964 pts/1    S+   21:05   0:00 grep io                                                                                                                            
                              root@iobroker:/opt/iobroker#
                              
                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @SimKa last edited by

                                @simka

                                iobroker status
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  SimKa @Glasfaser last edited by SimKa

                                  @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                                  @simka

                                  iobroker status
                                  
                                  root@iobroker:/opt/iobroker# iobroker status                                                                                                                                                        
                                   Objects database error: connect ECONNREFUSED 127.0.0.1:9001                                                                                                                                        
                                  Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!                                                                                   
                                  root@iobroker:/opt/iobroker#       
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser last edited by

                                    @simka

                                    kill 1057
                                    

                                    ausnahmsweise :

                                    iobroker start
                                    
                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SimKa @Glasfaser last edited by SimKa

                                      @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                                      iobroker start

                                      root@iobroker:/opt/iobroker# kill 1057                                                                                                                                                              
                                      bash: kill: (1057) - No such process                                                                                                                                                                
                                      root@iobroker:/opt/iobroker# ps                                                                                                                                                                     
                                        PID TTY          TIME CMD                                                                                                                                                                         
                                        986 pts/1    00:00:00 bash                                                                                                                                                                        
                                       2095 pts/1    00:00:00 ps                                                                                                                                                                          
                                      root@iobroker:/opt/iobroker# iobroker start                                                                                                                                                         
                                      iobroker controller daemon already running. PID: 2135                                                                                                                                               
                                      root@iobroker:/opt/iobroker# kill 2135                                                                                                                                                              
                                      root@iobroker:/opt/iobroker# iobroker start                                                                                                                                                         
                                      Starting iobroker controller daemon...                                                                                                                                                              
                                      iobroker controller daemon started. PID: 2208                                                                                                                                                       
                                      root@iobroker:/opt/iobroker# 
                                      

                                      iobroker.2022-07-04 (12).log

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

                                        @simka

                                        Da stimmt was nicht es werden Zwei Controller gestartet !!

                                        einmal 4.0.21 und dann 4.0.23

                                        2022-07-04 19:57:00.141  - info: host.iobroker iobroker.js-controller version 4.0.21 js-controller starting
                                        2022-07-04 19:57:00.159  - info: host.iobroker Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
                                        2022-07-04 19:57:00.161  - info: host.iobroker hostname: iobroker, node: v16.15.1
                                        2022-07-04 19:57:00.164  - info: host.iobroker ip addresses: 172.17.0.2
                                        2022-07-04 19:57:30.237  - error: host.iobroker No connection to databases possible, restart
                                        2022-07-04 19:57:30.260  - info: host.iobroker iobroker _restart
                                        2022-07-04 19:57:37.079  - info: host.iobroker iobroker.js-controller version 4.0.23 js-controller starting
                                        2022-07-04 19:57:37.094  - info: host.iobroker Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
                                        2022-07-04 19:57:37.096  - info: host.iobroker hostname: iobroker, node: v16.15.1
                                        2022-07-04 19:57:37.097  - info: host.iobroker ip addresses: 172.17.0.2
                                        
                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          SimKa @Glasfaser last edited by

                                          @glasfaser said in [Synology Docker]Iobroker startet nicht (no database):

                                          @simka

                                          Da stimmt was nicht es werden Zwei Controller gestartet !!

                                          einmal 4.0.21 und dann 4.0.23

                                          2022-07-04 19:57:00.141  - info: host.iobroker iobroker.js-controller version 4.0.21 js-controller starting
                                          2022-07-04 19:57:00.159  - info: host.iobroker Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
                                          2022-07-04 19:57:00.161  - info: host.iobroker hostname: iobroker, node: v16.15.1
                                          2022-07-04 19:57:00.164  - info: host.iobroker ip addresses: 172.17.0.2
                                          2022-07-04 19:57:30.237  - error: host.iobroker No connection to databases possible, restart
                                          2022-07-04 19:57:30.260  - info: host.iobroker iobroker _restart
                                          2022-07-04 19:57:37.079  - info: host.iobroker iobroker.js-controller version 4.0.23 js-controller starting
                                          2022-07-04 19:57:37.094  - info: host.iobroker Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker
                                          2022-07-04 19:57:37.096  - info: host.iobroker hostname: iobroker, node: v16.15.1
                                          2022-07-04 19:57:37.097  - info: host.iobroker ip addresses: 172.17.0.2
                                          

                                          Vielleicht durch den js-controller Befehl gekommen. Gibt es einen uninstall Befehl oder soll ich eine neue Docker Instanz bauen und den Ordner mounten?

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

                                            @simka sagte in [Synology Docker]Iobroker startet nicht (no database):

                                            eine neue Docker Instanz bauen und den Ordner mounten?

                                            Jipp , mach das .

                                            du hast da was quer installiert !

                                            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

                                            944
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            130
                                            7756
                                            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