Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. IoBroker ist nicht mehr über Browser erreichbar

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IoBroker ist nicht mehr über Browser erreichbar

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

      @bastel2021

      iobroker list instances
      
      1 Reply Last reply Reply Quote 0
      • B
        Bastel2021 last edited by

        @thomas-braun sagte in IoBroker ist nicht mehr über Browser erreichbar:

        iobroker list instances


        pi@raspberrypi:~ $ iobroker list instances
        internal/modules/cjs/loader.js:905
        throw err;
        ^

        Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
        at Function.Module._load (internal/modules/cjs/loader.js:746:27)
        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
        at internal/main/run_main_module.js:17:47 {
        code: 'MODULE_NOT_FOUND',
        requireStack: []
        }
        pi@raspberrypi:~ $

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

          @bastel2021

          cd /opt/iobroker
          sudo -H -u iobroker npm install iobroker.js-controller
          
          1 Reply Last reply Reply Quote 0
          • B
            Bastel2021 last edited by Homoran

             pi@raspberrypi:~ $ cd /opt/iobroker
            pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
            
            > iobroker.js-controller@4.0.23 preinstall /opt/iobroker/node_modules/iobroker.js-controller
            > node lib/preinstallCheck.js
            
            NPM version: 6.14.17
            
            > unix-dgram@2.0.6 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 ../node_modules/nan/nan.h:60,
                             from ../src/unix_dgram.cc:5:
            /home/iobroker/.cache/node-gyp/14.21.2/include/node/node.h:793:7: 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]
              793 |       (node::addon_register_func) (regfunc),                          \
                  |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            /home/iobroker/.cache/node-gyp/14.21.2/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
              827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                  |   ^~~~~~~~~~~~~
            ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
              404 | 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
            
            > iobroker.js-controller@4.0.23 install /opt/iobroker/node_modules/iobroker.js-controller
            > node iobroker.js setup first
            
            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@4.0.23 install: `node iobroker.js setup first`
            npm ERR! Exit status 22
            npm ERR!
            npm ERR! Failed at the iobroker.js-controller@4.0.23 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/2023-01-15T14_41_42_392Z-debug.log
            pi@raspberrypi:/opt/iobroker $
            

            MOD-EDIT: Code in code-tags gesetzt!

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

              @bastel2021

              Zuerstmal nodeJS auf einen aktuellen Stand bringen.
              Siehe meine Signatur.

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

                @thomas-braun
                Hm, was genau meinst du?
                Update und Upgrade habe ich zuletzt gestern gemacht.
                Sorry aber kannst mir da noch etwas genauer weiterhelfen?

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

                  @bastel2021

                  Was sagt

                  sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                  uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                  
                  B 1 Reply Last reply Reply Quote 0
                  • B
                    Bastel2021 @Thomas Braun last edited by

                    @thomas-braun
                    sorry das ich mich so blöd anstelle aber wie muss ich das genau im Terminal eingeben?

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

                      @bastel2021

                      So wie es da steht.
                      Am besten kopieren und einfügen.

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

                        sorry!


                        pi@raspberrypi:~ $

                        sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null

                        uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                        armv7l
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        /usr/bin/npx
                        v14.21.2
                        v14.21.2
                        6.14.17
                        6.14.17
                        internal/modules/cjs/loader.js:905
                        throw err;
                        ^

                        Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
                        at Function.Module._load (internal/modules/cjs/loader.js:746:27)
                        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
                        at internal/main/run_main_module.js:17:47 {
                        code: 'MODULE_NOT_FOUND',
                        requireStack: []
                        }
                        pi@raspberrypi:~ $

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

                          @bastel2021

                          Zuerstmal auf nodeJS@16 gehen.
                          Siehe meine Signatur.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            Bastel2021 @Thomas Braun last edited by

                            @thomas-braun
                            du schreibst dort ja von einem sauberen "npm tree"
                            der sieht bei mir aber nicht sauber aus!


                            pi@raspberrypi:~ $ cd /opt/iobroker
                            pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github|ERR'
                            npm ERR! missing: iobroker.js-controller@4.0.21, required by iobroker.inst@3.0.0
                            npm ERR! extraneous: iobroker.js-controller@4.0.21 /opt/iobroker/node_modules/iobroker.js-controller
                            │ │ │ ├── github-from-package@0.0.0
                            pi@raspberrypi:/opt/iobroker $

                            70317f7d-2d87-409f-b74b-557982684b8e-grafik.png

                            kann ich damit dann weitermachen?

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

                              @bastel2021

                              Ja. Oder direkt in die /etc/apt/sources.list.d/nodesource.list die 16 eintragen.

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                Bastel2021 @Thomas Braun last edited by

                                @thomas-braun
                                okay das hat glaube ich geklappt!
                                Und jetzt?

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

                                  @bastel2021

                                  Nicht glauben, prüfen.

                                  
                                  uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Bastel2021 last edited by

                                    das wird ausgegeben


                                    pi@raspberrypi:~ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                                    armv7l
                                    /usr/bin/nodejs
                                    /usr/bin/node
                                    /usr/bin/npm
                                    /usr/bin/npx
                                    v16.19.0
                                    v16.19.0
                                    8.19.3
                                    8.19.3
                                    pi
                                    pi adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi iobroker
                                    tty
                                    /home/pi
                                    OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                    OK:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                                    OK:4 https://phoscon.de/apt/deconz bullseye InRelease
                                    Paketlisten werden gelesen… Fertig
                                    nodejs:
                                    Installiert: 16.19.0-deb-1nodesource1
                                    Installationskandidat: 16.19.0-deb-1nodesource1
                                    Versionstabelle:
                                    *** 16.19.0-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                    100 /var/lib/dpkg/status
                                    12.22.12~dfsg-1~deb11u1 500
                                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                    pi@raspberrypi:~ $

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

                                      @bastel2021

                                      sudo -H -u iobroker npm cache clear
                                      cd /opt/iobroker
                                      sudo -H -u iobroker npm install iobroker.js-controller
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Bastel2021 last edited by

                                        ich glaube das sieht nicht so gut aus


                                        pi@raspberrypi:~ $ sudo -H -u iobroker npm cache clear

                                        cd /opt/iobroker

                                        sudo -H -u iobroker npm install iobroker.js-controller
                                        npm ERR! As of npm@5, the npm cache self-heals from corruption issues
                                        npm ERR! by treating integrity mismatches as cache misses. As a result,
                                        npm ERR! data extracted from the cache is guaranteed to be valid. If you
                                        npm ERR! want to make sure everything is consistent, use npm cache verify
                                        npm ERR! instead. Deleting the cache can only make npm go slower, and is
                                        npm ERR! not likely to correct any problems you may be encountering!
                                        npm ERR!
                                        npm ERR! On the other hand, if you're debugging an issue with the installer,
                                        npm ERR! or race conditions that depend on the timing of writing to an empty
                                        npm ERR! cache, you can use npm install --cache /tmp/empty-cache to use a
                                        npm ERR! temporary cache instead of nuking the actual one.
                                        npm ERR!
                                        npm ERR! If you're sure you want to delete the entire cache, rerun this command
                                        npm ERR! with --force.

                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR! /home/iobroker/.npm/_logs/2023-01-15T15_51_24_403Z-debug-0.log
                                        npm WARN old lockfile
                                        npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                                        npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                                        npm WARN old lockfile
                                        npm WARN old lockfile This is a one-time fix-up, please be patient...
                                        npm WARN old lockfile
                                        npm ERR! code 22
                                        npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                        npm ERR! command failed
                                        npm ERR! command sh -c -- node iobroker.js setup first
                                        npm ERR! No connection to databases possible ...

                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR! /home/iobroker/.npm/_logs/2023-01-15T15_51_26_424Z-debug-0.log
                                        pi@raspberrypi:/opt/iobroker $

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

                                          @bastel2021

                                          Sorry, muss

                                          sudo -H -u iobroker npm cache clear --force
                                          

                                          lauten.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            Bastel2021 @Thomas Braun last edited by

                                            @thomas-braun


                                            pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm cache clear --forcecd /opt/iobroker

                                            sudo -H -u iobroker npm install iobroker.js-controller
                                            npm WARN Not Found: /opt/iobroker
                                            npm WARN old lockfile
                                            npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                                            npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                                            npm WARN old lockfile
                                            npm WARN old lockfile This is a one-time fix-up, please be patient...
                                            npm WARN old lockfile
                                            npm ERR! code 22
                                            npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                            npm ERR! command failed
                                            npm ERR! command sh -c -- node iobroker.js setup first
                                            npm ERR! No connection to databases possible ...

                                            npm ERR! A complete log of this run can be found in:
                                            npm ERR! /home/iobroker/.npm/_logs/2023-01-15T15_59_37_585Z-debug-0.log
                                            pi@raspberrypi:/opt/iobroker $

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            903
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            73
                                            3620
                                            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