Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IOBroker nur manuell startbar, reagiert nicht auf Befehle

    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 nur manuell startbar, reagiert nicht auf Befehle

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

      @silencerbob

      Interessanter wäre:

      systemctl status iobroker.service
      
      S 1 Reply Last reply Reply Quote 0
      • S
        Silencerbob @Thomas Braun last edited by Silencerbob

        @thomas-braun

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

        Was tun?

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

          @silencerbob

          ls -l /etc/systemd/system/multi-user.target.wants/iobroker.service
          cat /usr/lib/systemd/system/iobroker.service
          
          S 1 Reply Last reply Reply Quote 0
          • S
            Silencerbob @Thomas Braun last edited by Silencerbob

            @thomas-braun

            pi@raspberrypi:~ $ ls -l /etc/systemd/system/multi-user.target.wants/iobroker.service
            lrwxrwxrwx 1 root root 36 Jan 23  2021 /etc/systemd/system/multi-user.target.wants/iobroker.service -> /lib/systemd/system/iobroker.service
            pi@raspberrypi:~ $ cat /usr/lib/systemd/system/iobroker.service
            
            
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Silencerbob last edited by

              @silencerbob

              Die Datei ist offenbar leer bzw. nicht vorhanden.

              Bei mir sieht die folgendermaßen 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=/usr/bin/bash -c '${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js'
              Restart=on-failure
              RestartSec=3s
              
              [Install]
              WantedBy=multi-user.target
              

              Rechte:

              echad@chet:/opt/iobroker $ ls -l /usr/lib/systemd/system/iobroker.service
              -rw-r--r-- 1 root root 488 Jun 13 20:01 /usr/lib/systemd/system/iobroker.service
              
              S 1 Reply Last reply Reply Quote 0
              • S
                Silencerbob @Thomas Braun last edited by

                @thomas-braun sagte in IOBroker nur manuell startbar, reagiert nicht auf Befehle:

                echad@chet:/opt/iobroker $ ls -l /usr/lib/systemd/system/iobroker.service

                pi@raspberrypi:/opt/iobroker $ ls -l /usr/lib/systemd/system/iobroker.service
                -rw-r--r-- 1 root root 1 Jun 15 09:05 /usr/lib/systemd/system/iobroker.service
                
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Silencerbob last edited by

                  @silencerbob

                  Dann trag das was in meiner Version drin steht da mal ein.

                  Wobei sich die Frage stellt, warum das bei dir (vermutlich gestern) kaputt gegangen ist. Da kommt man eigentlich nur mit root-Rechten dran.

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

                    @thomas-braun
                    Tut mir leid, ich bin kein Profi. Wie soll ich das eintragen?
                    Mit welcher Anwendung muss ich die gleich wieder öffnen, bei Ubuntu?

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

                      @silencerbob

                      Mit einem Editor, wie nano z. B. einer ist:

                      sudo nano /usr/lib/systemd/system/iobroker.service
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Silencerbob @Thomas Braun last edited by

                        @thomas-braun

                        [Unit]
                        Description=ioBroker Server
                        Documentation=http://iobroker.net
                        After=network.target redis.service influxdb.service mysql-server.service mariad>
                        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-cont>
                        Restart=on-failure
                        RestartSec=3s
                        
                        [Install]
                        WantedBy=multi-user.target
                        
                        
                        

                        eingetragen und gespeichert, und dann?

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

                          @silencerbob

                          systemctl status iobroker.service
                          

                          sagt?
                          Vielleicht mal sauber rebooten, dann werden die Targets durchlaufen.

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

                            @thomas-braun sagte in IOBroker nur manuell startbar, reagiert nicht auf Befehle:

                            systemctl status iobroker.service

                            Nach Reboot sieht es jetzt besser aus:

                            pi@raspberrypi:~ $ systemctl status iobroker.service
                            ● iobroker.service - ioBroker Server
                               Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset:
                               Active: active (running) since Thu 2022-06-16 14:54:24 CEST; 3min 41s ago
                                 Docs: http://iobroker.net
                             Main PID: 482 (iobroker.js-con)
                                Tasks: 209 (limit: 4915)
                               CGroup: /system.slice/iobroker.service
                                       ├─ 482 iobroker.js-controller
                                       ├─ 799 io.telegram.0
                                       ├─ 836 io.telegram.1
                                       ├─ 868 io.admin.0
                                       ├─ 894 io.beckhoff.0
                                       ├─ 924 io.javascript.0
                                       ├─ 938 io.history.0
                                       ├─ 991 io.scenes.0
                                       ├─1032 io.synology.0
                                       ├─1060 io.ping.0
                                       ├─1083 io.tr-064.0
                                       ├─1123 io.discovery.0
                                       ├─1165 io.info.0
                                       ├─1181 io.web.0
                                       ├─1747 io.vis-inventwo.0
                                       ├─1816 io.backitup.0
                            
                            

                            😄
                            Sollte ich nochwas machen, kontrollieren? iobroker fix?

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

                              @silencerbob
                              Aber er reagiert immer noch nicht auf iobroker Befehle!

                              pi@raspberrypi:~ $ iobroker status
                              pi@raspberrypi:~ $ iobroker backup
                              pi@raspberrypi:~ $ iob fix
                              pi@raspberrypi:~ $ iobroker fix
                              pi@raspberrypi:~ $ 
                              
                              
                              Thomas Braun 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Silencerbob last edited by

                                @silencerbob

                                Jedenfalls habe ich über das Terminal mit rm -rf alte History Dateien gelöscht.

                                Was hast du da genau gemacht? Ich vermute du hast da auch noch diverses anderes Zeuch gleich mit gelöscht...

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

                                  @silencerbob

                                  ls -la /usr/bin/iobroker
                                  ls -la /opt/iobroker/iobroker
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Silencerbob @Thomas Braun last edited by

                                    @thomas-braun
                                    sudo rm -rf /opt/iobroker/history/202201*
                                    Alle History Dateien vom Januar 2022, dass dann bis April

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

                                      @thomas-braun sagte in IOBroker nur manuell startbar, reagiert nicht auf Befehle:

                                      ls -la /opt/iobroker/iobroker

                                      pi@raspberrypi:~ $ ls -la /usr/bin/iobroker
                                      lrwxrwxrwx 1 root root 22 Jun 15 09:05 /usr/bin/iobroker -> /opt/iobroker/iobroker
                                      pi@raspberrypi:~ $ ls -la /opt/iobroker/iobroker
                                      -rwxr-xr-x+ 1 iobroker iobroker 1 Jun 15 09:05 /opt/iobroker/iobroker
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Silencerbob last edited by

                                        @silencerbob

                                        Die Rechte sind verbogen.

                                        getfacl /opt/iobroker/iobroker
                                        
                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          Silencerbob @Thomas Braun last edited by

                                          @thomas-braun sagte in IOBroker nur manuell startbar, reagiert nicht auf Befehle:

                                          getfacl /opt/iobroker/iobroker

                                          pi@raspberrypi:~ $ getfacl /opt/iobroker/iobroker
                                          getfacl: Entferne führende '/' von absoluten Pfadnamen
                                          # file: opt/iobroker/iobroker
                                          # owner: iobroker
                                          # group: iobroker
                                          user::rwx
                                          group::r-x
                                          group:iobroker:rwx		#effective:r-x
                                          mask::r-x
                                          other::r-x
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Silencerbob last edited by

                                            @silencerbob

                                            Die 'Mask' ist falsch.

                                            Richtig:

                                            echad@chet:/opt/iobroker $ getfacl /opt/iobroker/iobroker
                                            getfacl: Removing leading '/' from absolute path names
                                            # file: opt/iobroker/iobroker
                                            # owner: iobroker
                                            # group: iobroker
                                            user::rwx
                                            group::r-x
                                            group:iobroker:rwx
                                            mask::rwx
                                            other::r-x
                                            
                                            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

                                            851
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            68
                                            3858
                                            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