Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Pi3 Stretch, ioBroker macht keinen Autostart

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Pi3 Stretch, ioBroker macht keinen Autostart

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

      So ich habe das ganze nochmal ein zweites mal probiert und das System ein zweites mal komplett neu installiert.

      Siehe da - es ist wieder so das die iobroker.sh in der /etc/init.d nicht startet.

      Habe zudem festgestellt das die iobroker.sh nicht ausführbar ist.

      Kann das jemand mal gegenprüfen?

      1 Reply Last reply Reply Quote 0
      • C
        C-3po last edited by

        Hi Leuts,

        hier genau das selbe.

        root@io-broker-pi:~# systemctl status iobroker

        ● iobroker.service - LSB: starts ioBroker

        Loaded: loaded (/etc/init.d/iobroker.sh; generated; vendor preset: enabled)

        Active: failed (Result: exit-code) since Sat 2017-12-30 14:04:42 CET; 16s ago

        Docs: man:systemd-sysv-generator(8)

        Process: 670 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=1/FAILURE)

        Dez 30 14:04:42 io-broker-pi systemd[1]: Starting LSB: starts ioBroker…

        Dez 30 14:04:42 io-broker-pi sudo[692]: root : unknown user: @@user

        Dez 30 14:04:42 io-broker-pi iobroker.sh[670]: Starting ioBrokersudo: Unbekannter Benutzer: @@user

        Dez 30 14:04:42 io-broker-pi iobroker.sh[670]: sudo: Regelwerks-Plugin konnte nicht initialisiert werden

        Dez 30 14:04:42 io-broker-pi systemd[1]: iobroker.service: Control process exited, code=exited status=1

        Dez 30 14:04:42 io-broker-pi systemd[1]: Failed to start LSB: starts ioBroker.

        Dez 30 14:04:42 io-broker-pi systemd[1]: iobroker.service: Unit entered failed state.

        Dez 30 14:04:42 io-broker-pi systemd[1]: iobroker.service: Failed with result 'exit-code'.

        root@io-broker-pi:~#

        ioBroker startet nicht, erst:

        root@io-broker-pi:~# iobroker start

        Starting iobroker controller daemon…

        iobroker controller daemon started. PID: 18638

        root@io-broker-pi:~#

        startet ihn.

        1 Reply Last reply Reply Quote 0
        • C
          C-3po last edited by

          So, jetzt geht es bei mir.

          wie weiter oben schon genannt:

          pi@BrokerPi:/etc/init.d $ ./iobroker.sh

          -bash: ./iobroker.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden

          Problem beseitigt

          und die Rechte angepasst.

          danach noch diese Änderung durchgef.

          …

          END INIT INFO

          (( EUID )) && echo .You need to have root privileges.. && exit 1

          PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid

          NODECMD=@@node

          NODECMD=/usr/bin/node

          IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js

          RETVAL=0

          IOBROKERUSER=@@user

          IOBROKERUSER=root

          start() {

          ...

          jetzt startet ioBroker sauber nach einem Reboot durch.

          siehe:

          root@io-broker-pi:~# systemctl status iobroker

          ● iobroker.service - LSB: starts ioBroker

          Loaded: loaded (/etc/init.d/iobroker.sh; generated; vendor preset: enabled)

          Active: active (running) since Sat 2017-12-30 14:20:43 CET; 13s ago

          Docs: man:systemd-sysv-generator(8)

          Process: 597 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=0/SUCCESS)

          CGroup: /system.slice/iobroker.service

          ├─ 932 iobroker.js-controller

          ├─1254 io.admin.0

          ├─1953 io.discovery.0

          ├─2489 io.tr-064.4

          └─3113 /usr/bin/node /opt/iobroker/node_modules/iobroker.web/main.js 0 info

          Dez 30 14:20:37 io-broker-pi systemd[1]: Starting LSB: starts ioBroker…

          Dez 30 14:20:38 io-broker-pi sudo[606]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start

          Dez 30 14:20:38 io-broker-pi sudo[606]: pam_unix(sudo:session): session opened for user root by (uid=0)

          Dez 30 14:20:40 io-broker-pi iobroker.sh[597]: Starting ioBrokerStarting iobroker controller daemon…

          Dez 30 14:20:43 io-broker-pi iobroker.sh[597]: iobroker controller daemon started. PID: 932

          Dez 30 14:20:43 io-broker-pi sudo[606]: pam_unix(sudo:session): session closed for user root

          Dez 30 14:20:43 io-broker-pi systemd[1]: Started LSB: starts ioBroker.

          root@io-broker-pi:~#

          1 Reply Last reply Reply Quote 0
          • B
            B3ta last edited by

            Könnte wer nochmal schritt weise erklären ? wie er es behoben habt. Habe auch kein autostart mehr und verstehe nicht ganz was ihr gemacht habt.

            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators last edited by

              Bitte auf jeden Fall bei allen Änderungen an Dateien keinen Windows-Editor benutzen.

              Unter Windows sollte das Notepad++ verwendet werden, und der Zeilenumbruch auf UNIX gestellt sein.

              Die Zeile:
              @C-3po:

              -bash: ./iobroker.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden `
              deutet darauf hin, dass diese Datei bereits mit einem Windows-Editor bearbeitet wurde.

              In der Installationsdatei ist der Windowsumbruch nicht drin!

              Wo kommt der her?

              Gruß

              Rainer

              1 Reply Last reply Reply Quote 0
              • B
                B3ta last edited by

                bei mir kommt immer

                pi@raspberrypi:~ $ /etc/init.d $ ./iobroker.sh
                -bash: /etc/init.d: Ist ein Verzeichnis
                
                
                1 Reply Last reply Reply Quote 0
                • B
                  B3ta last edited by

                  sorry war falsch in der zwischenablage

                  pi@raspberrypi:/etc/init.d $ ./iobroker.sh
                  -bash: ./iobroker.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden
                  
                  
                  pi@raspberrypi:/etc/init.d $ systemctl status iobroker
                  ● iobroker.service - LSB: starts ioBroker
                     Loaded: loaded (/etc/init.d/iobroker.sh)
                     Active: failed (Result: exit-code) since Sa 2017-12-30 17:17:23 CET; 7min ago
                    Process: 509 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=203/EXEC)
                  
                  1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 last edited by

                    @B3ta:

                    -bash: ./iobroker.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden
                    ```` `  
                    

                    Da hat sich ein CR eingeschlichen. Wurde die Datei mal aktualisiert / modiziert ? Prüfe bitte Länge und Datum:

                    ls -l /etc/init.d/iobroker.sh
                    
                    1 Reply Last reply Reply Quote 0
                    • B
                      B3ta last edited by

                      habe die iobroker.sh nochmal neu erzeugen lassen grade. aber halt selbe fehler.

                      root@raspberrypi:/etc/init.d# ls -l /etc/init.d/iobroker.sh
                      -rwxrwxrwx 1 root root 1145 Dez 30 18:06 /etc/init.d/iobroker.sh
                      
                      1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 last edited by

                        @B3ta:

                        habe die iobroker.sh nochmal neu erzeugen lassen grade. `
                        Wie ?

                        Die Datei ist 47 Byte zu groß.

                        1 Reply Last reply Reply Quote 0
                        • B
                          B3ta last edited by

                          #!/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
                          ### END INIT INFO
                          (( EUID )) && echo .You need to have root privileges.. && exit 1
                          PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                          NODECMD=@@node
                          IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
                          RETVAL=0
                          IOBROKERUSER=@@user
                          
                          start() {
                                      export IOBROKER_HOME=/opt/iobroker
                                      echo -n "Starting ioBroker"
                                      sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD start
                                      RETVAL=$?
                          }
                          
                          stop() {
                                      echo -n "Stopping ioBroker"
                                      sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD stop
                                      RETVAL=$?
                          }
                          case "$1" in
                              start)
                                start
                            ;;
                              stop)
                                stop
                            ;;
                              restart)
                                stop
                                start
                            ;;
                              *)
                                echo "Usage: iobroker {start|stop|restart}"
                                exit 1
                            ;;
                          esac
                          exit $RETVAL
                          
                          

                          das ist der inhalt…

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

                            @B3ta:

                            das ist der inhalt… `
                            …und der enthält 47 Zeilen. Mit welchem Editor wird der Inhalt angezeigt und abgespeichert ?

                            1 Reply Last reply Reply Quote 0
                            • B
                              B3ta last edited by

                              Nodepad++

                              aber wie gesagt die habe ich jetzt schon 2mal frisch erzeugen lassen ohne sie überhaupt zu öffnen.

                              1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators last edited by

                                bei mir unter armbian(!) ist die Ausgabe:

                                root@linaro-alip:~# ls -l /etc/init.d/iobroker.sh
                                -rwxr-xr-x 1 root root 1098 Nov 21 21:36 /etc/init.d/iobroker.sh
                                

                                Gruß

                                Rainer

                                1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators last edited by

                                  und wenn ich richtig liege (was hier auf keinen Fall stimmen muss!!!) ist es diese Datei:

                                  https://github.com/ioBroker/ioBroker/bl … obroker.sh

                                  von März 2016 und seitdem nicht geändert worden.

                                  Kann es sein, dass Raspbian 2017-11-29 da Mist baut?

                                  Gruß

                                  Rainer

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

                                    Dann konvertiere die Datei vom DOS- in das Linux-Format:

                                    mv /etc/init.d/iobroker.sh /etc/init.d/iobroker.dos
                                    tr -d '\r' < /etc/init.d/iobroker.dos > /etc/init.d/iobroker.sh
                                    
                                    

                                    oder

                                    cd /etc/init.d
                                    mv iobroker.sh iobroker.dos
                                    tr -d '\r' < iobroker.dos > iobroker.sh
                                    ls -l iob*
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 last edited by

                                      @Homoran:

                                      Kann es sein, dass Raspbian 2017-11-29 da Mist baut? `
                                      Dass Raspbian aus einer Linux- ein DOS-Textdatei macht, ist schwer vorstellbar. Aber vielleicht greift Raspbian auf eine andere (ältere) Quelle zurück ?

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        B3ta last edited by

                                        So habe jetzt SD Karte formatiert.

                                        2017-07-05-raspbian-jessie installiert.

                                        iobroker nach der Anleitung installiert http://www.iobroker.net/docu/?page_id=5106&lang=de.

                                        Nach der Installation iobroker eingerichtet in der Weboberfläche.

                                        Raspberry rebootet.

                                        Und gleich das selbe kein Auto Start !

                                        pi@raspberrypi:~ $ ls -l /etc/init.d/iobroker.sh
                                        -rw-r--r-- 1 root root 1138 Dez 30 20:18 /etc/init.d/iobroker.sh
                                        
                                        
                                        pi@raspberrypi:~ $ sudo systemctl status iobroker
                                        ● iobroker.service
                                           Loaded: not-found (Reason: No such file or directory)
                                           Active: inactive (dead)
                                        
                                        
                                        pi@raspberrypi:/etc/init.d $ ./iobroker.sh
                                        -bash: ./iobroker.sh: Keine Berechtigung
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators last edited by

                                          pi@raspberrypi:/etc/init.d $ ./iobroker.sh
                                          -bash: ./iobroker.sh: Keine Berechtigung
                                          

                                          da fehlt sudo davor

                                          Gruß

                                          Rainer

                                          …da kommt wieder das ^M

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            B3ta last edited by

                                            mit sudo…

                                            pi@raspberrypi:/etc/init.d $ sudo ./iobroker.sh
                                            sudo: ./iobroker.sh: Kommando nicht gefunden
                                            
                                            
                                            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

                                            661
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            38
                                            4630
                                            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