Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ENTWURF Installationaleitung / ioBroker auf PI3 (Jessie)

    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

    ENTWURF Installationaleitung / ioBroker auf PI3 (Jessie)

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

      Hallo Alex,

      Danke für deine Info.

      Kannst du mir noch verraten welche Jessie Version du genutzt hast. Hast du Light genommen ?

      Und welche Node.Js Version hast du installiert ? Und wie hast du diese installiert ?

      Hast du sonst noch Besonderheiten festegestellt, die wir in der Anelitung erwähnen sollten ?

      Gruß

      Michael

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

        @mctom:

        Hallo Alex,

        Danke für deine Info.

        Kannst du mir noch verraten welche Jessie Version du genutzt hast. Hast du Light genommen ?

        Und welche Node.Js Version hast du installiert ? Und wie hast du diese installiert ?

        Hast du sonst noch Besonderheiten festegestellt, die wir in der Anelitung erwähnen sollten ?

        Gruß

        Michael `

        Image, aktuelle vom raspberrypi.org

        Full desktop image based on Debian Jessie

        Version: March 2016

        Release date: 2016-03-18

        Kernel version: 4.1

        fasse dann kurz zusammen mein vorgehen..

        1. Mit pi einloggen und Raspi Update durchführen.

        sudo apt-get update && sudo apt-get upgrade
        

        2. root passwort vergeben

        sudo passwd root
        

        3. Damit Anmeldung über "root" funktioniert muss die sshd_config bearbeitet werden

        sudo nano /etc/ssh/sshd_config
        

        suchen nach der Zeile "PermitRootLogin without-password" und setzen ein # davor (>> #PermitRootLogin without-password )

        strg+o (zum speichern)

        enter (bestätigen)

        strg+x (verlassen nano editor)

        sudo service ssh restart
        exit
        

        4. Mit "root" einloggen (wie bei allen weiteren Anmeldungen)

        5. Node deinstallieren

        apt-get --purge remove node
        apt-get --purge remove nodejs
        apt-get autoremove
        reboot
        

        6. Offizielle Node Installationsversion von nodejs.org

        curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
        apt-get install -y nodejs
        apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y
        npm install -g node-gyp
        reboot
        

        7. ioBroker installieren

        mkdir /opt/iobroker
        cd /opt/iobroker
        npm install --unsafe-perm iobroker
        

        Alle weitere Adapter über Gui vom ioBroker installiert.

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

          Wie sieht es denn mit dem Einspielen eines Backups aus? Also ich habe das komplette ioBroker Verzeichnis tagaktuell vorliegen und würde gerne den PI B austauschen…

          Die Idee war:

          • PI3 aufsetzen

          • ioBroker installieren und Verzeichnis wieder löschen

          • Backup drüber bügeln

          Grüße

          Brati

          1 Reply Last reply Reply Quote 0
          • blauholsten
            blauholsten Developer last edited by

            @Brati:

            Wie sieht es denn mit dem Einspielen eines Backups aus? Also ich habe das komplette ioBroker Verzeichnis tagaktuell vorliegen und würde gerne den PI B austauschen…

            Die Idee war:

            • PI3 aufsetzen

            • ioBroker installieren und Verzeichnis wieder löschen

            • Backup drüber bügeln

            Grüße

            Brati `
            Hi,

            habe zwar einen pi2, aber genau so habe ich das vor einiger Zeit nach dem neu aufsetzen meines Systems gemacht auf Jessie gemacht. Läuft bis heute sehr sehr stabil alles….

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

              Habe die Installation nun noch einige male getestet (auf Pi2 / da habe ich mehre)

              Leider habe ich zum schluss noch ein paar WARN-Meldungen.

              Folgendes vorgehen:

              1. Download Raspbian Jessie Lite # Minimal image based on Debian Jessie (2016-03-18-raspbian-jessie-lite)

              2. Image auf SD-Karte bringen

              3. Karte einlegen und RPi starten

              4. mit Putty per ssh und User pi am RPi anmelden

              5. alle Konfigurationen durchführen (sudo raspi-config)

              6. dem Nutzer Root ein Passwort vergeben (sudo passwd root)

              7. System neu starten (sudo reboot)

              8. mit Putty per ssh und User pi am RPi anmelden

              System Update: (als Root anmelden)
              	su
              	apt-get update && apt-get upgrade -y
              
              Installing Node.js via package manager
              	curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
              	sudo apt-get install -y nodejs
              
              nodejs (4.4.0-1nodesource1~jessie1) wird eingerichtet …
              	node -v
              

              v4.4.0

              	npm -v
              

              2.14.20

              	sudo npm install npm -g
              	npm -v
              

              3.8.2

              	sudo npm install -g graceful-fs
              

              graceful-fs@4.1.3 wurde installiert ### Es wird trotzdem ein WARN ausgegeben "Please update to graceful-fs@^4.0.0 as soon as possible"

              9. System neu starten (reboot)

              10. mit Putty per ssh und User pi am RPi anmelden

              Installation von ioBroker # (als root angemeldet)
              	su
              

              	mkdir /opt/iobroker
              	cd /opt/iobroker/
              	npm install iobroker
              

              `root@RPi2-2:/opt/iobroker# npm install iobroker
              
              > iobroker@0.7.1 install /opt/iobroker/node_modules/iobroker
              > node lib/setup.js
              
              npm install iobroker.js-controller --production --prefix /opt/iobroker
              npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
              npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
              npm WARN iobroker No description
              npm WARN iobroker No repository field.
              npm WARN iobroker No README data
              npm WARN iobroker No license field.
              npm install iobroker.admin --production --prefix /opt/iobroker
              sh: 0: getcwd() failed: No such file or directory
              path.js:424
                  var path = (i >= 0) ? arguments[i] : process.cwd();
                                                               ^
              
              Error: ENOENT: no such file or directory, uv_cwd
                  at Error (native)
                  at Object.posix.resolve (path.js:424:50)
                  at Function.Module._resolveLookupPaths (module.js:249:17)
                  at Function.Module._resolveFilename (module.js:316:31)
                  at Function.Module._load (module.js:276:25)
                  at Module.require (module.js:353:17)
                  at require (internal/module.js:12:17)
                  at /opt/iobroker/node_modules/npm/bin/npm-cli.js:23:11
                  at Object. <anonymous>(/opt/iobroker/node_modules/npm/bin/npm-cli.js:75:3)
                  at Module._compile (module.js:409:26)
              Write "./iobroker start" to start the ioBroker
              sh: 0: getcwd() failed: No such file or directory
              shell-init: Kann das aktuelle Verzeichnis nicht wiederfinden: getwd: Kann auf das übergeordnete Verzeichnis nicht zugreifen.: Datei oder Verzeichnis nicht gefunden
              sh: 0: getcwd() failed: No such file or directory
              insserv: pushd() can not change to directory /etc/init.d: No such file or directory
              update-rc.d: error: insserv rejected the script header
              chdir: Kann das aktuelle Verzeichnis nicht wiederfinden: getwd: Kann auf das übergeordnete Verzeichnis nicht zugreifen.: Datei oder Verzeichnis nicht gefunden
              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.
              /opt/iobroker
              └─┬ iobroker@0.7.1
                └─┬ yargs@4.3.2
                  ├── camelcase@2.1.1
                  ├─┬ cliui@3.1.1
                  │ ├─┬ strip-ansi@3.0.1
                  │ │ └── ansi-regex@2.0.0
                  │ └── wrap-ansi@2.0.0
                  ├── decamelize@1.2.0
                  ├─┬ lodash.assign@4.0.6
                  │ ├── lodash.keys@4.0.5
                  │ └── lodash.rest@4.0.1
                  ├─┬ os-locale@1.4.0
                  │ └─┬ lcid@1.0.0
                  │   └── invert-kv@1.0.0
                  ├─┬ pkg-conf@1.1.1
                  │ ├─┬ find-up@1.1.2
                  │ │ ├── path-exists@2.1.0
                  │ │ └─┬ pinkie-promise@2.0.0
                  │ │   └── pinkie@2.0.4
                  │ ├── object-assign@4.0.1
                  │ ├─┬ read-pkg@1.1.0
                  │ │ ├─┬ load-json-file@1.1.0
                  │ │ │ ├── graceful-fs@4.1.3
                  │ │ │ ├─┬ parse-json@2.2.0
                  │ │ │ │ └─┬ error-ex@1.3.0
                  │ │ │ │   └── is-arrayish@0.2.1
                  │ │ │ ├── pify@2.3.0
                  │ │ │ └─┬ strip-bom@2.0.0
                  │ │ │   └── is-utf8@0.2.1
                  │ │ ├─┬ normalize-package-data@2.3.5
                  │ │ │ ├── hosted-git-info@2.1.4
                  │ │ │ ├─┬ is-builtin-module@1.0.0
                  │ │ │ │ └── builtin-modules@1.1.1
                  │ │ │ ├── semver@5.1.0
                  │ │ │ └─┬ validate-npm-package-license@3.0.1
                  │ │ │   ├─┬ spdx-correct@1.0.2
                  │ │ │   │ └── spdx-license-ids@1.2.0
                  │ │ │   └─┬ spdx-expression-parse@1.0.2
                  │ │ │     └── spdx-exceptions@1.0.4
                  │ │ └── path-type@1.1.0
                  │ └── symbol@0.2.1
                  ├── read-pkg-up@1.0.1
                  ├── require-main-filename@1.0.1
                  ├─┬ string-width@1.0.1
                  │ ├─┬ code-point-at@1.0.0
                  │ │ └── number-is-nan@1.0.0
                  │ └── is-fullwidth-code-point@1.0.0
                  ├── window-size@0.2.0
                  ├── y18n@3.2.1
                  └── yargs-parser@2.1.2
              
              npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
              npm WARN iobroker No description
              npm WARN iobroker No repository field.
              npm WARN iobroker No README data
              npm WARN iobroker No license field.
              root@RPi2-2:/opt/iobroker#</anonymous>` 
              
              Vielleicht kann BlueFox hier mal schauen ob es kritisch ist (Oder was uns die WARN sagen wollen)
              
              Das Sytem läuft
               ` ~~[quote]~~
              root@RPi2-2:/opt/iobroker# ps -A | grep " io.*"
              
                702 ?        00:00:20 iobroker.js-con
              
                711 ?        00:00:07 io.admin.0
              
              root@RPi2-2:/opt/iobroker#
               `  ` 
              
               ` ~~[quote]~~
              root@RPi2-2:/opt/iobroker# iobroker l i
              
              system.adapter.admin.0                 : admin       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
              
              root@RPi2-2:/opt/iobroker#
               `  ` 
              
              info: iobroker add chromecast
              
              >! ~~[spoiler]~~2016-03-23 22:36:02.474  - info: iobroker add chromecast
              >! 2016-03-23 22:36:04.844  - info: iobroker npm install iobroker.chromecast --production --prefix "/opt/iobroker" (System call)
              >! 2016-03-23 22:36:15.545  - info: iobroker npm
              >! 2016-03-23 22:36:15.549  - info: iobroker
              >! 2016-03-23 22:36:15.578  - info: iobroker WARN deprecated mdns-txt@2.0.0: WARNING: This project has been renamed to dns-txt. Install using dns-txt instead.
              >! 2016-03-23 22:36:41.358  - info: iobroker host.RPi2-2 install adapter chromecast
              >! 2016-03-23 22:36:41.406  - info: iobroker got /opt/iobroker/node_modules/iobroker.chromecast/admin
              >! 2016-03-23 22:36:41.436  - info: iobroker upload [1] chromecast.admin /opt/iobroker/node_modules/iobroker.chromecast/admin/index.html index.html text/html
              >! 2016-03-23 22:36:41.556  - info: iobroker upload [0] chromecast.admin /opt/iobroker/node_modules/iobroker.chromecast/admin/chromecast.png chromecast.png image/png
              >! 2016-03-23 22:36:41.737  - info: iobroker host.RPi2-2 object system.adapter.chromecast created
              >! 2016-03-23 22:36:41.848  - info: iobroker host.RPi2-2 create instance chromecast
              >! 2016-03-23 22:36:41.877  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.uptime created
              >! 2016-03-23 22:36:41.917  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.memRss created
              >! 2016-03-23 22:36:41.963  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.memHeapTotal created
              >! 2016-03-23 22:36:42.008  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.memHeapUsed created
              >! 2016-03-23 22:36:42.048  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.connected created
              >! 2016-03-23 22:36:42.084  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0.alive created
              >! 2016-03-23 22:36:42.118  - info: host.RPi2-2 object change system.adapter.chromecast.0
              >! 2016-03-23 22:36:42.149  - info: host.RPi2-2 instance system.adapter.chromecast.0 started with pid 834
              >! 2016-03-23 22:36:42.170  - info: iobroker host.RPi2-2 object system.adapter.chromecast.0 created
              >! 2016-03-23 22:36:42.216  - info: iobroker exit 0[/spoiler]
              
              iobroker add dwd
              
              >! ~~[spoiler]~~root@RPi2-2:/opt/iobroker# iobroker add dwd
              >! npm install iobroker.dwd --production --prefix "/opt/iobroker" (System call)
              >! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
              >! npm WARN iobroker No description
              >! npm WARN iobroker No repository field.
              >! npm WARN iobroker No README data
              >! npm WARN iobroker No license field.
              >! host.RPi2-2 install adapter dwd
              >! npm install --production --prefix "/opt/iobroker/node_modules/iobroker.dwd" (System call)
              >! npm ERR! Linux 4.1.19-v7+
              >! npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.dwd"
              >! npm ERR! node v4.4.0
              >! npm ERR! npm  v3.8.2
              >! npm ERR! Cannot read property 'target' of null
              >! npm ERR!
              >! npm ERR! If you need help, you may report this error at:
              >! npm ERR!     <[https://github.com/npm/npm/issues](https://github.com/npm/npm/issues)>
              >! npm ERR! Please include the following file with any support request:
              >! npm ERR!     /opt/iobroker/npm-debug.log
              >! Cannot install iobroker.dwd: 1
              >! root@RPi2-2:/opt/iobroker#[/spoiler]
              
              wenn die Fragen mal beantwortet sind werde ich auch eine testreihe auf dem RPi3 machen
              
              Gruß
              
              Jürgen[/i]
              
              1 Reply Last reply Reply Quote 0
              • Jey Cee
                Jey Cee Developer last edited by

                ` > # 3.8.2

                	sudo npm install -g graceful-fs
                

                graceful-fs@4.1.3 wurde installiert ### Es wird trotzdem ein WARN ausgegeben "Please update to graceful-fs@^4.0.0 as soon as possible" ### `

                Dieses Problem sollte eigentlich der Vergangenheit angehören, das kommt von einer Abhängigkeit einer Abhängigkeit.

                Bluefox hat hier beim entsprechenden repository ein pullrequest gemacht der auch angenommen wurde.

                Hier der Pfad zum entsprechenden modul: /opt/iobroker/node_modules/iobroker.js-controller/node_modules/tar.gz/node_modules/fstream/node_modules/graceful-fs

                In der Datei package.json sollte die Version 4.1.3 stehen, wenn ja dann muss es noch wo anders ein paket geben das nicht aktuell ist.

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

                  FEHLER bei installation

                  info: iobroker host.RPi2-2 install adapter javascript

                  2016-03-23 23:34:45.931  - info: iobroker host.RPi2-2 install adapter javascript
                  2016-03-23 23:34:45.938  - info: iobroker npm install --production --prefix "/opt/iobroker/node_modules/iobroker.javascript" (System call)
                  2016-03-23 23:35:08.449  - info: iobroker npm
                  2016-03-23 23:35:08.472  - info: iobroker npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.javascript"npm ERR! node v4.4.0
                  npm ERR! npm  v3.8.2
                  
                  2016-03-23 23:35:08.496  - info: iobroker npm ERR! Cannot read property 'target' of null
                  npm ERR!
                  npm ERR! If you need help, you may report this error at:
                  npm ERR!     <https: github.com/npm/issues="">2016-03-23 23:35:08.732  - info: iobroker
                  2016-03-23 23:35:08.738  - info: iobroker npm ERR! Please include the following file with any support request:npm ERR!     /npm-debug.log
                  
                  2016-03-23 23:35:08.773  - info: iobroker Cannot install iobroker.javascript: 1
                  2016-03-23 23:35:08.815  - info: iobroker exit 25</https:> 
                  

                  Gruß

                  Jürgen

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

                    @Jey Cee:

                    In der Datei package.json sollte die Version 4.1.3 stehen, wenn ja dann muss es noch wo anders ein paket geben das nicht aktuell ist. `
                    Das Packet exisitiert bei mir (Win7) in 9 Verzeichnissen (4 * nodejs, 5 * iobroker) in unterschiedlichen Versionen.

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

                      @derAuge:

                      Habe die Installation nun noch einige male getestet (auf Pi2 / da habe ich mehre)

                      Leider habe ich zum schluss noch ein paar WARN-Meldungen. `

                      Habe gestern auch noch auf Raspi2 neu Installation durchgeführt (mit neue image), mit dem gleichen vorgehen wie auch für Raspi3 von der erste Seite, hatte aber keine derartige Fehler erhalten.

                      So wie ich es sehe unterscheid ist nur diese 2 Zeile

                      apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y
                      npm install -g node-gyp
                      

                      wird dir vielleicht weiter helfen.

                      1 Reply Last reply Reply Quote 0
                      • T
                        tp1de last edited by

                        Hallo,

                        lasst mich bitte in Bezug auf meine Erfahrungen ergänzen:

                        1. Mit node 4.4.x hatte ich Langzeitprobleme mit Node-Red (egal welche Version) und der automatische Start von iobroker funktionierte nicht mehr.

                        2. Mit node 4.2.1 wie angegeben + aktuelle Node-Red Version 0.13.3 läuft alles sehr stabil.

                        Das hängt auch von den Nodes ab, die Ihr benutzt. Einige laufen mit höheren Versionen von node.js bei mir nicht stabil.

                        Ich benutze aktuell bei Node-Red folgende Module:````
                        node-red-node-piface
                        node-red-contrib-owfs
                        node-red-node-pidcontrol
                        node-red-node-pushbullet
                        node-red-node-ping
                        node-red-node-mysql

                        
                        Mit Node-Red 0.13.3 habe ich aktuell keine Probleme.
                        
                        Installation wie folgt :
                        
                        1\. Standard-Adapter installieren:
                        
                        2\. Upgrade auf 01.13.3 – das muss auch sein wenn Ihr die node.js neu installiert!````
                        cd /opt/iobroker/node_modules/iobroker.node-red
                        iobroker stop node-red.0
                        npm cache clean
                        npm i --unsafe-perm node-red@0.13.3
                        

                        Nach meherern Monaten ioBroker Erfahrung + diversen Installationsversuchen kann ich nur raten:

                        Lasst ein einmal funktionierendes System stabil, wenn Ihr es als Produktivsystem einsetzt. (Bei mir Heizungsregelung)

                        Das bedeutet aber auch, dass Ihr mit apt-get update bzw. upgrade nicht automatisch neue node.js Versionen erhalten wollt.

                        Die Gesamtabhängigkeiten - s.o. zu den Nodes und anderen Adaptern - sind einfach zu gross.

                        Grüße

                        Thomas

                        1 Reply Last reply Reply Quote 0
                        • M
                          mctom last edited by

                          Hallo zusammen,

                          vielen Dank für eure ganzen Rückmeldungen.

                          Ich habe nun versucht alles zusammen in eine Anleitung zusammen zu bringen.

                          http://www.iobroker.net/?page_id=3397&lang=de

                          Es wäre klassen wenn ihr mal darüberschaut und mir Feedback gebt.

                          Vielen Dank.

                          Gruß

                          Michael

                          1 Reply Last reply Reply Quote 0
                          • V
                            versteckt last edited by

                            Hallo, bez. homekit: da muss ich noch Abhängigkeiten OS abhängig einbauen. Dann sollte

                            es dort auch keinen Fehler beim installieren geben.

                            LG Christian

                            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

                            947
                            Online

                            31.9k
                            Users

                            80.3k
                            Topics

                            1.3m
                            Posts

                            11
                            25
                            5921
                            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