Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Kein autostart debian stretch

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    346

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.6k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.5k

Kein autostart debian stretch

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
83 Beiträge 19 Kommentatoren 22.2k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • C Offline
    C Offline
    chrram
    schrieb am zuletzt editiert von
    #19
    /etc/init.d$ ls -l iobroker.sh
    -rwxrwxrwx 1 root root 1145 Jan  2 09:13 iobroker.sh
    christopher@HomeServer:/etc/init.d$
    christopher@HomeServer:/etc/init.d$ sudo ./iobroker.sh start
    sudo: unable to execute ./iobroker.sh: No such file or directory
    Aufgelegt
    christopher@HomeServer:/etc/init.d$
    christopher@HomeServer:/etc/init.d$ ls
    acpid         checkroot-bootclean.sh  fail2ban     irqbalance      lvm2-lvmpolld          mountdevsubfs.sh       open-vm-tools  rcS             sendsigs   umountfs
    apparmor      checkroot.sh            grub-common  iscsid          lxcfs                  mountkernfs.sh         plymouth       README          single     umountnfs.sh
    apport        console-setup           halt         keyboard-setup  lxd                    mountnfs-bootclean.sh  plymouth-log   reboot          skeleton   umountroot
    atd           cron                    hostname.sh  killprocs       mdadm                  mountnfs.sh            postfix        resolvconf      ssh        unattended-upgrades
    avahi-daemon  cryptdisks              hwclock.sh   kmod            mdadm-waitidle         networking             procps         rsync           tvheadend  urandom
    bootmisc.sh   cryptdisks-early        iobroker     lvm2            mountall-bootclean.sh  ondemand               rc             rsyslog         udev       uuidd
    checkfs.sh    dbus                    iobroker.sh  lvm2-lvmetad    mountall.sh            open-iscsi             rc.local       screen-cleanup  ufw
    christopher@HomeServer:/etc/init.d$ sudo sh iobroker.sh start
    iobroker.sh: 11: iobroker.sh: EUID: not found
    : not found: 17: iobroker.sh:
    sudo: Unbekannter Benutzer: root
    sudo: Regelwerks-Plugin konnte nicht initialisiert werden
    : not found: 23: iobroker.sh: }
    : not found: 24: iobroker.sh:
    sudo: Unbekannter Benutzer: root
    sudo: Regelwerks-Plugin konnte nicht initialisiert werden
    : not found: 29: iobroker.sh: }
    iobroker.sh: 30: iobroker.sh: Syntax error: word unexpected (expecting "in")
    
    
    1 Antwort Letzte Antwort
    0
    • paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #20

      @paul53:

      Wenn die Länge (1098) stimmt `
      @chrram:

      -rwxrwxrwx 1 root root 1145 Jan  2 09:13 iobroker.sh
      ```` `  
      

      Die Datei ist ausführbar, aber die Länge stimmt nicht (ist DOS-Format). Also erst einmal in Linux-Format umwandeln

      sudo mv iobroker.sh iobroker.dos
      sudo tr -d '\r' < iobroker.dos > iobroker.sh
      ls -l iob*
      

      bevor dann die weiteren Schritte erfolgen können.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Antwort Letzte Antwort
      0
      • C Offline
        C Offline
        chrram
        schrieb am zuletzt editiert von
        #21
        sudo mv iobroker.sh iobroker.dos
        [sudo] Passwort für christopher:
        christopher@HomeServer:/etc/init.d$ sudo tr -d '\r' < iobroker.dos > iobroker.sh
        -bash: iobroker.sh: Keine Berechtigung
        christopher@HomeServer:/etc/init.d$ su root
        Passwort:
        root@HomeServer:/etc/init.d# sudo tr -d '\r' < iobroker.dos > iobroker.sh
        root@HomeServer:/etc/init.d# ls -l iob*
        -rwxr-xr-x 1 root root  870 Jan  1 19:41 iobroker
        -rwxrwxrwx 1 root root 1145 Jan  2 09:13 iobroker.dos
        -rw-r--r-- 1 root root 1099 Jan  2 12:01 iobroker.sh
        root@HomeServer:/etc/init.d#
        root@HomeServer:/etc/init.d# sh iobroker.sh
        iobroker.sh: 11: iobroker.sh: EUID: not found
        Usage: iobroker {start|stop|restart}
        root@HomeServer:/etc/init.d# nano iobroker.sh
        root@HomeServer:/etc/init.d# chmod 777 iobroker.sh
        root@HomeServer:/etc/init.d# ls -l iob*
        -rwxr-xr-x 1 root root  870 Jan  1 19:41 iobroker
        -rwxrwxrwx 1 root root 1145 Jan  2 09:13 iobroker.dos
        -rwxrwxrwx 1 root root 1099 Jan  2 12:01 iobroker.sh
        root@HomeServer:/etc/init.d# sh iobroker.sh
        iobroker.sh: 11: iobroker.sh: EUID: not found
        Usage: iobroker {start|stop|restart}
        
        
        1 Antwort Letzte Antwort
        0
        • ruhr70R Offline
          ruhr70R Offline
          ruhr70
          schrieb am zuletzt editiert von
          #22

          Ich schließe mich hier mal an.

          Rückmeldung: Neuinstallation 2018 ioBroker unter Ubuntu 16.04.

          js-controller: 1.2.3 wurde installiert

          node.js: 8.9.3

          npm: 4.6.1

          Kein Autostart.

          Rückmeldung erfolgt in dieser Phase, da eine Standardinstallation nicht mit Autostart funktioniert.

          Als nächstes schaue ich mir an, was als Workaround möglich ist (die Datei iobroker.sh habe ich mir noch nicht angesehen, kommt als nächstes).

          Adapter: Fritzbox, Unify Circuit
          Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

          1 Antwort Letzte Antwort
          0
          • paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von
            #23

            @chrram:

            -rwxrwxrwx 1 root root 1099 Jan 2 12:01 iobroker.sh

            root@HomeServer:/etc/init.d# sh iobroker.sh

            iobroker.sh: 11: iobroker.sh: EUID: not found

            Usage: iobroker {start|stop|restart} `
            Mich wundert, dass die Dateilänge 1099 anstelle 1098 Byte ist, aber es funktioniert vielleicht trotzdem, allerdings so (im Verzeichnis /etc/init.d und als user root):

            iobroker stop
            ./iobroker.sh start
            

            Wenn iobroker dann startet, weiter mit

            update-rc.d iobroker.sh defaults
            reboot
            

            Was macht die Datei iobroker (Länge 870 Byte) in diesem Verzeichnis ? Die gehört da eigentlich nicht hin.

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Antwort Letzte Antwort
            0
            • M Offline
              M Offline
              muggle783
              schrieb am zuletzt editiert von
              #24

              @Homoran:

              @chrram:

              Also habe es getestet mit den Pfad zu Node Anpassung des User aber kommt immer der gleiche fehler `
              Welcher User? - bei mir steht root

              MIt dieser klappt es bei mir

              Ich musste sie auf .txt umbenennen! Bitte wieder eine .sh daraus machen `

              Danke! Bei mir hat es mit dieser Datei funktioniert. Hatte die gleichen Probleme mit dem Autostart.

              1 Antwort Letzte Antwort
              0
              • C Offline
                C Offline
                chrram
                schrieb am zuletzt editiert von
                #25

                cd /etc/init.d

                root@HomeServer:/etc/init.d# iobroker stop

                module.js:327

                throw err;

                ^

                Error: Cannot find module '/etc/init.d/node_modules/iobroker.js-controller/iobroker.js'

                at Function.Module._resolveFilename (module.js:325:15)

                at Function.Module._load (module.js:276:25)

                at Function.Module.runMain (module.js:441:10)

                at startup (node.js:140:18)

                at node.js:1043:3

                root@HomeServer:/etc/init.d# ./iobroker.sh start

                Starting ioBrokerStarting iobroker controller daemon…

                iobroker controller daemon started. PID: 1722

                root@HomeServer:/etc/init.d#

                root@HomeServer:/etc/init.d# update-rc.d iobroker.sh defaults

                insserv: script iobroker.dos: service iobroker.sh already provided!

                root@HomeServer:/etc/init.d#reboot

                das steht im journal

                systemd[1]: Starting ioBroker server task…

                Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart}

                aber komme nicht aufs webif nur wenn ich das script manuel starte

                /opt/iobroker$ iobroker list instances

                system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin

                system.adapter.discovery.0 : discovery - enabled

                1 Antwort Letzte Antwort
                0
                • HomoranH Nicht stören
                  HomoranH Nicht stören
                  Homoran
                  Global Moderator Administrators
                  schrieb am zuletzt editiert von
                  #26

                  @chrram:

                  der tvheadend Server startet bei mir auch voll automatisch `
                  Was ist das?

                  kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                  1 Antwort Letzte Antwort
                  0
                  • C Offline
                    C Offline
                    chrram
                    schrieb am zuletzt editiert von
                    #27

                    @Homoran:

                    @chrram:

                    der tvheadend Server startet bei mir auch voll automatisch Was ist das?
                    Ein sat Server wollte nur damit sagen das andere Autostart Funktionen gehen

                    Gesendet von iPhone mit Tapatalk

                    1 Antwort Letzte Antwort
                    0
                    • HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von
                      #28

                      Habe als Linux-noob gerade versucht das bei ubuntu-users nachzuvollziehen.

                      Habe ich das richtig verstanden, dass diese Installation evtl. einiges umbiegt?

                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                      1 Antwort Letzte Antwort
                      0
                      • C Offline
                        C Offline
                        chrram
                        schrieb am zuletzt editiert von
                        #29

                        @Homoran:

                        Habe als Linux-noob gerade versucht das bei ubuntu-users nachzuvollziehen.

                        Habe ich das richtig verstanden, dass diese Installation evtl. einiges umbiegt? `
                        Meinst du tvheadend ? Das hatte ich danach erst installiert vorher ging iobroker auch nicht

                        Gesendet von iPhone mit Tapatalk

                        1 Antwort Letzte Antwort
                        0
                        • paul53P Offline
                          paul53P Offline
                          paul53
                          schrieb am zuletzt editiert von
                          #30

                          @chrram:

                          das steht im journal

                          systemd[1]: Starting ioBroker server task…

                          Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart} `
                          Dann wurde ioBroker wohl nicht automatisch gestartet. Für das "Weshalb" reichen meine Linux-Kenntnisse nicht :(

                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                          1 Antwort Letzte Antwort
                          0
                          • C Offline
                            C Offline
                            chrram
                            schrieb am zuletzt editiert von
                            #31

                            das kommt wenn ich iobroker.service per hand starte

                            [b]sudo systemctl start iobroker.service[/b]
                            Warning: iobroker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
                            Job for iobroker.service failed because the control process exited with error code. See "systemctl status iobroker.service" and "journalctl -xe" for details.
                            christopher@HomeServer:[b]/etc/systemd/system$ journalctl -xe
                            [/b]Jan 02 15:21:31 HomeServer sudo[1527]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/nano iobroker.service
                            Jan 02 15:21:31 HomeServer sudo[1527]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:21:41 HomeServer sudo[1527]: pam_unix(sudo:session): session closed for user root
                            Jan 02 15:21:44 HomeServer sudo[1529]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl status iobroker.service
                            Jan 02 15:21:44 HomeServer sudo[1529]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:21:44 HomeServer sudo[1529]: pam_unix(sudo:session): session closed for user root
                            Jan 02 15:21:55 HomeServer sudo[1532]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl start iobroker.service
                            Jan 02 15:21:55 HomeServer sudo[1532]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:21:55 HomeServer systemd[1]: Starting ioBroker server task...
                            -- Subject: Unit iobroker.service has begun start-up
                            -- Defined-By: systemd
                            -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                            --
                            -- Unit iobroker.service has begun starting up.
                            Jan 02 15:21:55 HomeServer iobroker.sh[1535]: Usage: iobroker {start|stop|restart}
                            Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Control process exited, code=exited status=1
                            Jan 02 15:21:55 HomeServer systemd[1]: Failed to start ioBroker server task.
                            -- Subject: Unit iobroker.service has failed
                            -- Defined-By: systemd
                            -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                            --
                            -- Unit iobroker.service has failed.
                            --
                            -- The result is failed.
                            Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Unit entered failed state.
                            Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Failed with result 'exit-code'.
                            Jan 02 15:21:55 HomeServer sudo[1532]: pam_unix(sudo:session): session closed for user root
                            Jan 02 15:22:00 HomeServer sudo[1538]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl status iobroker.service
                            Jan 02 15:22:00 HomeServer sudo[1538]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:22:00 HomeServer sudo[1538]: pam_unix(sudo:session): session closed for user root
                            Jan 02 15:22:03 HomeServer sudo[1541]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/nano iobroker.service
                            Jan 02 15:22:03 HomeServer sudo[1541]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:22:09 HomeServer sudo[1541]: pam_unix(sudo:session): session closed for user root
                            Jan 02 15:22:11 HomeServer sudo[1543]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl start iobroker.service
                            Jan 02 15:22:11 HomeServer sudo[1543]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                            Jan 02 15:22:11 HomeServer systemd[1]: Starting ioBroker server task...
                            -- Subject: Unit iobroker.service has begun start-up
                            -- Defined-By: systemd
                            -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                            --
                            -- Unit iobroker.service has begun starting up.
                            Jan 02 15:22:11 HomeServer iobroker.sh[1546]: Usage: iobroker {start|stop|restart}
                            Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Control process exited, code=exited status=1
                            Jan 02 15:22:11 HomeServer systemd[1]: Failed to start ioBroker server task.
                            -- Subject: Unit iobroker.service has failed
                            -- Defined-By: systemd
                            -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                            --
                            -- Unit iobroker.service has failed.
                            --
                            -- The result is failed.
                            Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Unit entered failed state.
                            Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Failed with result 'exit-code'.
                            Jan 02 15:22:11 HomeServer sudo[1543]: pam_unix(sudo:session): session closed for user root
                            
                            

                            @paul53:

                            @chrram:

                            das steht im journal

                            systemd[1]: Starting ioBroker server task…

                            Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart} Dann wurde ioBroker wohl nicht automatisch gestartet. Für das "Weshalb" reichen meine Linux-Kenntnisse nicht :(
                            danke dir trozdem vielmals für deine jetzige hilfe

                            1 Antwort Letzte Antwort
                            0
                            • ruhr70R Offline
                              ruhr70R Offline
                              ruhr70
                              schrieb am zuletzt editiert von
                              #32

                              Mit der Kombination des Tipps von Paul53 und der iobroker.sh Datei von Homoran hat es jetzt funktioniert. :)

                              http://forum.iobroker.net/viewtopic.php … 20#p109170

                              @paul53:

                              update-rc.d iobroker.sh defaults
                              reboot
                              ```` `  
                              

                              http://forum.iobroker.net/viewtopic.php … 54#p108996

                              @Homoran:

                              MIt dieser klappt es bei mir

                              Ich musste sie auf .txt umbenennen! Bitte wieder eine .sh daraus machen `

                              Der Einfachhalthalber habe ich HFS auf einem Windows Rechner gestartet (einfacher Webserver, über den man Dateien per http:// bereitstellen kann). http://www.rejetto.com/hfs/?f=dl

                              Es ist keine Installation erforderlich. Die hfs.exe als Admin starten und den Ordner hinzufügen, in der die gewünschte Datei liegt. Dort liegt die iobroker.sh von Homoran (vorher von .txt in .sh geändert)

                              Natürlich gibt es zig andere Wege die Datei auf den Linux Rechner zu bekommen.

                              Dann folgender Ablauf über die Konsole:

                              sudo su
                              cd /home
                              wget http://[ip des windows Rechner]/[Ordnername]/iobroker.sh
                              mv /home/iobroker.sh /etc/init.d/iobroker.sh
                              ls /etc/init.d/iobroker.sh -l
                              chmod +x /etc/init.d/iobroker.sh
                              ls /etc/init.d/iobroker.sh -l
                              reboot
                              
                              

                              update-rc.d iobroker.sh defaults hatte ich vor dem Reboot wohl nicht ausgeführt. :?

                              beim ls +l sah man, dass die kopierte Datei nicht die Rechte zum Ausführen hat (das x).

                              Mit der vorhandenen Datei (iobroker.sh) hatten alle Versuche mit update-rc.d iobroker.sh defaults im Verzeichnis /etc/init.d nicht funktioniert (mit Rechte ergänzen, usw.).

                              Adapter: Fritzbox, Unify Circuit
                              Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                              1 Antwort Letzte Antwort
                              0
                              • HomoranH Nicht stören
                                HomoranH Nicht stören
                                Homoran
                                Global Moderator Administrators
                                schrieb am zuletzt editiert von
                                #33

                                Ich bin geistig gerade woanders, aber:
                                @ruhr70:

                                Mit der Kombination des Tipps von Paul53 und der iobroker.sh Datei von Homoran hat es jetzt funktioniert `
                                genau dafür hatte ich sie gepostet.

                                Was ist jetzt an euren anders als bei meiner - und vor allem warum.

                                Wenn jemand, der sich damit auskennt, das beantworten kann, kommen wir vielleicht auch der Ursache auf den Grund.

                                Danke erst mal an alle die hier mitkämpfen!

                                Gruß

                                Rainer

                                kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                1 Antwort Letzte Antwort
                                0
                                • kmxakK Offline
                                  kmxakK Offline
                                  kmxak
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #34

                                  also ich hatte wie bereits in mehreren Beiträgen geschrieben auch das Problem.

                                  Stretch unter root (su root) installiert und kein autostart.

                                  Ich musste sudo nachinstallieren und habe dann root als sudoer eingefügt sowie hatte ich was mit der iobroker.sh irgendwas gemacht sowie nochmals irgendein install script ausgeführt.

                                  ! ````
                                  #!/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
                                  ! ````

                                  Gruß Alex

                                  1 Antwort Letzte Antwort
                                  0
                                  • C Offline
                                    C Offline
                                    chrram
                                    schrieb am zuletzt editiert von
                                    #35

                                    also ich habe root in der /etc/sudoers oder sollte er noch woanders drinen sein

                                    User privilege specification

                                    root ALL=(ALL:ALL) ALL

                                    denke das es evt was mit der

                                    systemctl start iobroker.service zu tun hat das Script funktioniert ja so

                                    Job for iobroker.service failed because the control process exited with error code. See "systemctl status iobroker.service" and "journalctl -xe" for details.

                                    1 Antwort Letzte Antwort
                                    0
                                    • paul53P Offline
                                      paul53P Offline
                                      paul53
                                      schrieb am zuletzt editiert von
                                      #36

                                      @chrram:

                                      root@HomeServer:/etc/init.d# iobroker stop

                                      module.js:327

                                      throw err;

                                      ^

                                      Error: Cannot find module '/etc/init.d/node_modules/iobroker.js-controller/iobroker.js' `
                                      Das würde mich stutzig machen, da es nichts mit dem Skript /etc/init.d/iobroker.sh zu tun hat, sondern vom Skript /usr/bin/iobroker ausgelöst wird. Woher kommt die Referenz auf das Verzeichnis /etc/init.d/node_modules ?
                                      @chrram:

                                      root@HomeServer:/etc/init.d# ./iobroker.sh start

                                      Starting ioBrokerStarting iobroker controller daemon…

                                      iobroker controller daemon started. PID: 1722

                                      root@HomeServer:/etc/init.d#

                                      root@HomeServer:/etc/init.d# update-rc.d iobroker.sh defaults

                                      insserv: script iobroker.dos: service iobroker.sh already provided! `
                                      Offenbar wird ioBroker vom Skript /etc/init.d/iobroker.sh gestartet. Dass in der Meldung von update-rc.d iobroker.dos auftaucht macht mich ebenfalls stutzig. Was sagt die Ausgabe von ?

                                      ls -l /etc/rc?.d/*iob*
                                      

                                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                      1 Antwort Letzte Antwort
                                      0
                                      • C Offline
                                        C Offline
                                        chrram
                                        schrieb am zuletzt editiert von
                                        #37
                                        ls -l /etc/rc?.d/*iob*
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc0.d/K01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc1.d/K01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc2.d/S01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc3.d/S01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc4.d/S01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc5.d/S01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                        lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc6.d/K01iobroker -> ../init.d/iobroker
                                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                        
                                        
                                        1 Antwort Letzte Antwort
                                        0
                                        • paul53P Offline
                                          paul53P Offline
                                          paul53
                                          schrieb am zuletzt editiert von
                                          #38

                                          Die Einträge mit ../init.d/iobroker gehören nicht dahin ! Auch die Datei /etc/init.d/iobroker ist zuviel !

                                          Versuche mal als user root

                                          update-rc.d -f iobroker remove
                                          ls -l /etc/rc?.d/*iob*
                                          

                                          EDIT: So sieht es auf meinem RPi aus:

                                          root@rpihm:~# ls -l /etc/rc?.d/*iob*
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                          lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                          
                                          

                                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          764

                                          Online

                                          32.5k

                                          Benutzer

                                          81.8k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe