Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Io Broker und raspi2

    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

    Io Broker und raspi2

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

      @Homoran:

      Hallo Rainer, hier das log

      ! ````
      pi@raspberrypi:~ $ su
      Password:
      root@raspberrypi:/home/pi# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
      ! ## Installing the NodeSource Node.js 4.x LTS Argon repo...
      ! ## Populating apt-get cache...
      ! + apt-get update
      Hit http://mirrordirector.raspbian.org jessie InRelease
      Hit http://archive.raspberrypi.org jessie InRelease
      Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
      Hit http://archive.raspberrypi.org jessie/main armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
      Hit http://archive.raspberrypi.org jessie/ui armhf Packages
      Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
      Ign http://archive.raspberrypi.org jessie/main Translation-en
      Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
      Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
      Ign http://archive.raspberrypi.org jessie/ui Translation-en
      Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/main Translation-en
      Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
      Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
      Reading package lists... Done
      ! ## Installing packages required for setup: apt-transport-https...
      ! + apt-get install -y apt-transport-https > /dev/null 2>&1
      ! ## Confirming "jessie" is supported...
      ! + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/jessie/Release'
      ! ## Adding the NodeSource signing key to your keyring...
      ! + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
      OK
      ! ## Creating apt sources list file for the NodeSource Node.js 4.x LTS Argon repo...
      ! + echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list

      • echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

      ! ## Running apt-get update for you...
      ! + apt-get update
      Hit http://mirrordirector.raspbian.org jessie InRelease
      Hit http://archive.raspberrypi.org jessie InRelease
      Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
      Hit http://archive.raspberrypi.org jessie/main armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
      Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
      Hit http://archive.raspberrypi.org jessie/ui armhf Packages
      Get:1 https://deb.nodesource.com jessie InRelease [3,914 B]
      Get:2 https://deb.nodesource.com jessie/main Sources [764 B]
      Get:3 https://deb.nodesource.com jessie/main armhf Packages [967 B]
      Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
      Get:4 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
      Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
      Ign http://archive.raspberrypi.org jessie/main Translation-en
      Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
      Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/main Translation-en
      Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
      Ign http://archive.raspberrypi.org jessie/ui Translation-en
      Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
      Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
      Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
      Get:5 https://deb.nodesource.com jessie/main Translation-en [162 B]
      Get:6 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
      Get:7 https://deb.nodesource.com jessie/main Translation-en [162 B]
      Get:8 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
      Get:9 https://deb.nodesource.com jessie/main Translation-en [162 B]
      Get:10 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
      Get:11 https://deb.nodesource.com jessie/main Translation-en [162 B]
      Get:12 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
      Ign https://deb.nodesource.com jessie/main Translation-en_GB
      Get:13 https://deb.nodesource.com jessie/main Translation-en [162 B]
      Ign https://deb.nodesource.com jessie/main Translation-en
      Fetched 5,645 B in 23s (242 B/s)
      Reading package lists... Done
      ! ## Run apt-get install nodejs (as root) to install Node.js 4.x LTS Argon and npm
      ! root@raspberrypi:/home/pi# sudo apt-get install -y nodejs
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      libc-ares2 libv8-3.14.5
      Use 'apt-get autoremove' to remove them.
      The following extra packages will be installed:
      rlwrap
      The following packages will be REMOVED:
      nodejs-legacy nodered
      The following NEW packages will be installed:
      rlwrap
      The following packages will be upgraded:
      nodejs
      1 upgraded, 1 newly installed, 2 to remove and 2 not upgraded.
      Need to get 7,927 kB of archives.
      After this operation, 34.7 MB of additional disk space will be used.
      Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main rlwrap armhf 0.41-1 [70.3 kB]
      Get:2 https://deb.nodesource.com/node_4.x/ jessie/main nodejs armhf 4.4.2-1nodesource1~jessie1 [7,857 kB]
      Fetched 7,927 kB in 8s (932 kB/s)
      (Reading database ... 126687 files and directories currently installed.)
      Removing nodered (0.13.4) ...
      Removing nodejs-legacy (0.10.29~dfsg-2) ...
      Processing triggers for gnome-icon-theme (3.12.0-1) ...
      Processing triggers for gnome-menus (3.13.3-6) ...
      Processing triggers for desktop-file-utils (0.22-1) ...
      Processing triggers for mime-support (3.58) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Selecting previously unselected package rlwrap.
      (Reading database ... 119726 files and directories currently installed.)
      Preparing to unpack .../rlwrap_0.41-1_armhf.deb ...
      Unpacking rlwrap (0.41-1) ...
      Preparing to unpack .../nodejs_4.4.2-1nodesource1~jessie1_armhf.deb ...
      Unpacking nodejs (4.4.2-1nodesource1~jessie1) over (0.10.29~dfsg-2) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Setting up rlwrap (0.41-1) ...
      update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
      Setting up nodejs (4.4.2-1nodesource1~jessie1) ...
      root@raspberrypi:/home/pi# mkdir /opt/iobroker
      mkdir: cannot create directory ‘/opt/iobroker’: File exists
      root@raspberrypi:/home/pi# cd /opt/iobroker/
      root@raspberrypi:/opt/iobroker# npm install iobroker
      Illegal instruction
      root@raspberrypi:/opt/iobroker# npm install --unsafe-perm iobroker
      Illegal instruction
      root@raspberrypi:/opt/iobroker# npm install iobroker
      Illegal instruction
      root@raspberrypi:/opt/iobroker#
      ! ````

      Ich habe das ganze mit root ausgeführt und Jessie habe ich als Image installiert.

      Aus purer Verzweiflung habe ich nun ab Punkt 2 unter "Installation Node.js" mit user pi wiederholt, leider auch ohne Erfolg. Ist der Fehler aus dem Log sichtbar? Für mich ist das ganze nicht ganz klar…

      Vielen Dank

      Eric `

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

        Habe eben nur kurz das log überflogen.

        Bin auch nicht der Linnux Crack - erher im Gegenteil 😞

        @indianaas:

        Ich habe das ganze mit root ausgeführt und Jessie habe ich als Image installiert. `
        Das war auch korrekt!

        Nur ich habe das Gefühl, dass da was nicht stimmt, weil:
        @indianaas:

        root@raspberrypi:/home/pi# `

        Das heisst für mich du bist zwar root arbeitest aber im home-Verzeichnis vom user pi.

        ggf. hast du da nicht die notwendigen Rechte.

        Vielleicht sieht sich das mal ein Linux Könner an.

        Gruß

        Rainer

        1 Reply Last reply Reply Quote 0
        • I
          indianaas last edited by

          @Homoran:

          Das heisst für mich du bist zwar root arbeitest aber im home-Verzeichnis vom user pi.

          ggf. hast du da nicht die notwendigen Rechte. `

          Tatsächlich gut erkannt… Bei Anmeldung als root, kriege ich "Access denied". Es war mir bisher nicht klar was die Meldung bedeutet und ich war daher überzeugt, dass user root = "root@raspberrypi:/home/pi#" ist.

          Gibt es sonst noch einen anderen Weg iobrocker zu installieren? Ich habe ein raspberry2 mit 8GB SD-Karte.

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

            @indianaas:

            @Homoran:

            Gibt es sonst noch einen anderen Weg iobrocker zu installieren? Ich habe ein raspberry2 mit 8GB SD-Karte.

            Wenn du sowieso frisch installierst kannst du auch ein fertiges Image nehmen (Jessie inkl. iobroker):

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

            Das 2. von oben zum Beispiel.

            Image herunterladen, und von Windows aus mit Win32DiskImager auf die SD-Karte bringen.

            Mit "sudo raspi-config" den Speicherplatz auf deine gesamte Karte dann ausdehmen ("expand filesystem").

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

              @indianaas:

              Bei Anmeldung als root, kriege ich "Access denied". `
              Hast du in /etc/ssh/sshd_config den root Zugang geändert?

              @[url=http://www.iobroker.net/?page_id=3397⟨=de:

              Website"]Root Zugang freischalten

              sudo nano /etc/ssh/sshd_config

              Datei anpassen: PermitRootLogin without-password in PermitRootLogin yes ändern und speichern

              SSH neu starten: sudo /etc/init.d/ssh restart

              sudo su (jetzt ist der Root Modus gestartet)

              mit passwd ein Passwort vergeben `

              Gruß

              Rainer

              1 Reply Last reply Reply Quote 0
              • R
                RS_Tobi last edited by

                Hallo Leute!

                ich denke da ist aktuell irgendwo "der Wurm drin"

                Ich habe auch gerade das aktuelle Jessie runtergeladen und bin nach der

                Anleitung vorgegangen.

                Was mir komisch vor gekommen ist, dass deim deinstallieren von node die Meldung kam, dass node nicht installiert sei.

                nodejs lies sich deinstallieren.

                Es lies sich auch wieder alles Installieren, aber iobroker kann ich nicht installieren.

                root@raspberrypi:~# mkdir /opt/iobroker
                root@raspberrypi:~# cd /opt/iobroker
                root@raspberrypi:/opt/iobroker# npm install iobroker
                Illegal instruction
                root@raspberrypi:/opt/iobroker# npm install --unsafe-perm iobroker
                Illegal instruction
                
                

                grüße Tobi

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

                  Hallo Tobi,

                  was gibt:

                  nodejs -v
                  

                  und:

                  npm -v
                  

                  Danke

                  Rainer

                  1 Reply Last reply Reply Quote 0
                  • I
                    indianaas last edited by

                    Hallo Rainer,

                    hier das Log

                    root@raspberrypi:~# nodejs -v
                    Illegal instruction
                    root@raspberrypi:~# npm -v
                    Illegal instruction
                    root@raspberrypi:~# which node
                    /usr/bin/node
                    root@raspberrypi:~#
                    
                    

                    wie geht es nun weiter? was bedeutet eigentlich die Befehle?

                    Grüße

                    Eric

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

                      ohne die letzte Info hätte ich gesagt es sei kein nodejs installiert.
                      > was bedeutet eigentlich die Befehle?
                      die ersten beiden sollten die jeweilige Version von nodejs und npm anzeigen.

                      Der letzte den Speicherort von nodejs.

                      Jetzt komme ich auch ins Schleudern.

                      Und ihr habt wirklich nodejs als root installiert?

                      und euch ganz genau an die Anleitung gehalten?

                      Auch Punkt 7.?
                      @[url=http://www.iobroker.net/?page_id=3397⟨=de:

                      ~~Website"]~~Ausloggen und als Root über Putty anmelden `

                      Gruß

                      Rainer

                      1 Reply Last reply Reply Quote 0
                      • I
                        indianaas last edited by

                        ` > Auch Punkt 7.?

                        @[url=http://www.iobroker.net/?page_id=3397⟨=de:

                        ~~Website"]~~Ausloggen und als Root über Putty anmelden

                        Ich starte mit einer Neuinstallation. Ich gebe Bescheid, ob es geklappt hat.

                        Grüße

                        Eric

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

                          bevor du das machst, gib noch mal kurz das Ergebnis von

                          dpkg -l | grep node
                          

                          Danke

                          Rainer

                          1 Reply Last reply Reply Quote 0
                          • I
                            indianaas last edited by

                            Hallo Rainer,

                            siehe unten. Es tut weiterhin nichts… Noch eine Idee?

                            ` > bevor du das machst, gib noch mal kurz das Ergebnis von

                            dpkg -l | grep node
                            ```` `  
                            
                            root@raspberrypi:~# nodejs -v
                            Illegal instruction
                            root@raspberrypi:~# npm -v
                            Illegal instruction
                            root@raspberrypi:~# which node
                            /usr/bin/node
                            root@raspberrypi:~# dpkg -l | grep node
                            ii  nodejs                                4.4.3-1nodesource1~jessie1                armhf        Node.js event-based server-side javascript engine
                            root@raspberrypi:~#
                            
                            

                            Danke

                            Eric

                            1 Reply Last reply Reply Quote 0
                            • I
                              ianmoone last edited by

                              Hallo,

                              habe das gleiche Problem.

                              Node.js wurde korrekt installiert.

                              Trotzdem Fehlermeldung:

                              root@raspberrypi:/opt/iobroker# npm install —unsafe -perm iobroker
                              Illegal instruction
                              
                              1 Reply Last reply Reply Quote 0
                              • R
                                RS_Tobi last edited by

                                Morgen! Es kommt bei beiden jeweils

                                Illegal instruction

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

                                  Mir gehen die Ideen aus - bin aber auch kein Linux-Profi.

                                  Die einzige noch nicht beantwortete Frage ist ob die Installation von node tatsächlich als root stattgefunden hat.

                                  nicht als user pi mit sudo su.

                                  Gruß

                                  Rainer

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    ianmoone last edited by

                                    @Homoran:

                                    Mir gehen die Ideen aus - bin aber auch kein Linux-Profi.

                                    Die einzige noch nicht beantwortete Frage ist ob die Installation von node tatsächlich als root stattgefunden hat.

                                    nicht als user pi mit sudo su.

                                    Gruß

                                    Rainer `

                                    Ja habe extra darauf geachtet! Wurde als root installiert….

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      RS_Tobi last edited by

                                      Ich weiß nicht ob es zur Sache dient…

                                      Aber mein erster Versuch war das Image von iobroker auf die aktuelle node Version zu bekommen. Und das ging auch schief! Mit dem gleichen Fehlern.

                                      Nur mit dem Unterschied das eine Meldung kam das man doch bitte schnellstmöglich eine "library" installieren da die jetzige nichtmehr aktuell ist.

                                      Den genauen Wortlaut und die lib-bezeichnung könnte ich wenn es der Zufall will noch am Desktop haben. Aber da kann ich erst heut abend ran, wenn ich wieder daheim bin.

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

                                        Vielleicht weiß ja Bluefox was da los ist.

                                        Nur zur Vollständigkeit: Welche Hardware (Pi2 lt.Threadtitel) mit welchem Betriebssystem (Raspbian oder Lite; Wheezy oder Jessie)?

                                        Gruß

                                        Rainer

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          RS_Tobi last edited by

                                          Bei mir:

                                          Pi2 mit aktuellen Raspbian Jessie (full)

                                          1 Reply Last reply Reply Quote 0
                                          • I
                                            ianmoone last edited by

                                            @RS_Tobi:

                                            Bei mir:

                                            Pi2 mit aktuellen Raspbian Jessie (full) `

                                            Bei mir auch!

                                            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

                                            984
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            90
                                            11020
                                            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