Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Iobroker unter 18.04 LTS schleife

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Iobroker unter 18.04 LTS schleife

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

      Hallo Leute, irgendwie komm mich mit meiner Iobroker inatallation nicht weiter.

      Ich versuche seit 2 Tagen ihn auf meinem NUN zum laufen zu bekommen, aber ohne Erfolg.

      Folgende Schritte habe ich durchgeführt:

      installation von Ubuntu 18.04 LTS nativ.

      dann wie in der Anleitung beschrieben node und nodejs deinstalliert mit folgenden Befehlen:

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

      -> reboot

      npm -v 
      node -v
      nodejs -v
      

      liefern wie gewünscht keine Ergebnisse (werden nicht gefunden),

      nun mit

      curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
      sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
      

      nodeJs wieder installiert,

      nodejs -v 
      v8.10.0
      node -v
      v8.10.0
      npm -v
      NICHT GEFUNDEN
      

      ok also npm mit

      apt install npm 
      

      geholt,

      npm -v
      v3.5.2
      

      dann

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

      jetzt hängt die installation jedoch nach dem fetch in einer dauerschleife…

      > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker
      > node lib/prepareSetup.js && node lib/setup.js
      
      NPM version: 3.5.2
      npm install iobroker.discovery@stable --production --save
      
      > serialport@4.0.7 install /opt/iobroker/node_modules/serialport
      > node-pre-gyp install --fallback-to-build
      
      node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-linux-x64.tar.gz 
      node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@8.10.0 (node-v57 ABI) (falling back to source compile with node-gyp) 
      make: Verzeichnis „/opt/iobroker/node_modules/serialport/build“ wird betreten
        CXX(target) Release/obj.target/serialport/src/serialport.o
      ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
      ../src/serialport.cpp:180:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
      ../src/serialport.cpp:240:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
      ../src/serialport.cpp:339:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
      ../src/serialport.cpp:403:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
      ../src/serialport.cpp:465:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
      ../src/serialport.cpp:516:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
      ../src/serialport.cpp:573:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
      ../src/serialport.cpp:617:30: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:7:0,
                       from ../src/serialport.cpp:1:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
        CXX(target) Release/obj.target/serialport/src/serialport_unix.o
      ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
      ../src/serialport_unix.cpp:209:5: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
       int setup(int fd, OpenBaton *data) {
           ^~~~~
      In file included from /usr/include/stdio.h:862:0,
                       from ../src/./serialport.h:4,
                       from ../src/serialport_unix.cpp:1:
      /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output 20 or more bytes (assuming 1043) into a destination of size 1024
              __bos (__s), __fmt, __va_arg_pack ());
                                                  ^
      ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
      ../src/serialport_unix.cpp:126:6: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
       void EIO_Open(uv_work_t* req) {
            ^~~~~~~~
      In file included from /usr/include/stdio.h:862:0,
                       from ../src/./serialport.h:4,
                       from ../src/serialport_unix.cpp:1:
      /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output 22 or more bytes (assuming 1045) into a destination of size 1024
              __bos (__s), __fmt, __va_arg_pack ());
                                                  ^
        CXX(target) Release/obj.target/serialport/src/serialport_poller.o
      ../src/serialport_poller.cpp: In member function ‘void SerialportPoller::callCallback(int)’:
      ../src/serialport_poller.cpp:47:26: warning: ‘v8::Local <v8::value>Nan::Callback::Call(int, v8::Local<v8::value>*) const’ is deprecated [-Wdeprecated-declarations]
         callback_->Call(1, argv);
                                ^
      In file included from ../src/serialport_poller.cpp:5:0:
      ../../nan/nan.h:1618:3: note: declared here
         Call(int argc, v8::Local <v8::value>argv[]) const {
         ^~~~
        SOLINK_MODULE(target) Release/obj.target/serialport.node
        COPY Release/serialport.node
      make: Verzeichnis „/opt/iobroker/node_modules/serialport/build“ wird verlassen
      
      > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker
      > node lib/prepareSetup.js && node lib/setup.js</v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value> 
      

      wobei sich dann diese Zeile bis zur Unendlichkeit wiederholt

      > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker
      > node lib/prepareSetup.js && node lib/setup.js
      

      Soweit ich das richtig sehe, kann er ein paket für serial port 4.0.7 nicht installieren, kann ich manuel machen?

      oder ist das vielleicht garnicht das Problem?

      1 Reply Last reply Reply Quote 0
      • Dutchman
        Dutchman Developer Most Active Administrators last edited by

        Du installierst nicht als root oder sudo also tippe ich Mal darauf das er das Modul nicht installieren oder finden kan

        Sent from my iPhone using Tapatalk

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

          Hallo, danke für die rasche Antwort… hatte vergessen zu schreiben,

          habe alle befehle unter root ausgeführt... also

          sudo su

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

            Kannst du mal bitte schauen ob Port 9000 oder 9001 durch irgendwas belegt ist. Das war der Grund bei einem anderen Fall.

            Und er macht echt be schleife mit serialport install?

            Gesendet vom Handy …

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

              Sodala.. Problem gefunden…

              ich hatte immer schon npm unter Verdacht, ich hab immer nodejs und somit auch npm mit

              sudo apt-get --purge remove nodejs
              

              gelöscht und wollte dann

              npm install -g npm@latest-2
              

              ausführen, was nicht funktionierte (logisch.. kein npm)…

              apt install npm 
              

              liefert jedoch nur v3.5.2 und diese funktioniert offenbar nicht richtig, aber man benötigt sie um den befehl

              npm install -g npm@latest-2
              

              auszuführen… somit zuerst

              apt install npm
              

              und dann

              npm install -g npm@latest-2
              

              dann zeigt npm -v

              v2.15.12 an.. und dann flutscht es!

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

                @apollon77:

                Kannst du mal bitte schauen ob Port 9000 oder 9001 durch irgendwas belegt ist. Das war der Grund bei einem anderen Fall.

                Und er macht echt be schleife mit serialport install?

                Gesendet vom Handy … `

                Danke für deine Hilfe… aber es war mit 3.5.2 einfach die "falsche" npm version... 😄

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

                  Und latest-3 als npm version?

                  Gesendet vom Handy …

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

                    Hallo und guten Tag.

                    Seit vielen Tagen versuche ich ioBroker zu installieren.

                    Das geht in VirtualBox. Da läuft es dann auf meinem Rechner und verbraucht viel Strom.

                    Deshalb habe ich eine TV-Box, eine MX10, gekauft mit Android 8. Mein Gedanke dabei war: es gibt bestimmt irgendein Linux das auf die Box flashbar ist. Nach der Lieferung und einer Woche Suchen und probieren sehe ich leider daß dem nicht so ist.

                    Nun ist schon ein bisschen Wasser die Havel runtergelaufen und ich habe einen neuen Versuch gestartet.

                    Diesmal mit Linux als App auf Android. Da gibt es ja einiges.

                    Probiert habe ich schon Termux und userLand mit Debian und Ubuntu.

                    ALLE Versuche scheitern aber an diesem npm. wenn ich versuche ioBroker zu installieren sagt mir die Maschine dass es mit npm 3.xx nicht geht. Mit npm 6.x auch nicht.

                    Leider sind alle meine Versuche den npm in Version 2 zu installieren gescheitert.

                    "ERROR: could not get uid/gid"

                    https://www.bilder-upload.eu/bild-70f66 … 0.gif.html

                    https://www.bilder-upload.eu/thumb/70f6 ... 623560.gif

                    Da weiß ich nicht weiter, Google gibt nichts her.

                    Nun hoffe ich, daß hier jemand mit einer Idee ist, die vielleich sogar zündet.

                    LG aus Berlin Thomas

                    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

                    725
                    Online

                    32.1k
                    Users

                    80.7k
                    Topics

                    1.3m
                    Posts

                    4
                    8
                    2978
                    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