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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • 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.
    • 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
                            • G
                              GASMAST3R last edited by

                              Hallo ich bin neu hier da ich bei IoBroker mal reinschauen wollte.

                              Habe auch ein frisches sys aufgestellt und kein Autostart, dies konnte ich nach ändern der rechte anpassen der iobrocker.sh und das konvertieren zu .dos zu .sh beheben.

                              Werde das system für einen bekannten anfertigen, mal schauen ob ich von FHEM irgendwann mal umsteige.

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

                                @B3ta:

                                -rw-r--r-- 1 root root 1138 Dez 30 20:18 /etc/init.d/iobroker.sh
                                ```` `  
                                

                                Die Dateigröße passt weder zu Linux (Soll: 1098) noch zu DOS (1145). Außerdem fehlen die Rechte zum Ausführen.

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

                                  @B3ta:

                                  2017-07-05-raspbian-jessie installiert.

                                  …

                                  Und gleich das selbe kein Auto Start ! `
                                  An Raspbian wird es nicht liegen.

                                  Bluefox hat zwecks Anpassung an NPM 5 Änderungen an den Installations-Skripten vorgenommen. Ich vermute, dass es daher kommt.

                                  Meine Empfehlung, wenn

                                  ls -l /etc/init.d/iobroker.sh
                                  

                                  eine Dateigröße von 1145 Byte liefert, dann

                                  cd /etc/init.d
                                  mv iobroker.sh iobroker.dos
                                  tr -d '\r' < iobroker.dos > iobroker.sh
                                  ls -l iob*
                                  

                                  und anschließend, falls erforderlich (Datei nicht ausführbar)

                                  chmod +x iobroker.sh
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    GASMAST3R last edited by

                                    Hy wurde wieder was geändert ??

                                    muste das Sys nochmal neu aufsetzen und wie zu erwarten kein neustart

                                    habe dann

                                    root@raspberrypi:~# ls -l /etc/init.d/iobroker.sh
                                    -rwxrwxrwx 1 root root 1138 Dez 31 23:41 /etc/init.d/iobroker.sh
                                    root@raspberrypi:~# sudo iobroker status
                                    iobroker is not running
                                    root@raspberrypi:~# cd /etc/init.d
                                    root@raspberrypi:/etc/init.d# mv iobroker.sh iobroker.dos
                                    root@raspberrypi:/etc/init.d# tr -d '\r' < iobroker.dos > iobroker.sh
                                    root@raspberrypi:/etc/init.d# ls -l iob*
                                    -rwxrwxrwx 1 root root 1138 Dez 31 23:41 iobroker.dos
                                    -rw-r--r-- 1 root root 1138 Dez 31 23:47 iobroker.sh
                                    root@raspberrypi:/etc/init.d# chmod +x iobroker.sh
                                    root@raspberrypi:/etc/init.d#
                                    
                                    

                                    1138 denke ich mal da ich folgende Änderungen gemacht habe

                                    ### 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() {
                                    
                                    
                                    root@raspberrypi:~# ls -l /etc/init.d/iobroker.sh
                                    -rwxr-xr-x 1 root root 1138 Dez 31 23:47 /etc/init.d/iobroker.sh
                                    
                                    
                                    root@raspberrypi:~# sudo systemctl status iobroker
                                    ● iobroker.service - LSB: starts ioBroker
                                       Loaded: loaded (/etc/init.d/iobroker.sh; generated; vendor preset: enabled)
                                       Active: inactive (dead)
                                         Docs: man:systemd-sysv-generator(8)
                                    
                                    
                                    root@raspberrypi:/etc/init.d# ./iobroker.sh
                                    Usage: iobroker {start|stop|restart}
                                    
                                    

                                    da auch über Root installiert

                                    mit der standart iobroker.sh erst 1145 danach wieder angepasst auf 1098 aber auch kein Autostart.

                                    habe die 2017-09-07-raspbian-stretch-lite mit Update Upgrade

                                    root@raspberrypi:/etc/init.d# sudo iobroker start
                                    Starting iobroker controller daemon...
                                    iobroker controller daemon started. PID: 558
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 last edited by

                                      @GASMAST3R:

                                      mit der standart iobroker.sh erst 1145 danach wieder angepasst auf 1098 aber auch kein Autostart. `
                                      Ist die Datei /etc/init.d/iobroker.sh ausführbar ?

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        GASMAST3R last edited by

                                        Hy ja ist ausführbar, wie oben zu sehen bekomme ich

                                        root@raspberrypi:/etc/init.d# ./iobroker.sh
                                        Usage: iobroker {start|stop|restart}
                                        
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 last edited by

                                          Dann versuche mal im Verzeichnis /etc/init.d als user root

                                          iobroker stop
                                          ./iobroker.sh start
                                          

                                          Wird iobroker gestartet oder erscheinen Fehlemeldungen ?

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            GASMAST3R last edited by

                                            @paul53:

                                            Dann versuche mal im Verzeichnis /etc/init.d als user root

                                            iobroker stop
                                            ./iobroker.sh start
                                            

                                            Wird iobroker gestartet oder erscheinen Fehlemeldungen ? ` Wenn ich start anhänge startet alles

                                            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

                                            493
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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