Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Kein autostart debian stretch

    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

    Kein autostart debian stretch

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

      @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 😞

      1 Reply Last reply Reply Quote 0
      • C
        chrram last edited by

        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 Reply Last reply Reply Quote 0
        • ruhr70
          ruhr70 last edited by

          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.).

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

            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

            1 Reply Last reply Reply Quote 0
            • kmxak
              kmxak Most Active last edited by

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

              1 Reply Last reply Reply Quote 0
              • C
                chrram last edited by

                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 Reply Last reply Reply Quote 0
                • paul53
                  paul53 last edited by

                  @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*
                  
                  1 Reply Last reply Reply Quote 0
                  • C
                    chrram last edited by

                    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 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 last edited by

                      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
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • C
                        chrram last edited by

                        @paul53:

                        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
                        
                        ```` `  
                        

                        so sieht meine jetzt auch aus

                         ls -l /etc/rc?.d/*iob*
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                        lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                        
                        

                        dann ein reboot aber kein autostart

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

                          @chrram:

                          dann ein reboot aber kein autostart `
                          Doch, genau mittels iobroker.sh soll das Killen und der Autostart von ioBroker erfolgen. Jedenfalls funktioniert es auf meinem RPi so (ohne Eingriffe meinerseits).

                          1 Reply Last reply Reply Quote 0
                          • C
                            chrram last edited by

                            @paul53:

                            @chrram:

                            dann ein reboot aber kein autostart Doch, genau mittels iobroker.sh soll das Killen und der Autostart von ioBroker erfolgen. Jedenfalls funktioniert es auf meinem RPi so (ohne Eingriffe meinerseits).
                            bei mir leider nicht wenn ich wieder die iobroker.service starte kommt der gleiche fehler wie vohere 😞 solangsam verzweile ich 😢

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

                              @chrram:

                              solangsam verzweile ich `
                              Verständlich, aber nun bin ich auch mit meinem Latein am Ende. Starten und Stoppen funktioniert aber mit iobroker.sh ?

                              cd /etc/init.d
                              ./iobroker.sh start
                              ./iobroker.sh stop
                              
                              1 Reply Last reply Reply Quote 0
                              • C
                                chrram last edited by

                                @paul53:

                                @chrram:

                                solangsam verzweile ich `
                                Verständlich, aber nun bin ich auch mit meinem Latein am Ende. Starten und Stoppen funktioniert aber mit iobroker.sh ?

                                cd /etc/init.d
                                ./iobroker.sh start
                                ./iobroker.sh stop
                                ```` `  
                                

                                Alle 3 funktionen gehen start webif lässt sich aufrufen stop und restart. deshalb wundert mich das ob es evt an der tvheadend.service oder so liegt

                                root@HomeServer:/usr/bin# cd /etc/init.d
                                root@HomeServer:/etc/init.d# ./iobroker.sh start
                                Starting ioBrokerStarting iobroker controller daemon...
                                iobroker controller daemon started. PID: 1611
                                root@HomeServer:/etc/init.d# ./iobroker.sh stop
                                Stopping ioBrokerStopping iobroker controller daemon...
                                iobroker controller daemon stopped.
                                Exit code for "killall.sh": 0
                                root@HomeServer:/etc/init.d# ./iobroker.sh restart
                                Stopping ioBrokeriobroker controller daemon is not running
                                Starting ioBrokerStarting iobroker controller daemon...
                                iobroker controller daemon started. PID: 1684
                                
                                

                                /etc/systemd/system/iobroker.service

                                #
                                
                                # Start ioBroker Daemon
                                
                                #
                                
                                # /etc/systemd/system/iobroker.service
                                
                                # Invoking scripts to start/shutdown ioBroker
                                
                                [Unit]
                                
                                Description=ioBroker server task
                                
                                Requires=network.target
                                
                                [Service]
                                
                                #User=roker
                                
                                User=root
                                
                                Type=forking
                                
                                RemainAfterExit=yes
                                
                                Restart=no
                                
                                ExecStart=/etc/init.d/iobroker.sh
                                
                                [Install]
                                
                                WantedBy=multi-user.target
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 last edited by

                                  @chrram:

                                  /etc/systemd/system/iobroker.service `
                                  Das Kommando existiert auf meinem RPi nicht.

                                  root@rpihm:/etc/systemd/system# ls -l
                                  total 52
                                  -rw-r--r-- 1 root root 1551 Sep 18  2015 autologin@.service
                                  drwxr-xr-x 2 root root 4096 Mar 18  2016 bluetooth.target.wants
                                  lrwxrwxrwx 1 root root   37 Mar 18  2016 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
                                  lrwxrwxrwx 1 root root   40 Mar 18  2016 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
                                  lrwxrwxrwx 1 root root   37 Apr  7  2016 default.target -> /lib/systemd/system/multi-user.target
                                  lrwxrwxrwx 1 root root   34 Mar 18  2016 dhcpcd5 -> /lib/systemd/system/dhcpcd.service
                                  drwxr-xr-x 2 root root 4096 Apr  7  2016 dhcpcd.service.d
                                  drwxr-xr-x 2 root root 4096 Apr  7  2016 getty.target.wants
                                  drwxr-xr-x 2 root root 4096 Mar 18  2016 getty@tty1.service.d
                                  drwxr-xr-x 2 root root 4096 Jun  5  2016 halt.target.wants
                                  drwxr-xr-x 2 root root 4096 Apr  7  2016 multi-user.target.wants
                                  drwxr-xr-x 2 root root 4096 Jun  5  2016 poweroff.target.wants
                                  drwxr-xr-x 2 root root 4096 Mar 18  2016 rc-local.service.d
                                  drwxr-xr-x 2 root root 4096 Jun  5  2016 reboot.target.wants
                                  drwxr-xr-x 2 root root 4096 Mar 18  2016 sockets.target.wants
                                  lrwxrwxrwx 1 root root   31 Mar 18  2016 sshd.service -> /lib/systemd/system/ssh.service
                                  -rwxr-xr-x 1 root root  357 Apr  7  2016 susvd.service
                                  drwxr-xr-x 2 root root 4096 Mar 18  2016 sysinit.target.wants
                                  lrwxrwxrwx 1 root root   35 Mar 18  2016 syslog.service -> /lib/systemd/system/rsyslog.service
                                  root@rpihm:/etc/systemd/system#
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    chrram last edited by

                                    @paul53:

                                    @chrram:

                                    /etc/systemd/system/iobroker.service `
                                    Das Kommando existiert auf meinem RPi nicht.

                                    root@rpihm:/etc/systemd/system# ls -l
                                    total 52
                                    -rw-r--r-- 1 root root 1551 Sep 18  2015 autologin@.service
                                    drwxr-xr-x 2 root root 4096 Mar 18  2016 bluetooth.target.wants
                                    lrwxrwxrwx 1 root root   37 Mar 18  2016 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
                                    lrwxrwxrwx 1 root root   40 Mar 18  2016 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
                                    lrwxrwxrwx 1 root root   37 Apr  7  2016 default.target -> /lib/systemd/system/multi-user.target
                                    lrwxrwxrwx 1 root root   34 Mar 18  2016 dhcpcd5 -> /lib/systemd/system/dhcpcd.service
                                    drwxr-xr-x 2 root root 4096 Apr  7  2016 dhcpcd.service.d
                                    drwxr-xr-x 2 root root 4096 Apr  7  2016 getty.target.wants
                                    drwxr-xr-x 2 root root 4096 Mar 18  2016 getty@tty1.service.d
                                    drwxr-xr-x 2 root root 4096 Jun  5  2016 halt.target.wants
                                    drwxr-xr-x 2 root root 4096 Apr  7  2016 multi-user.target.wants
                                    drwxr-xr-x 2 root root 4096 Jun  5  2016 poweroff.target.wants
                                    drwxr-xr-x 2 root root 4096 Mar 18  2016 rc-local.service.d
                                    drwxr-xr-x 2 root root 4096 Jun  5  2016 reboot.target.wants
                                    drwxr-xr-x 2 root root 4096 Mar 18  2016 sockets.target.wants
                                    lrwxrwxrwx 1 root root   31 Mar 18  2016 sshd.service -> /lib/systemd/system/ssh.service
                                    -rwxr-xr-x 1 root root  357 Apr  7  2016 susvd.service
                                    drwxr-xr-x 2 root root 4096 Mar 18  2016 sysinit.target.wants
                                    lrwxrwxrwx 1 root root   35 Mar 18  2016 syslog.service -> /lib/systemd/system/rsyslog.service
                                    root@rpihm:/etc/systemd/system#
                                    
                                    ```` `  
                                    

                                    so sieht meine Struktur aus hast du denn die iobroker.service? wo steht bei dir denn der autostart in der RC.local? oder kann das ein anderer bestätigen ob die bei ihm da liegt (im Moment Ubuntu Server 16.04.3 LTS x64)

                                    :/etc/systemd/system# ls -l
                                    insgesamt 44
                                    lrwxrwxrwx 1 root root   40 Jan  1 14:03 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:09 default.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:24 final.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:09 getty.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:21 graphical.target.wants
                                    -rwxr-xr-x 1 root root  356 Jan  2 21:26 iobroker.service
                                    lrwxrwxrwx 1 root root   38 Jan  1 13:22 iscsi.service -> /lib/systemd/system/open-iscsi.service
                                    drwxr-xr-x 2 root root 4096 Jan  1 17:56 multi-user.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:09 network-online.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:24 paths.target.wants
                                    drwxr-xr-x 2 root root 4096 Jan  1 14:03 sockets.target.wants
                                    lrwxrwxrwx 1 root root   31 Jan  1 13:24 sshd.service -> /lib/systemd/system/ssh.service
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:23 sysinit.target.wants
                                    lrwxrwxrwx 1 root root   35 Jan  1 13:09 syslog.service -> /lib/systemd/system/rsyslog.service
                                    drwxr-xr-x 2 root root 4096 Jan  1 13:40 timers.target.wants
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 last edited by

                                      @chrram:

                                      wo steht bei dir denn der autostart in der RC.local? `
                                      Unter Raspbian wird mit der Datei etc/rc.local nur die RTC gestartet. __ioBroke__r wird mittels des Skripts

                                      etc/init.d/iobroker.sh, auf das die Links in rc0.d … rc6.d verweisen, gestartet und gestoppt.

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        chrram last edited by

                                        okay evt meldet sich ja noch jemand der mehr zu der Datei sagen kann. komisch ist das ich das Problem bei Debian und bei ubuntu habe beiedes frisch installiert und dann iobroker installiert und bei beiden kein Auto start . bei Facebook ist auch ein Problem der auch beides probiert hat und das gleiche Problem hat.

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          chrram last edited by

                                          so habe jetzt ein autostart aber würde sagen die dreckige variante evt kann mir jemand sagen ob das in Richtung Sicherheit des Server gefährlich werden kann.(root Login per ssh verboten und ssh port geändert und fail2 ban)

                                          also habe es so gelöst.

                                          in der sudo nano etc/rc.local habe ich

                                          sudo /etc/init.d/iobroker.sh start

                                          eingefügt

                                          in der

                                          sudo nano /etc/sudoers

                                          habe ich

                                          %users ALL = NOPASSWD: /etc/init.d/iobroker.sh

                                          eingefügt das sudo bei dem script kein passwort haben will so startet es bei mir.

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            simpixo last edited by

                                            Was zeigt denn der Befehl an

                                            > systemctl status iobroker

                                            Ich bin gerade auch am neuinstallieren und mein iobroker startete auch nicht mehr automatisch (Ich nutze Ubuntu 16.04)

                                            Meine Fehlermeldung war die folgende

                                            ` > root@HQ-ioBroker-01:~# systemctl status iobroker

                                            ● iobroker.service - LSB: starts ioBroker

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

                                            Active: failed (Result: exit-code) since Mi 2018-01-03 09:40:20 CET; 7min ago

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

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at Function.Module._resolveFilename (module.js:469:15)

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at Function.Module._load (module.js:417:25)

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at Module.runMain (module.js:604:10)

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at run (bootstrap_node.js:383:7)

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at startup (bootstrap_node.js:149:9)

                                            Jan 03 09:40:20 HQ-ioBroker-01 iobroker.sh[1220]: at bootstrap_node.js:496:3

                                            Jan 03 09:40:20 HQ-ioBroker-01 systemd[1]: iobroker.service: Control process exited, code=exited status=1

                                            Jan 03 09:40:20 HQ-ioBroker-01 systemd[1]: Failed to start LSB: starts ioBroker.

                                            Jan 03 09:40:20 HQ-ioBroker-01 systemd[1]: iobroker.service: Unit entered failed state.

                                            Jan 03 09:40:20 HQ-ioBroker-01 systemd[1]: iobroker.service: Failed with result 'exit-code'. `

                                            Hast du die gleiche Meldung? Wenn ja dann hätte ich vielleicht eine Lösung für dich? 🙂 Bei mir startet nach langer suche nach einer Lösung, der IOBROKER nun wieder automatisch

                                            Gruß

                                            Adrian

                                            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

                                            629
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            19
                                            83
                                            17758
                                            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