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.
    • derAuge
      derAuge last edited by

      Habe heute auch mal mein RPi3 nochmals installiert

      Kleine anpassungen bei der installation

      ! 1. Download Raspbian Jessie Lite # Minimal image based on Debian Jessie (2016-03-18-raspbian-jessie-lite)
      ! https://downloads.raspberrypi.org/raspbian_lite_latest
      ! 2. Image auf SD-Karte bringen
      ! a.) die SD-Karte formatieren # Option = FORMAT SIZE AD JUSTMENT ON
      ! https://www.sdcard.org/downloads/format … tterv4.zip
      ! b.) auf SD-Karte kopieren
      ! https://sourceforge.net/projects/win32diskimager/
      ! 3. Karte einlegen und RPi3 starten
      ! 4. mit Putty per ssh am RPi3 anmelden
      ! 5. sudo raspi-config alle Konfigurationen durchführen
      ! 1 Expand Filesystem
      ! 2 Change User Password
      ! 3 Boot Options
      ! B1 Console Text console, requiring user to logi
      ! 4 Wait for Network at Boot
      ! Fast Boot without waiting for network connection
      ! 5 Internationalisation Options Set up language and regional settings to match your location │
      ! I1 Change Locale
      ! * de_DE.UTF-8 UTF-8

      Default locale for the system environment: de_DE.UTF-8
      
      I2 Change Timezone Set up timezone to match your location
      
      Geographic area: Europe
      
      Time zone: Berlin
      
      I3 Change Keyboard Layout Set the keyboard layout to match your keyboard
      
      Keyboard model: Generic 105-key (Intl) PC
      
      Keyboard layout: Other
      
      Country of origin for the keyboard: German
      
      Keyboard layout: German - German (qwerty)
      
      Key to function as AltGr: Right Alt (AltGr)
      
      Compose key: Left Logo key
      
      I4 Change Wi-fi Country Set the legal channels used in your country
      
      DE Germany
      
      6 Enable Camera # Enable support for Raspberry Pi camera? <disable>7 Add to Rastrack
      
      8 Overclock
      
      9 Advanced Options
      
      A1 Overscan You may need to configure overscan if black bars are present on display
      
      A2 Hostname Set the visible name for this Pi on a network
      
      RPi3-1
      
      A3 Memory Split Change the amount of memory made available to the GPU
      
      A4 SSH Enable/Disable remote command line access to your Pi using SSH
      
       <enable>A5 Device Tree Enable/Disable the use of Device Tree
      
      A6 SPI Enable/Disable automatic loading of SPI kernel module (needed for e.g. PiFace)
      
      A7 I2C Enable/Disable automatic loading of I2C kernel module
      
      A8 Serial Enable/Disable shell and kernel messages on the serial connection
      
      A9 Audio Force audio out through HDMI or 3.5mm jack
      
      AA GL Driver Enable/Disable experimental desktop GL driver
      
      A0 Update Update this tool to the latest version
      
      0 About raspi-config Information about this configuration tool
      
       <finish>6\. dem Nutzer Root ein Passwort vergeben
      
      pi@raspberrypi:~ $ sudo passwd root
      
      Enter new UNIX password:
      
      Retype new UNIX password:
      
      passwd: password updated successfully
      
      pi@raspberrypi:~ $
      
      7\. System neu starten
      
      pi@raspberrypi:~ $ sudo reboot
      
      Broadcast message from pi@raspberrypi on pts/0 (Sat 2016-03-19 15:00:53 CET):
      
      The system is going down for reboot NOW!
      
      a.) mit Putty per ssh am RPi3 anmelden
      
      Using username "pi".
      
      pi@192.168.xxx.xxx's password:
      
      The programs included with the Debian GNU/Linux system are free software;
      
      the exact distribution terms for each program are described in the
      
      individual files in /usr/share/doc/*/copyright.
      
      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      
      permitted by applicable law.
      
      Last login: Sat Mar 19 14:33:43 2016 from hp.fritz.box
      
      pi@RPi3-1:~ $
      
      pi@RPi3-1:~ $ su
      
      Passwort:
      
      root@RPi3-1:/home/pi#
      
      nun sind wir als Root im System
      
      8\. Kernel Update: (als Root angemeldet)
      
      # apt-get update && apt-get upgrade -y
      
      9\. Die alten node & node.js Versionen deinstallieren
      
      10\. erneut als root einloggen
      11\. 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 …
      
      ````
      root@RPi3-1:/home/pi# mkdir /opt/iobroker
      root@RPi3-1:/home/pi# cd /opt/iobroker/
      root@RPi3-1:/opt/iobroker# npm install iobroker
      npm WARN cannot run in wd iobroker@0.7.1 node lib/setup.js (wd=/opt/iobroker/node_modules/iobroker)
      iobroker@0.7.1 node_modules/iobroker
      └── yargs@4.3.1 (decamelize@1.2.0, y18n@3.2.1, camelcase@2.1.1, window-size@0.2.0, require-main-filename@1.0.1, yargs-parser@2.1.1, lodash.assign@4.0.6, os-locale@1.4.0, string-width@1.0.1, cliui@3.1.1, pkg-conf@1.1.1, read-pkg-up@1.0.1)
      
      root@RPi3-1:/opt/iobroker# node -v
      v4.4.0
      root@RPi3-1:/opt/iobroker# nodejs -v
      v4.4.0
      root@RPi3-1:/opt/iobroker# npm -v
      2.14.20
      root@RPi3-1:/opt/iobroker#
      
      ````
      
      EDIT
      ````
      root@RPi3-1:/opt/iobroker# npm install --unsafe-perm
      npm ERR! install Couldn't read dependencies
      npm ERR! Linux 4.1.19-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--unsafe-perm"
      npm ERR! node v4.4.0
      npm ERR! npm  v2.14.20
      npm ERR! path /opt/iobroker/package.json
      npm ERR! code ENOPACKAGEJSON
      npm ERR! errno -2
      npm ERR! syscall open
      
      npm ERR! package.json ENOENT: no such file or directory, open '/opt/iobroker/package.json'
      npm ERR! package.json This is most likely not a problem with npm itself.
      npm ERR! package.json npm can't find a package.json file in your current directory.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/npm-debug.log
      root@RPi3-1:/opt/iobroker# 
      
      ````
      hat leider nicht wirklich etwas gebracht
      
      weiter testen mit: "node node_modules/iobroker/lib/setup.js setup first"
      ````
      root@RPi3-1:/opt/iobroker# node node_modules/iobroker/lib/setup.js setup first
      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 install iobroker.admin --production --prefix /opt/iobroker
      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.
      root@RPi3-1:/opt/iobroker#
      root@RPi3-1:/opt/iobroker#
      root@RPi3-1:/opt/iobroker#
      root@RPi3-1:/opt/iobroker# ps -A | grep " io.*"
       2949 ?        00:00:17 iobroker.js-con
       2958 ?        00:00:05 io.admin.0
      root@RPi3-1:/opt/iobroker#
      
      ````
      nun hat die Installation funktioniert
      
      Gruß
      
      derAuge</finish></enable></disable>
      1 Reply Last reply Reply Quote 0
      • M
        mctom last edited by

        Hi,

        danke für deine Rückmeldung und die Ergänzungen in der Beschreibung.

        Du schreibst du hast die Installation über :

        pm install --unsafe-perm
        

        versucht.

        Müsste es nicht

        npm install --unsafe-perm iobroker
        

        heissen?

        Gruß

        mctom

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

          @mctom:

          Hi,

          danke für deine Rückmeldung und die Ergänzungen in der Beschreibung.

          Du schreibst du hast die Installation über :

          pm install --unsafe-perm
          

          versucht.

          Müsste es nicht

          npm install --unsafe-perm iobroker
          

          heissen?

          Gruß

          mctom `

          Habe ich dann nicht weiter verfolgt

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

            Habe auch gestern ioBroker auf Raspberry Pi3 installiert. Homekit konnte ich aber installieren erst nach der Installation von node-gyp und git-core

            also

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

            dann lässt sich auch HomeKit ohne Fehler installieren.

            1 Reply Last reply Reply Quote 0
            • 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

                                    934
                                    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