Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. iObroker not accessible

    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

    iObroker not accessible

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

      @thomas-braun thank you for your reply

      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      > 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: Ulazak u direktorij '/opt/iobroker/node_modules/unix-dgram/build'
        CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
      In file included from ../../nan/nan.h:60,
                       from ../src/unix_dgram.cc:5:
      /home/iobroker/.cache/node-gyp/14.21.1/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/iobroker/.cache/node-gyp/14.21.1/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: Izlazak iz direktorija '/opt/iobroker/node_modules/unix-dgram/build'
      
      > iobroker.js-controller@4.0.23 install /opt/iobroker/node_modules/iobroker.js-controller
      > node iobroker.js setup first
      
      Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
      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 WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
      npm WARN iobroker No description
      npm WARN iobroker No repository field.
      npm WARN iobroker No README data
      npm WARN iobroker No license field.
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 24
      npm ERR! iobroker.js-controller@4.0.23 install: `node iobroker.js setup first`
      npm ERR! Exit status 24
      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/2022-12-11T11_39_21_489Z-debug.log
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Vraanaa last edited by

        @vraanaa

        First upgrade your nodejs to version 16.

        Vraanaa 2 Replies Last reply Reply Quote 0
        • Vraanaa
          Vraanaa @Thomas Braun last edited by Vraanaa

          @thomas-braun I did but it didnt update - strange - I stopped iobroker before:
          Edit - sorry I forgot to run sudo apt install -y nodejs

          pi@raspberrypi:~ $ node -v
          v14.21.1
          pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
          
          ## Installing the NodeSource Node.js 16.x repo...
          
          
          ## Populating apt-get cache...
          
          + apt-get update
          Hit:1 http://archive.raspberrypi.org/debian buster InRelease
          Hit:2 https://deb.nodesource.com/node_16.x buster InRelease                                 
          Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease                             
          Reading package lists... Done
          
          ## Confirming "buster" is supported...
          
          + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_16.x/dists/buster/Release'
          
          ## Adding the NodeSource signing key to your keyring...
          
          + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
          gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
          
          ## Creating apt sources list file for the NodeSource Node.js 16.x repo...
          
          + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x buster main' > /etc/apt/sources.list.d/nodesource.list
          + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x buster main' >> /etc/apt/sources.list.d/nodesource.list
          
          ## Running `apt-get update` for you...
          
          + apt-get update
          Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
          Hit:2 http://archive.raspberrypi.org/debian buster InRelease             
          Hit:3 https://deb.nodesource.com/node_16.x buster InRelease              
          Reading package lists... Done                      
          
          ## Run `sudo apt-get install -y nodejs` to install Node.js 16.x and npm
          ## You may also need development tools to build native addons:
               sudo apt-get install gcc g++ make
          ## To install the Yarn package manager, run:
               curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
               echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
               sudo apt-get update && sudo apt-get install yarn
          
          
          pi@raspberrypi:~ $ node -v
          v14.21.1
          pi@raspberrypi:~ $ 
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Vraanaa last edited by

            @vraanaa
            What does this command do?

            sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
            uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            
            1 Reply Last reply Reply Quote 0
            • Vraanaa
              Vraanaa @Thomas Braun last edited by

              @thomas-braun now is on version 16

              pi@raspberrypi:~ $ node -v
              v16.18.1
              pi@raspberrypi:~ $ iobroker start
              pi@raspberrypi:~ $ iobroker update
              node:internal/modules/cjs/loader:988
                throw err;
                ^
              
              Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
                  at Function.Module._load (node:internal/modules/cjs/loader:833:27)
                  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                  at node:internal/main/run_main_module:22:47 {
                code: 'MODULE_NOT_FOUND',
                requireStack: []
              }
              pi@raspberrypi:~ $ iobroker fix
              library: loaded
              Library version=2022-06-15
              ioBroker is not installed in /opt/iobroker! Cannot fix anything...
              pi@raspberrypi:~ $ 
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Vraanaa last edited by

                @vraanaa

                The 'Buster' release has reached its End of Life.
                Please install the actual stable Release 'Bullseye'

                Vraanaa 2 Replies Last reply Reply Quote 0
                • Vraanaa
                  Vraanaa @Thomas Braun last edited by Vraanaa

                  @thomas-braun thank you for you help so far - can you help me little bit with this Bullseye? How exactly I should install it?

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

                    @vraanaa

                    In german language only:

                    https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

                    But I'm sure that there are plenty of instructions out there in English or even your native language.

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

                      @thomas-braun kein problem - ich kann auch Deutch verstehen 👍
                      Vielen Dank - probiere ich und melde.
                      So nach Bullseye instalation soll alles OK sein oder muss ich noch ewas anderes zu tun?

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

                        @vraanaa

                        Nein, der iobroker wird nach einem Upgrade auf Bullseye immer noch kaputt sein. Aber dann ist die Basis schonmal aktuell und stabil.

                        1 Reply Last reply Reply Quote 1
                        • Vraanaa
                          Vraanaa @Thomas Braun last edited by

                          @thomas-braun I did all as per manual. can we check if everything is ok before next steps?

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

                            @vraanaa

                            sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                            uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                            

                            what is the feedback to this chain of commands?

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

                              @thomas-braun

                              pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                              uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                              armv7l
                              Kein Docker
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              v16.18.1
                              v16.18.1
                              8.19.2
                              node:internal/modules/cjs/loader:988
                                throw err;
                                ^
                              
                              Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
                                  at Function.Module._load (node:internal/modules/cjs/loader:833:27)
                                  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                                  at node:internal/main/run_main_module:22:47 {
                                code: 'MODULE_NOT_FOUND',
                                requireStack: []
                              }
                              pi@raspberrypi:~ $ 
                              
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Vraanaa last edited by Thomas Braun

                                @vraanaa sagte in iObroker not accessible:

                                
                                whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                
                                Vraanaa 1 Reply Last reply Reply Quote 0
                                • Vraanaa
                                  Vraanaa @Thomas Braun last edited by

                                  @thomas-braun kommt diese

                                  pi@raspberrypi:~ $ whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                  pi
                                  pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
                                  x11
                                  LXDE-pi
                                  /home/pi
                                  Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                  Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease                 
                                  Hit:3 https://dl.yarnpkg.com/debian stable InRelease                           
                                  Hit:4 https://deb.nodesource.com/node_16.x bullseye InRelease            
                                  Reading package lists... Done                      
                                  Building dependency tree... Done
                                  Reading state information... Done
                                  All packages are up to date.
                                  nodejs:
                                    Installed: 16.18.1-deb-1nodesource1
                                    Candidate: 16.18.1-deb-1nodesource1
                                    Version table:
                                   *** 16.18.1-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 @Vraanaa last edited by

                                    @vraanaa

                                    Turn the Desktop OFF.
                                    A server is running headless. Always.

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

                                      @thomas-braun meinst du dass ich remote vnc desktop benutzen nicht?
                                      kann ich auch durch putty zum ssh gehen.

                                      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Vraanaa last edited by

                                        @vraanaa
                                        Nein, auch kein remote DESKTOP.
                                        NO DESKTOP.

                                        sudo raspi-config
                                        
                                        Menu:
                                        1 System Options       
                                        S5 Boot / Auto Login 
                                        B1 Console
                                        
                                        Vraanaa 1 Reply Last reply Reply Quote 0
                                        • Vraanaa
                                          Vraanaa @Thomas Braun last edited by

                                          @thomas-braun I did it:

                                          pi@raspberrypi:~ $ whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_S                                                                                  ESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy n                                                                                  odejs
                                          pi
                                          pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin g                                                                                  pio i2c spi iobroker
                                          tty
                                          
                                          /home/pi
                                          Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                          Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
                                          Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                                          Hit:4 https://dl.yarnpkg.com/debian stable InRelease
                                          Reading package lists... Done
                                          Building dependency tree... Done
                                          Reading state information... Done
                                          All packages are up to date.
                                          nodejs:
                                            Installed: 16.18.1-deb-1nodesource1
                                            Candidate: 16.18.1-deb-1nodesource1
                                            Version table:
                                           *** 16.18.1-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
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Vraanaa last edited by

                                            @vraanaa sagte in iObroker not accessible:

                                            @thomas-braun meinst du dass ich remote vnc desktop benutzen nicht?
                                            kann ich auch durch putty zum ssh gehen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            624
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            33
                                            2852
                                            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