Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. iobroker läuft nicht mehr

    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 läuft nicht mehr

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

      @thomas-braun

      habe alle Schritte ausgeführt und die nodejs-Installation geprüft:

      micros02@smartmeter:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
      ln: failed to create symbolic link '/usr/bin/nodejs': File exists
      micros02@smartmeter:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      /usr/local/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v14.19.1
      v14.19.1
      6.14.16
      micros02
      /home/micros02
      Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
      Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      2 packages can be upgraded. Run 'apt list --upgradable' to see them.
      nodejs:
        Installed: (none)
        Candidate: 12.22.5~dfsg-2~11u1
        Version table:
           12.22.5~dfsg-2~11u1 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      micros02@smartmeter:~ $
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Emi 0 last edited by

        @emi-0 sagte in iobroker läuft nicht mehr:

        nodeJS passt nun.

        Die beiden Updates noch einspielen:

        2 packages can be upgraded

        sudo apt full-upgrade
        
        E 1 Reply Last reply Reply Quote 0
        • E
          Emi 0 @Thomas Braun last edited by

          @thomas-braun

          das hat funktioniert:

          micros02@smartmeter:~ $ sudo apt full-upgrade
          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          Calculating upgrade... Done
          The following packages were automatically installed and are no longer required:
            gyp javascript-common libc-ares2 libjs-highlight.js libjs-inherits
            libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libnode-dev
            libnode72 libssl-dev libuv1-dev xdg-utils
          Use 'sudo apt autoremove' to remove them.
          The following packages will be upgraded:
            libexpat1 libexpat1-dev
          2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Need to get 198 kB of archives.
          After this operation, 3,072 B of additional disk space will be used.
          Do you want to continue? [Y/n] Y
          Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libexpat1-dev armhf 2.2.10-2+deb11u3 [123 kB]
          Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libexpat1 armhf 2.2.10-2+deb11u3 [74.9 kB]
          Fetched 198 kB in 1s (182 kB/s)
          Reading changelogs... Done
          (Reading database ... 49910 files and directories currently installed.)
          Preparing to unpack .../libexpat1-dev_2.2.10-2+deb11u3_armhf.deb ...
          Unpacking libexpat1-dev:armhf (2.2.10-2+deb11u3) over (2.2.10-2+deb11u2) ...
          Preparing to unpack .../libexpat1_2.2.10-2+deb11u3_armhf.deb ...
          Unpacking libexpat1:armhf (2.2.10-2+deb11u3) over (2.2.10-2+deb11u2) ...
          Setting up libexpat1:armhf (2.2.10-2+deb11u3) ...
          Setting up libexpat1-dev:armhf (2.2.10-2+deb11u3) ...
          Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
          micros02@smartmeter:~ $
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Emi 0 last edited by

            @emi-0 sagte in iobroker läuft nicht mehr:

            Jetzt noch

            sudo apt autoremove
            

            um den überflüssigen Rest auch noch loszuwerden.

            E 1 Reply Last reply Reply Quote 0
            • E
              Emi 0 @Thomas Braun last edited by

              @thomas-braun

              das hat jetzt auch funktioniert:

              micros02@smartmeter:~ $ sudo apt autoremove
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              micros02@smartmeter:~ $
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Emi 0 last edited by

                @emi-0
                Dann dürfte die nodeJS-Laufzeitumgebung jetzt sauber sein.

                E 1 Reply Last reply Reply Quote 0
                • E
                  Emi 0 @Thomas Braun last edited by

                  @thomas-braun

                  leider lässt sich iobroker immer noch nicht starten

                  micros02@smartmeter:~ $ iobroker fix
                  library: loaded
                  Library version=2022-02-10
                  
                  ==========================================================================
                  
                      Welcome to the ioBroker installation fixer!
                      Script version: 2022-02-13
                  
                      You might need to enter your password a couple of times.
                  
                  ==========================================================================
                  
                  
                  ==========================================================================
                      Installing prerequisites (1/3)
                  ==========================================================================
                  
                  Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                  Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
                  Reading package lists... Done
                  Installed gcc-c++
                  Installed python-dev
                  
                  ==========================================================================
                      Checking ioBroker user and directory permissions (2/3)
                  ==========================================================================
                  
                  Created /etc/sudoers.d/iobroker
                  Fixing directory permissions...
                  
                  ==========================================================================
                      Checking autostart (3/3)
                  ==========================================================================
                  
                  Enabling autostart...
                  Autostart enabled!
                  
                  ==========================================================================
                  
                      Your installation was fixed successfully
                      Run iobroker start to start ioBroker again!
                  
                  ==========================================================================
                  
                  micros02@smartmeter:~ $ iobroker start
                  micros02@smartmeter:~ $ iob status
                  Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                  micros02@smartmeter:~ $
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Emi 0 last edited by

                    @emi-0 sagte in iobroker läuft nicht mehr:

                    /opt/iobroker/iobroker-data/objects.jsonl

                    ls  -l /opt/iobroker/iobroker-data/objects.jsonl
                    sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                    
                    E 1 Reply Last reply Reply Quote 0
                    • E
                      Emi 0 @Thomas Braun last edited by

                      @thomas-braun

                      micros02@smartmeter:~ $ ls  -l /opt/iobroker/iobroker-data/objects.jsonl
                      -rw-rwxr--+ 1 iobroker iobroker 120034159 Apr 25 21:05 /opt/iobroker/iobroker-data/objects.jsonl
                      micros02@smartmeter:~ $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                      COMMAND    PID     USER   FD   TYPE DEVICE  SIZE/OFF   NODE NAME
                      iobroker. 1919 iobroker   19u   REG  179,2 120034159 268535 /opt/iobroker/iobroker-data/objects.jsonl
                      micros02@smartmeter:~ $ iob start
                      micros02@smartmeter:~ $ iob status
                      Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                      micros02@smartmeter:~ $
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Emi 0 last edited by

                        @emi-0

                        getfacl /opt/iobroker/iobroker-data/objects.jsonl
                        
                        E 1 Reply Last reply Reply Quote 0
                        • E
                          Emi 0 @Thomas Braun last edited by

                          @thomas-braun

                          geht noch nicht:

                          micros02@smartmeter:~ $
                          getfacl /opt/iobroker/iobroker-data/objects.jsonl
                          -bash: micros02@smartmeter:~: command not found
                          -bash: -rw-rwxr--+: command not found
                          -bash: micros02@smartmeter:~: command not found
                          -bash: COMMAND: command not found
                          -bash: iobroker.: command not found
                          -bash: micros02@smartmeter:~: command not found
                          -bash: micros02@smartmeter:~: command not found
                          -bash: Server: command not found
                          -bash: micros02@smartmeter:~: command not found
                          getfacl: Removing leading '/' from absolute path names
                          # file: opt/iobroker/iobroker-data/objects.jsonl
                          # owner: iobroker
                          # group: iobroker
                          user::rw-
                          group::r--
                          group:iobroker:rwx
                          mask::rwx
                          other::r--
                          
                          micros02@smartmeter:~ $ iob start
                          micros02@smartmeter:~ $ iob status
                          Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                          micros02@smartmeter:~ $
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Emi 0 last edited by

                            @emi-0

                            Da stimmen die Rechte nicht.
                            Auf meinem System schauen die anders aus.
                            Aber erstmal Sportschau gucken...

                            E 2 Replies Last reply Reply Quote 0
                            • E
                              Emi 0 @Thomas Braun last edited by

                              @thomas-braun

                              erstmal vielen Dank
                              Viel Spaß bei der Sportschau.
                              Bis Morgen ....

                              1 Reply Last reply Reply Quote 0
                              • E
                                Emi 0 @Thomas Braun last edited by

                                @thomas-braun

                                Hallo Thomas,
                                kannst Du bitte noch etwas zu den Rechten sagen, wie sie aussehen müssen, dass iobroker wieder gestartet werden kann?

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

                                  @emi-0

                                  Bei mir sehen die so aus:

                                  echad@chet:~ $ getfacl /opt/iobroker/iobroker-data/objects.jsonl
                                  getfacl: Removing leading '/' from absolute path names
                                  # file: opt/iobroker/iobroker-data/objects.jsonl
                                  # owner: iobroker
                                  # group: iobroker
                                  user::rw-
                                  group::r-x                      #effective:r--
                                  group:iobroker:rwx              #effective:rw-
                                  mask::rw-
                                  other::r--
                                  
                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    Emi 0 @Thomas Braun last edited by

                                    @thomas-braun
                                    also müssen die Rechte für group: und mask: angepasst werden.
                                    Wie kann ich das machen?

                                    Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Emi 0 last edited by

                                      @emi-0 sagte in iobroker läuft nicht mehr:

                                      Wie kann ich das machen?

                                      eigentlich müsste das der Fixer machen:

                                      iobroker stop
                                      iobroker fix
                                      iobroker start
                                      
                                      E 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Emi 0 last edited by Thomas Braun

                                        @emi-0

                                        Eigentlich sollte das der Fixer machen.
                                        Hier sind ACLs gesetzt worden.
                                        Manuell ist das das etwas aufwändiger.
                                        Stefan Kania erklärt es hier:

                                        https://www.informatik-aktuell.de/betrieb/betriebssysteme/rechte-im-dateisystem-mehr-als-nur-rwx.html

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          Emi 0 @Homoran last edited by

                                          @homoran

                                          Anscheinend macht der fixer bei mir nicht das Richtige

                                          micros02@smartmeter:~ $ iobroker fix
                                          library: loaded
                                          Library version=2022-02-10
                                          
                                          ==========================================================================
                                          
                                              Welcome to the ioBroker installation fixer!
                                              Script version: 2022-02-13
                                          
                                              You might need to enter your password a couple of times.
                                          
                                          ==========================================================================
                                          
                                          
                                          ==========================================================================
                                              Installing prerequisites (1/3)
                                          ==========================================================================
                                          
                                          Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB]
                                          Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
                                          Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [282 kB]
                                          Fetched 321 kB in 4s (89.5 kB/s)
                                          Reading package lists... Done
                                          Installed gcc-c++
                                          Installed python-dev
                                          
                                          ==========================================================================
                                              Checking ioBroker user and directory permissions (2/3)
                                          ==========================================================================
                                          
                                          Created /etc/sudoers.d/iobroker
                                          Fixing directory permissions...
                                          
                                          ==========================================================================
                                              Checking autostart (3/3)
                                          ==========================================================================
                                          
                                          Enabling autostart...
                                          Autostart enabled!
                                          
                                          ==========================================================================
                                          
                                              Your installation was fixed successfully
                                              Run iobroker start to start ioBroker again!
                                          
                                          ==========================================================================
                                          
                                          micros02@smartmeter:~ $ iobroker start
                                          micros02@smartmeter:~ $ iobroker status
                                          No connection to databases possible ...
                                          micros02@smartmeter:~ $ getfacl /opt/iobroker/iobroker-data/objects.jsonl
                                          getfacl: Removing leading '/' from absolute path names
                                          # file: opt/iobroker/iobroker-data/objects.jsonl
                                          # owner: iobroker
                                          # group: iobroker
                                          user::rw-
                                          group::r--
                                          group:iobroker:rwx
                                          mask::rwx
                                          other::r--
                                          
                                          micros02@smartmeter:~ $
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Emi 0 last edited by Thomas Braun

                                            @emi-0

                                            systemctl status iobroker.service
                                            

                                            sagt?

                                            E 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            837
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            87
                                            4031
                                            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