Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [HowTo][Anleitung] Install von ioBroker auf Debian (Wheezy) in einer VM

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.1k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    941

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

[HowTo][Anleitung] Install von ioBroker auf Debian (Wheezy) in einer VM

Scheduled Pinned Locked Moved ioBroker Allgemein
27 Posts 8 Posters 16.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BluefoxB Offline
    BluefoxB Offline
    Bluefox
    wrote on last edited by
    #17

    @derAuge:

    @StefSign:

    Hallo,

    probier doch mal NODE_PATH=which node

    Dabei wird durch die Backticks "which node" ausgeführt und das Ergebnis NODE_PATH zugewiesen. Backticks (nicht mit Singleticks verwechseln) gehen auch für andere UNIX Befehle.

    Docker:

    • Na da bin ich auch dran interessiert! :-)

    Steve `

    Das war der erste Schritt. Passt

    root@pi2:~# NODE_PATH=`which node`
    root@pi2:~# echo $NODE_PATH
    /usr/local/bin/node
    

    Die Var wird gesetzt

    Nun zum nächsten Problem

    Da in der Var ein "/" ist, wird dieser als Komando gewertet und es kommt zu einer Fehlermeldung

    root@pi2:~# sed -i -e "s/NODECMD=.*/NODECMD=$NODE_PATH/" /etc/init.d/iobroker.sh
    sed: -e Ausdruck #1, Zeichen 23: Unbekannte Option für `s'
    
    

    Lösung ist : "\ Hebt die spezielle Bedeutung des nächsten Zeichens auf. "

    Da ich aber mehrere "/" in meiner Var habe funktioniert das nicht

    Mein Test ohne Var (mit händischen Daten) sieht so aus:

    root@pi2:~# sed -i -e "s/NODECMD=.*/NODECMD=\/usr\/bin\/node/" /etc/init.d/iobroker.sh
    
    

    Durch \ werden die spezielle Bedeutung der nächsten Zeichen aufgehoben. Ergebniss ist dann OK

    Aber es soll/muss ja mit der Var funktionieren.

    Suchen…. Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen.... Suchen....

    Und endlich gefunden:

    • Du verwendest gleich zwei Zeichen in dem Ausdruck, die von sed als

    > reserviert betrachtet werden.
    
    >
    
    > "Normalerweise" verwendet sed "/" als Trennzeichen. Also z.B.
    
    > "s/alt/neu/". Das geht nicht, weil "/" im Pfad vorkommen kann. Deswegen
    
    > weicht man auf "#" als Trennzeichen aus. Das geht natürlich in dem
    
    > Moment nicht mehr, wo Du "#" in dem Ausdruck verwenden willst. 
    

    Also sieht es nun folgendermassen aus:

    root@pi2:~# NODE_PATH=`which node`
    root@pi2:~# echo $NODE_PATH
    /usr/local/bin/node
    root@pi2:~#
    root@pi2:~# sed -i -e "s#NODECMD=.*#NODECMD=$NODE_PATH#" /etc/init.d/iobroker.sh
    root@pi2:~#
    
    

    Sooo einfach kann Linux sein

    Nun erst mal Frühstück und dann weiter mit dem Docker :) … werde berichten

    Gruß

    derAuge `
    ich habe iobroker Packet upgedated:

    • (bluefox) create environment variable IOBROKER_HOME

    • (bluefox) iobroker command is accessible from everywhere

    ***** (bluefox) detect nodejs path with 'which node'****

    Das heißt, man kann jetzt in scripts $IOBROKER_HOME variable verwenden: z.b.````
    cd $IOBROKER_HOME

    Und ****__iobroker__**** kann man jetzt überall aufrufen und nicht unbedingt aus "/opt/iobroker".
    
    Das haben aber nur neue Installationen. Bei älteren muss es manuell eingetragen werden.
    
    Und dass bei der Installation node Pfad auch berücksichtigt wird.
    1 Reply Last reply
    0
    • derAugeD Offline
      derAugeD Offline
      derAuge
      wrote on last edited by
      #18

      Sauber!

      Nun läuft der Dienst auch nach Neustart

      Gruß

      derAuge

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kev0
        wrote on last edited by
        #19

        Hi,

        habe mit einen debian server aufgesetzt und bekomme nun ein Problem beim Neustart:

        Der Adapter Teil lädt nicht und im log von iobroker steht:

        ioBroker	2015-05-25 17:47:23	error	host.ioBroker Invalid request getInstalled. "callback" or "from" is null
        ioBroker	2015-05-25 17:47:23	error	host.ioBroker Invalid request getRepository. "callback" or "from" is null
        ioBroker	2015-05-25 17:47:23	info	host.ioBroker instance system.adapter.admin.0 started with pid 720
        

        beim manuellen Start über das bootscript kommt (weiss nicht ob das von Relevanz ist)

        root@ioBroker:/etc/init.d# sh iobroker.sh start
        iobroker.sh: 11: iobroker.sh: EUID: not found
        Starting ioBrokerStarting ioBroker controller daemon...
        ioBroker controller daemon started. PID: 796
        
        

        den node Pfad habe ich zu /usr/bin/node angepasst.

        nach dem händischen Starten geht alles wie es soll…

        1 Reply Last reply
        0
        • derAugeD Offline
          derAugeD Offline
          derAuge
          wrote on last edited by
          #20

          @Kev0:

          Hi,

          habe mit einen debian server aufgesetzt und bekomme nun ein Problem beim Neustart:

          Der Adapter Teil lädt nicht und im log von iobroker steht:

          ioBroker	2015-05-25 17:47:23	error	host.ioBroker Invalid request getInstalled. "callback" or "from" is null
          ioBroker	2015-05-25 17:47:23	error	host.ioBroker Invalid request getRepository. "callback" or "from" is null
          ioBroker	2015-05-25 17:47:23	info	host.ioBroker instance system.adapter.admin.0 started with pid 720
          

          beim manuellen Start über das bootscript kommt (weiss nicht ob das von Relevanz ist)

          root@ioBroker:/etc/init.d# sh iobroker.sh start
          iobroker.sh: 11: iobroker.sh: EUID: not found
          Starting ioBrokerStarting ioBroker controller daemon...
          ioBroker controller daemon started. PID: 796
          
          

          den node Pfad habe ich zu /usr/bin/node angepasst.

          nach dem händischen Starten geht alles wie es soll… `

          Hallo Kev0

          willkommen im Forum

          HAst du mit "root" im "Verzeichniss" installiert?

          root@ioBroker:~# ### Install
          root@ioBroker:~# mkdir /opt/iobroker
          root@ioBroker:~# cd /opt/iobroker
          root@ioBroker:/opt/iobroker# npm install iobroker
          

          Gruß

          derAuge

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kev0
            wrote on last edited by
            #21

            Ja alles so geschehen.

            Nach total Neustart der Maschine, nicht nur über reboot, gehts jetzt wundersamer Weise einwandfrei.

            Danke trotzdem

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sebbo
              wrote on last edited by
              #22

              Hallo zusammen,

              ich habe jetzt versucht anhand dieser Anleitung mein ioBroker zu virtualisieren.

              Bei mir kommt allerdings bei der Installation folgende Meldung:

              root@ioBrokerVM:/opt/iobroker# npm install iobroker
              \
              > iobroker@0.5.6 install /opt/iobroker/node_modules/iobroker
              > node lib/setup.js
              
              npm install iobroker.js-controller --production --prefix /opt/iobroker
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing utf-8-validate@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing utf-8-validate@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing bufferutil@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing bufferutil@1.2.1
              npm install iobroker.admin --production --prefix /opt/iobroker
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.admin/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing utf-8-validate@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.admin/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing bufferutil@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.admin/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing utf-8-validate@1.2.1
              gyp ERR! build error
              gyp ERR! stack Error: not found: make
              gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
              gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
              gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
              gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:108:15)
              gyp ERR! System Linux 3.16.0-4-amd64
              gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/iobroker.admin/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
              gyp ERR! node -v v0.10.40
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              npm WARN optional dep failed, continuing bufferutil@1.2.1
              Write "./iobroker start" to start the ioBroker
              Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start
              iobroker is started. Go to "http://ip-addr:8081" to open the admin UI.
              iobroker@0.5.6 node_modules/iobroker
              âââ yargs@1.2.6 (minimist@0.1.0)
              root@ioBrokerVM:/opt/iobroker#</anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous> 
              

              Ist das so normal?

              Grüße vom Sebbo

              1 Reply Last reply
              0
              • S Offline
                S Offline
                samsungfreak
                wrote on last edited by
                #23

                Hallo *,

                ich habe vor ca. 4 Monaten meine Installation vom IOBroker auf einem Debian System durchgeführt.

                Allerdings habe ich auch das Problem, dass der IOBroker Dienst nach einem Reboot nicht startet.

                Leider komme ich hier nicht voran um das Problem zu lösen.

                Hat jemand noch weitere Ideen wie ich das Problem lösen kann?

                1 Reply Last reply
                0
                • BluefoxB Offline
                  BluefoxB Offline
                  Bluefox
                  wrote on last edited by
                  #24

                  @samsungfreak:

                  Hallo *,

                  ich habe vor ca. 4 Monaten meine Installation vom IOBroker auf einem Debian System durchgeführt.

                  Allerdings habe ich auch das Problem, dass der IOBroker Dienst nach einem Reboot nicht startet.

                  Leider komme ich hier nicht voran um das Problem zu lösen.

                  Hat jemand noch weitere Ideen wie ich das Problem lösen kann? `
                  Was passiert wenn du

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

                  Aufrufst?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    samsungfreak
                    wrote on last edited by
                    #25
                    sudo /etc/init.d/iobroker.sh start
                    

                    Hallo Bluefox,

                    sudo /etc/init.d/iobroker.sh start
                    -bash: sudo: Kommando nicht gefunden.
                    

                    dann ist wohl doch noch was falsch :roll:

                    1 Reply Last reply
                    0
                    • BluefoxB Offline
                      BluefoxB Offline
                      Bluefox
                      wrote on last edited by
                      #26

                      @samsungfreak:

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

                      Hallo Bluefox,

                      sudo /etc/init.d/iobroker.sh start
                      -bash: sudo: Kommando nicht gefunden.
                      

                      dann ist wohl doch noch was falsch :roll: `

                      Kann jemand /etc/init.d/iobroker.sh hier posten? Bin nicht am Rechner gerade.

                      1 Reply Last reply
                      0
                      • kmxakK Offline
                        kmxakK Offline
                        kmxak
                        Most Active
                        wrote on last edited by
                        #27

                        Das Problem mit dem Debian Autostart hatte ich gelöst. Sollte in einem meiner Beiträge stehen. Bin aber gerade nicht am Rechner. Edit http://forum.iobroker.net/viewtopic.php?t=6936

                        Gesendet von meinem SM-G930F mit Tapatalk

                        Gruß Alex

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Support us

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

                        717

                        Online

                        32.6k

                        Users

                        82.2k

                        Topics

                        1.3m

                        Posts
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Home
                        • Recent
                        • Tags
                        • Unread 0
                        • Categories
                        • Unreplied
                        • Popular
                        • GitHub
                        • Docu
                        • Hilfe