Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]iobroker startet nur noch manuell, nicht mehr automatisch

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]iobroker startet nur noch manuell, nicht mehr automatisch

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

      Muss jetzt wieder was zurück verschoben werden?

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

        @blackangel15741:

        Muss jetzt wieder was zurück verschoben werden? `
        Später.

        Es sieht so aus, dass man die Links wohl manuell löschen muss. Was ergibt

        ls -l /etc/rc?.d/*iob*
        ls -l /etc/init.d/*iob*
        
        1 Reply Last reply Reply Quote 0
        • B
          blackangel15741 last edited by

          root@cubietruck:~# ls -l /etc/rc?.d/iob

          ls: cannot access /etc/rc?.d/iob: No such file or directory

          root@cubietruck:~# ls -l /etc/init.d/iob

          -rwxr-xr-x 1 root root 1107 Jan 29 20:48 /etc/init.d/iobroker.sh.save

          -rwxr-xr-x 1 root root 1135 Jan 29 20:48 /etc/init.d/iobroker.sh.save.1

          -rwxr-xr-x 1 root root 1106 Jan 29 20:57 /etc/init.d/iobroker.sh.save.2

          -rwxr-xr-x 1 root root 1107 Jan 29 21:52 /etc/init.d/iobroker.sh.save.3

          -rwxr-xr-x 1 root root 1107 Jan 29 21:52 /etc/init.d/iobroker.sh.save.4

          root@cubietruck:~#

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

            Das sind die Übeltäter ! Die sollten gelöscht werden !

            rm /etc/init.d/iobroker*
            ls -l /etc/init.d/iob*
            
            1 Reply Last reply Reply Quote 0
            • B
              blackangel15741 last edited by

              root@cubietruck:~# ls -l /etc/rc?.d/iob

              ls: cannot access /etc/rc?.d/iob: No such file or directory

              root@cubietruck:~# ls -l /etc/init.d/iob

              -rwxr-xr-x 1 root root 1107 Jan 29 20:48 /etc/init.d/iobroker.sh.save

              -rwxr-xr-x 1 root root 1135 Jan 29 20:48 /etc/init.d/iobroker.sh.save.1

              -rwxr-xr-x 1 root root 1106 Jan 29 20:57 /etc/init.d/iobroker.sh.save.2

              -rwxr-xr-x 1 root root 1107 Jan 29 21:52 /etc/init.d/iobroker.sh.save.3

              -rwxr-xr-x 1 root root 1107 Jan 29 21:52 /etc/init.d/iobroker.sh.save.4

              root@cubietruck:~# rm /etc/init.d/iobroker*

              root@cubietruck:~# ls -l /etc/init.d/iob*

              ls: cannot access /etc/init.d/iob*: No such file or directory

              root@cubietruck:~#

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

                Nun zurück verschieben und aktivieren.

                mv /opt/iobroker/iobroker.sh /etc/init.d/
                ls -l /etc/init.d/iob*
                
                

                Wenn die Ausgabe eine ausführbare Datei iobroker.sh mit der Größe 1099 Byte zeigt, dann

                update-rc.d iobroker.sh defaults
                reboot
                
                
                1 Reply Last reply Reply Quote 0
                • B
                  blackangel15741 last edited by

                  root@cubietruck:~# mv /opt/iobroker/iobroker.sh /etc/init.d/

                  root@cubietruck:~# ls - l /etc/init.d/iob*

                  ls: cannot access -: No such file or directory

                  ls: cannot access l: No such file or directory

                  /etc/init.d/iobroker.sh

                  root@cubietruck:~#

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

                    Da ist ein Leerzeichen zwischen - und l (ls -l). das muss weg.

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

                      Danke für den Hinweis

                      Sind keine 1099

                      root@cubietruck:~# ls -l /etc/init.d/iob*

                      -rwxr-xr-x 1 root root 1087 Jan 29 22:23 /etc/init.d/iobroker.sh

                      root@cubietruck:~#

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

                        Oh, sind da 12 Byte verloren gegangen ? Poste mal den Inhalt in Code-Tags (oben, 4. Button: Code).

                        cat /etc/init.d/iobroker.sh
                        
                        1 Reply Last reply Reply Quote 0
                        • B
                          blackangel15741 last edited by

                          Wie mache ich das ?

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

                            @blackangel15741:

                            Wie mache ich das ? `
                            Über dem Editor-Fenster des Forums sind mehrere Button: B i u Quote Code List usw.

                            Du klickst auf Code und an der Stelle, an der dann der Cursor steht, fügst Du den Text aus dem Terminalfenster ein.

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

                              root@cubietruck:~# cat /etc/init.d/iobroker.sh

                              ### 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=/usr/bin/node
                              IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
                              RETVAL=0
                              IOBROKERUSER=root
                              
                              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
                              

                              root@cubietruck:~#

                              geändert: Code in Code-tags; Homoran (Mod)

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

                                Es fehlt die erste Zeile:

                                #!/bin/bash
                                

                                über

                                ### BEGIN INIT INFO
                                

                                Da ich vermute, dass der Editor nano die .save Dateien erzeugt hat, solltest Du die Datei nicht im Verzeichnis /etc/init.d editieren.

                                mv /etc/init.d/iobroker.sh /opt/iobroker/
                                nano /opt/iobroker/iobroker.sh
                                ls -l /opt/iobroker/iobroker.sh*
                                

                                Wenn die Dateilänge stimmt

                                mv /opt/iobroker/iobroker.sh /etc/init.d/
                                update-rc.d iobroker.sh defaults
                                reboot
                                
                                1 Reply Last reply Reply Quote 0
                                • B
                                  blackangel15741 last edited by

                                  root@cubietruck:~# cat /etc/init.d/iobroker.sh

                                  #!/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=/usr/bin/node

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

                                  RETVAL=0

                                  IOBROKERUSER=root

                                  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

                                  root@cubietruck:~#

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

                                    Ich lade Dich am Ostkreuz auf ein Burger Menü ein

                                    Es funktioniert wieder !!!!!!!!!

                                    Wie das passieren konnte, keine Ahnung. Muss man mit Updates von node sehr vorsichtig sein?

                                    Hätte das nie wieder hinbekommen.

                                    App connectBot war sehr hilfreich und kostenlos, konnte alles über Smartphone erledigen/ editieren.

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

                                      @blackangel15741:

                                      Muss man mit Updates von node sehr vorsichtig sein? `
                                      Ja, besonders bei einer Änderung der Hauptversion.

                                      Dein altes nodejs wurde als /usr/local/bin/node installiert, das neue nodejs als /usr/bin/node. Das kann das ioBroker-Start-Skript nicht wissen.

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

                                        Wie lässt sich das künftig vermeiden?

                                        Hatte nur updaten wollen, da glaube ich über iobroker bei updates von png ein Hinweis kam das node 4.5.0 benötigt wird. Und hatte eine niedrigere Version auf dem Cubie.

                                        Dachte ich tue mir mit einem update auf eine neuere Version was gutes.

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

                                          @blackangel15741:

                                          Dachte ich tue mir mit einem update auf eine neuere Version was gutes. `
                                          Ja, das macht man auch. Es kann aber unerwünschte Nebeneffekte haben, wie Du gemerkt hast.

                                          Es hätte auch geholfen, einen Symlink /usr/local/bin/node auf /usr/bin/node zu erzeugen (wäre einfacher gewesen).

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

                                            Nochmals vielen, vielen Dank für die Geduld und Hilfe!

                                            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

                                            764
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            63
                                            7590
                                            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