Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Problem Installation auf Raspi4

    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

    Problem Installation auf Raspi4

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @wendy2702 last edited by

      @wendy2702

      Ich hoffe doch nicht. Da steht nämlich von root-Rechten nix drin. Weiß ich zufällig ganz genau.

      wendy2702 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Guest last edited by

        @goofy1800
        danke für die rasche Antwort:
        habe selbst gesehen, daß ich zunächst aus Versehen in eimem user-verzeichnis gearbeitet habe.
        Beim Aufruf von npm im iobroker Verzeichnis kam uA. folgende Bildschirmausgabe (nur als screen-shot):Screenshot_npm_lauf.png
        das entscheidende Kriterium dürfte wohl sein "cast between incompatible function types from"

        Dürfte von meinem Verständnis nicht am user root liegen ?

        wendy2702 Thomas Braun 3 Replies Last reply Reply Quote 0
        • wendy2702
          wendy2702 @Thomas Braun last edited by

          @thomas-braun deshalb meine Frage

          1 Reply Last reply Reply Quote 0
          • wendy2702
            wendy2702 @Guest last edited by wendy2702

            @goofy1800 sagte in Problem Installation auf Raspi4:

            @goofy1800
            danke für die rasche Antwort:
            habe selbst gesehen, daß ich zunächst aus Versehen in eimem user-verzeichnis gearbeitet habe.
            Beim Aufruf von npm im iobroker Verzeichnis kam uA. folgende Bildschirmausgabe (nur als screen-shot):Screenshot_npm_lauf.png
            das entscheidende Kriterium dürfte wohl sein "cast between incompatible function types from"

            Dürfte von meinem Verständnis nicht am user root liegen ?

            Bitte die logs als Text in Code Tags posten. So ist das nicht zu bearbeiten

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Guest last edited by

              @goofy1800
              Bitte keine Screenshots von Texten. Kann ich nicht lesen.

              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Guest last edited by

                @goofy1800 sagte in Problem Installation auf Raspi4:

                Dürfte von meinem Verständnis nicht am user root liegen ?

                Nein, es liegt nicht am root, weil man sich nie als root einloggt. Deswegen kann das nicht am root liegen. Tust du es doch: Es liegt am root.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User last edited by Homoran

                  Bin nocham Probieren mit diesem Forum, daher der screenshot.
                  Anbei die Textausgabe


                  ´´´
                  [22:46:00] root@openhabraspi4:/opt/iobroker# npm i iobroker.js-controller --production > install_npm.txt
                  In file included from ../../nan/nan.h:58,
                  from ../src/unix_dgram.cc:5:
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
                  (node::addon_register_func) (regfunc),
                  ^
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                  NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                  ^~~~~~~~~~~~~
                  ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                  NODE_MODULE(unix_dgram, Initialize)
                  ^~~~~~~~~~~
                  In file included from ../../nan/nan.h:58,
                  from ../src/main.cpp:3:
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
                  (node::addon_register_func) (regfunc),
                  ^
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                  NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                  ^~~~~~~~~~~~~
                  ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                  NODE_MODULE(diskusage, Init)
                  ^~~~~~~~~~~
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 22
                  npm ERR! iobroker.js-controller@3.3.22 install: node iobroker.js setup first
                  npm ERR! Exit status 22
                  npm ERR!
                  npm ERR! Failed at the iobroker.js-controller@3.3.22 install script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                  npm ERR! A complete log of this run can be found in:
                  npm ERR! /home/iobroker/.npm/_logs/2022-02-15T22_02_34_452Z-debug.log
                  [23:02:34] root@openhabraspi4:/opt/iobroker# npm i iobroker.js-controller --production >> /home/iobroker/install_npm.txt
                  In file included from ../../nan/nan.h:58,
                  from ../src/unix_dgram.cc:5:
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
                  (node::addon_register_func) (regfunc),
                  ^
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                  NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                  ^~~~~~~~~~~~~
                  ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                  NODE_MODULE(unix_dgram, Initialize)
                  ^~~~~~~~~~~
                  In file included from ../../nan/nan.h:58,
                  from ../src/main.cpp:3:
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
                  (node::addon_register_func) (regfunc),
                  ^
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                  NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                  ^~~~~~~~~~~~~
                  ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                  NODE_MODULE(diskusage, Init)
                  ^~~~~~~~~~~
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 22
                  npm ERR! iobroker.js-controller@3.3.22 install: node iobroker.js setup first
                  npm ERR! Exit status 22
                  npm ERR!
                  npm ERR! Failed at the iobroker.js-controller@3.3.22 install script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  ´´´


                  MOD-Edit: Code in code-tags gesetzt!

                  Ich lasse mich gern belehren - auch wenn es mir unverständlich erscheint - daß ein funktionstypen missmatch in einer headerdatei

                  >>>>
                  In file included from ../../nan/nan.h:58,
                                   from ../src/unix_dgram.cc:5:
                  /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                         (node::addon_register_func) (regfunc),  .....
                  <<<<<<<                        \
                  

                  durch den Aufruf des make Lauf als root entsteht?

                  MOD EDIT: LOG in Code Tags gesetzt

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Guest last edited by Thomas Braun

                    @goofy1800
                    Die Meldungen vom kompilieren sind harmlos. Aber du eierst da immer noch als root rum.

                    Und bitte CodeTags verwenden. Spoiler sind nicht so wichtig.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User last edited by

                      @Thomas-Braun
                      habe das ganze eben nochmals als normaler user mit sudo gemacht: -> ditto gleiche Fehlermeldung

                      Thomas Braun wendy2702 3 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Guest last edited by Thomas Braun

                        @goofy1800
                        Du hast dir ja jetzt auch den cacache mit falschen Rechten zugeballert.

                        1 Reply Last reply Reply Quote 0
                        • wendy2702
                          wendy2702 @Guest last edited by

                          @goofy1800 Was gemacht ?

                          Vollständiges Logfile bitte.

                          Ist das eine komplette neu installation oder eine vorhandene Linux installation?

                          1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Guest last edited by Thomas Braun

                            @goofy1800 sagte in Problem Installation auf Raspi4:

                            normaler user mit sudo gemacht

                            Aufruf des Installations-Skripts mit

                            sudo curl blablubb
                            

                            oder was hast du jetzt gemacht?

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User last edited by

                              @Thomas-Braun
                              Ich finde diese Antworten "jetzt hast du dir auch noch den cache zugeballert" gegenüber einem Forumsneuling vorsichtig ausgedrückt nicht gerade zielführend...
                              wie der Aufruf mit sudo geht hat sich auch zu mir rumgesprochen....

                              @wendy2702
                              bestehende seit ca. einem Jahr laufende Linuxinstallation mit uA. einer z-wave.me Installation u. einem vpn-server.
                              Vor iobroker hatte ich versuchsweise "openhab" installiert, aber wieder entfernt.```
                              code_text

                              
                              [23:19:06] root@openhabraspi4:/home/moelli# sudo curl -sLf https://iobroker.net/install.sh | bash -
                              library: loaded
                              Library version=2022-02-10
                              
                              ==========================================================================
                              
                                  Welcome to the ioBroker installer!
                                  Installer version: 2022-02-13
                              
                              ==========================================================================
                              
                              
                              ==========================================================================
                                  Installing prerequisites (1/4)
                              ==========================================================================
                              
                              OK:1 https://repo.mosquitto.org/debian buster InRelease
                              Holen:2 https://repo.z-wave.me/z-way/raspbian buster InRelease [1.806 B]
                              OK:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
                              OK:4 http://archive.raspberrypi.org/debian buster InRelease
                              Ign:5 http://repos.azulsystems.com/debian stable InRelease
                              OK:6 http://repos.azulsystems.com/debian stable Release
                              OK:7 https://packages.grafana.com/oss/deb stable InRelease
                              OK:8 http://deb.debian.org/debian buster-backports InRelease
                              OK:9 https://deb.nodesource.com/node_14.x buster InRelease
                              OK:10 https://repos.influxdata.com/debian buster InRelease
                              OK:11 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
                              Es wurden 1.806 B in 5 s geholt (390 B/s).
                              Paketlisten werden gelesen... Fertig
                              Changing npm registry to https://registry.npmjs.org
                              Installed gcc-c++
                              
                              ==========================================================================
                                  Creating ioBroker user and directory (2/4)
                              ==========================================================================
                              
                              Created /etc/sudoers.d/iobroker
                              Directory /opt/iobroker created
                              
                              ==========================================================================
                                  Installing ioBroker (3/4)
                              ==========================================================================
                              
                              In file included from ../../nan/nan.h:58,
                                               from ../src/main.cpp:3:
                              /root/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                     (node::addon_register_func) (regfunc),                          \
                                                                         ^
                              /root/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                                 NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                 ^~~~~~~~~~~~~
                              ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                               NODE_MODULE(diskusage, Init)
                               ^~~~~~~~~~~
                              In file included from ../../nan/nan.h:58,
                                               from ../src/unix_dgram.cc:5:
                              /root/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                     (node::addon_register_func) (regfunc),                          \
                                                                         ^
                              /root/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                                 NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                 ^~~~~~~~~~~~~
                              ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                               NODE_MODULE(unix_dgram, Initialize)
                               ^~~~~~~~~~~
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 22
                              npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first`
                              npm ERR! Exit status 22
                              npm ERR!
                              npm ERR! Failed at the iobroker.js-controller@3.3.22 install script.
                              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /root/.npm/_logs/2022-02-15T22_20_44_642Z-debug.log
                              
                              ==========================================================================
                                  Finalizing installation (4/4)
                              ==========================================================================
                              
                              Enabling autostart...
                              Autostart enabled!
                              Fixing directory permissions...
                              
                              ==========================================================================
                              
                                  ioBroker was installed successfully
                                  Open http://192.168.11.117 192.168.11.217 192.168.55.1 10.6.0.1:8081 in a browser and start configuring!
                              
                              ==========================================================================
                              
                              
                              You need to re-login before doing anything else on the console!
                              
                              [23:20:46] root@openhabraspi4:/home/moelli# sudo systemctl status iobroker
                              ● iobroker.service - ioBroker Server
                                 Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset:
                                 Active: activating (auto-restart) (Result: exit-code) since Tue 2022-02-15 23
                                   Docs: http://iobroker.net
                                Process: 22589 ExecStart=/bin/bash -c ${NODE} /opt/iobroker/node_modules/iobro
                               Main PID: 22589 (code=exited, status=1/FAILURE)
                              Thomas Braun wendy2702 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Guest last edited by Thomas Braun

                                @goofy1800

                                Jetzt mal ernsthaft:
                                Wo steht, dass der root (auch noch mit 'sudo' kombiniert...) das Installationsskript aufruft?
                                In der verlinkten Anleitung steht, dass der User pi ein einfaches

                                curl -sLf https://iobroker.net/install.sh | bash -
                                

                                absetzt. Nicht mehr, nicht weniger.
                                Alternativ halt auch mit einem anderen Standarduser (der sudo-Rechte erlangen kann) auszuführen. Dann funktioniert das auch. Ich weiß das, ich hab das schon so gemacht.

                                1 Reply Last reply Reply Quote 0
                                • wendy2702
                                  wendy2702 @Guest last edited by

                                  @goofy1800

                                  Wieso hast du so viele Netzwerk Interfaces? Keine Ahnung ob das von der Fehlerhaften installation kommt oder deine Konfiguration das hergibt.

                                  Was du mal versuchen kannst um noch bisschen was zu retten:

                                  cd /opt/iobroker/
                                  
                                  npm install iobroker.js-controller@3.3.22
                                  

                                  Wenn fertig mal

                                  iob fix
                                  iob start
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User last edited by

                                    @Thomas-Braun
                                    völlig egal mit welchem user (pi/moelli/root): es bleibt bei der Fehlermeldung der typmissmatch in der headerdatei.

                                    @wendy2702

                                    erstmal dankefür Deine Hilfe: netzwerkinterfaces für vpn

                                    
                                    $ cd /opt/iobroker
                                    $ npm install iobroker.js-controller@3.3.22
                                    
                                    > iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                    > node lib/preinstallCheck.js
                                    
                                    NPM version: 6.14.16
                                    
                                    > unix-dgram@2.0.4 install /opt/iobroker/node_modules/unix-dgram
                                    > node-gyp rebuild
                                    
                                    make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird betreten
                                      CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                                    In file included from ../../nan/nan.h:58,
                                                     from ../src/unix_dgram.cc:5:
                                    /home/moelli/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                           (node::addon_register_func) (regfunc),                          \
                                                                               ^
                                    /home/moelli/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                                       NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                       ^~~~~~~~~~~~~
                                    ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                                     NODE_MODULE(unix_dgram, Initialize)
                                     ^~~~~~~~~~~
                                      SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                                      COPY Release/unix_dgram.node
                                    make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird verlassen
                                    
                                    > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
                                    > node rebuild.js
                                    
                                    ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
                                    
                                    > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage
                                    > node-gyp rebuild
                                    
                                    make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                                      CXX(target) Release/obj.target/diskusage/src/main.o
                                    In file included from ../../nan/nan.h:58,
                                                     from ../src/main.cpp:3:
                                    /home/moelli/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                           (node::addon_register_func) (regfunc),                          \
                                                                               ^
                                    /home/moelli/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
                                       NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                       ^~~~~~~~~~~~~
                                    ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                     NODE_MODULE(diskusage, Init)
                                     ^~~~~~~~~~~
                                      CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
                                      SOLINK_MODULE(target) Release/obj.target/diskusage.node
                                      COPY Release/diskusage.node
                                    make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen
                                    
                                    > iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller
                                    > node iobroker.js setup first
                                    
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                     Could not connect to objects database at 127.0.0.1:9001 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
                                    Server Cannot load /opt/iobroker/iobroker-data/objects.json: Database file /opt/iobroker/iobroker-data/objects.json does not exists.. We try last Backup!
                                    Server Cannot load /opt/iobroker/iobroker-data/objects.json.bak: Database file /opt/iobroker/iobroker-data/objects.json.bak does not exists.. Continue with empty dataset!
                                    Server If this is no Migration or initial start please restore the last backup from /opt/iobroker/iobroker-data/backup-objects
                                    No connection to databases possible ...
                                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                    
                                    npm ERR! code ELIFECYCLE
                                    npm ERR! errno 22
                                    npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first`
                                    npm ERR! Exit status 22
                                    npm ERR!
                                    npm ERR! Failed at the iobroker.js-controller@3.3.22 install script.
                                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/moelli/.npm/_logs/2022-02-15T22_56_22_260Z-debug.logcode_text
                                    

                                    der compiler motzt weiter über nan.h und node.h und erzeugt nicht js-controller. Insofern startet IOB auch nicht und es gibt keine Verbindung zu Port 9001.
                                    Für mich sieht das nach einer Incompatibiltät zw java und dden benutzten C-Biblotheken aus.

                                    Erst mal danke und gute nacht - gibt sonst auch noch Dinge die man um die Uhrzeit macht...

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Guest last edited by

                                      @goofy1800 sagte in Problem Installation auf Raspi4:

                                      der compiler motzt weiter über nan.h und node.h

                                      Lass ihn motzen. Das ist vollkommen normal.

                                      Nicht normal ist das Nichterreichen der Datenbank.
                                      Läuft da schon was anderes auf dem Port?

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User last edited by

                                        die Idee nach der Portbelegung zu schauen, war nicht schlecht:

                                        Port 9001 Ausgabe von netstat:

                                        $ sudo netstat -tulpn |grep 9001
                                        [sudo] Passwort für ****:
                                        tcp        0      0 0.0.0.0:9001            0.0.0.0:*               LISTEN      426/node
                                        code_text
                                        

                                        pid 426 betrifft noch einen openhab Prozeß "frontail", eigentlich ist openhab deinstalliert:

                                        
                                           426 	frontail 	vor 2 Tagen 	node /usr/lib/node_modules/frontail/bin/frontail --disable-usage-stats --ui-high ...
                                              1180 	frontail 	vor 2 Tagen 	tail -n 200 -F /var/log/openhab/openhab.log /var/log/openhab/events.log
                                        

                                        werde demnächst weiter suchen, erstmal danke

                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User last edited by

                                          Abschalten von frontail und anschließender Aufruf des Installscriptes ergab dann folgendes:

                                          [20:44:16] root@openhabraspi4:/opt/iobroker# systemctl status iobroker
                                          ● iobroker.service - ioBroker Server
                                             Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset:
                                             Active: active (running) since Wed 2022-02-16 20:43:22 CET; 2min 11s ago
                                               Docs: http://iobroker.net
                                           Main PID: 14896 (iobroker.js-con)
                                              Tasks: 11 (limit: 4915)
                                             CGroup: /system.slice/iobroker.service
                                                     └─14896 iobroker.js-controller
                                          
                                          Feb 16 20:43:22 openhabraspi4 systemd[1]: Started ioBroker Server.
                                          lines 1-10/10 (END)
                                          code_text
                                          

                                          ich kann aber über den Port 8081 dann die web-Oberfläche nicht aufrufen, egal ob über die IP Adresse oder localhost:8081 -> Verbindung abgelehnt.
                                          die Kontrolle mit netstat zeigt keinen offenen Port unter 8081 an,
                                          9001 erscheint.

                                          code[20:30:58] root@openhabraspi4:/home/moelli# netstat -tulpn | grep 8081
                                          _text
                                          [20:46:08] root@openhabraspi4:/opt/iobroker# netstat -tulpn | grep 9001
                                          tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      14896/iobroker.js-c
                                          
                                          

                                          etwas ratlos

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Guest last edited by

                                            @goofy1800 sagte in Problem Installation auf Raspi4:

                                            etwas ratlos

                                            Immer noch root.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            708
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            31
                                            875
                                            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