Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Unsolved No more detector, no more PIR, black screen

    EXT-Detector
    3
    15
    139
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abdelhadj Donators last edited by bugsounet

      Hello,
      I don’t know where to post, so please let me know if you have preference and sorry for the different posts.
      i try to follow the rules, if i do something wrong please advice me.
      i installed EXT-updateNotification and proceed to updates with telegram.
      after that i get black screen, EXT-Alert is showing some msg like npm rebuild inside gateway, EXT-Detector and EXT-PIR
      I tried to do so, but i get failed message at the end.
      the only update missing is magicMiror itself

      i tried to update it with telegram, after one night nothing happened
      i tried with git pull && npm install --only=prod --omit=dev no success
      the mirror starts then black screen, if i send /query it wakes up the mirror
      I am a bit lost, could you please help?

      Merci beacoup


      @bugsounet Moderate:

      • It’s not an MMM-GoogleAssistant issue
      • If MagicMirror rebuild failed in Gateway : it’s an Gateway issue
      • If MagicMirror rebuild failed in EXT-Detector : it’s an EXT-Detector issue
      • If MagicMirror rebuild failed in EXT-Pir : * it’s an EXT-Pir issue

      How post your issue:
      Click on Home forum link
      and Choose Extented Plugins
      All EXT-… and Gateway are there

      Don’t post on each plugins !
      try to solve plugins by plugins and time by time

      I will move this topic to EXT-Detector section

      A 1 Reply Last reply Reply Quote 0
      • Moved from Issues by  bugsounet bugsounet 
      • bugsounet
        bugsounet Main Coder last edited by

        hi, can you try this in a terminal:

        cd ~/MagicMirror/modules/EXT-Detector
        npm run rebuild
        

        and copy/past log content
        Thx

        A 1 Reply Last reply Reply Quote 0
        • A
          Anthony Donators @abdelhadj last edited by

          @abdelhadj Hi. I do not use telegram but if you have installed EXT-UpdateNotification it should make the updates by itself. IF you are using pm2 start your mirror and in terminal write

          pm2 logs mm
          

          and paste your output here so people how can help you are able to locate the problem. If you don’t use pm2 start your normaly and when it is loaded hit ctrl+shift+i to open dev cosole and paste any errors.

          1 Reply Last reply Reply Quote 0
          • A
            abdelhadj Donators @bugsounet last edited by

            @bugsounet

            
            pi@raspberrypi:~ $ cd ~/MagicMirror/modules/EXT-Detector
            npm run rebuild
            
            > EXT-Detector@1.0.1 rebuild /home/pi/MagicMirror/modules/EXT-Detector
            > installer/rebuild.sh
            
            Welcome to EXT-Detector rebuild script
            This script will erase current build of EXT-Detector and reinstall it
            Use this script only for the new version of Magic Mirror
            Do you want to continue ? [Y/n]
            Your choice: y
            
            Deleting: package-lock.json node_modules
            
            Done.
            
            Upgrading EXT-Detector...
            HEAD est maintenant à 04a5704 Merge pull request #2 from bugsounet/dev
            0 chemin mis à jour depuis l'index
            astuce: Tirer sans spécifier comment réconcilier les branches divergentes
            astuce: est découragé. Vous pouvez éliminer ce message en lançant une des
            astuce: commandes suivantes avant votre prochain tirage :
            astuce:
            astuce:   git config pull.rebase false  # fusion (stratégie par défaut)
            astuce:   git config pull.rebase true   # rebasage
            astuce:   git config pull.ff only       # avance rapide seulement
            astuce:
            astuce: Vous pouvez remplacer "git config" par "git config --global" pour que
            astuce: ce soit l'option par défaut pour tous les dépôts. Vous pouvez aussi
            astuce: passer --rebase, --no-rebase ou --ff-only sur la ligne de commande pour
            astuce: remplacer à l'invocation la valeur par défaut configurée.
            Déjà à jour.
            Done.
            
            Reinstalling EXT-Detector...
            
            > EXT-Detector@1.0.1 preinstall /home/pi/MagicMirror/modules/EXT-Detector
            > installer/preinstall.sh
            
            Welcome to EXT-Detector "1.0.1",
            
            Checking OS...
            OS Detected: linux-gnueabihf (raspbian 11 armv7l)
            
            Checking all dependencies...
            All Dependencies needed are installed !
            
            Installing all npm libraries...
            
            > @bugsounet/snowboy@2.2.5 install /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy
            > bash scripts/installer.sh
            
            make : on entre dans le répertoire « /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build »
              CXX(target) Release/obj.target/snowboy/lib/snowboy.o
              SOLINK_MODULE(target) Release/obj.target/snowboy.node
              COPY Release/snowboy.node
              COPY /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/binding/Release/node-v83-linux-arm/snowboy.node
              TOUCH Release/obj.target/action_after_build.stamp
            make : on quitte le répertoire « /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build »
            
            
            > @bugsounet/snowboy@2.2.5 postinstall /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy
            > tsc -p tsconfig.json
            
            
            > EXT-Detector@1.0.1 postinstall /home/pi/MagicMirror/modules/EXT-Detector
            > installer/postinstall.sh
            
            
            MagicMirror Rebuild...
            ⠏ MagicMirror Building module: snowboy, Completed: 0make : on entre dans le répertoire « /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build »
              CXX(target) Release/obj.target/snowboy/lib/snowboy.o
            <command-line>: warning: "_GLIBCXX_USE_CXX11_ABI" redefined
            <command-line>: note: this is the location of the previous definition
            ⠇ MagicMirror Building module: snowboy, Completed: 0In file included from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-local-handle.h:12,
                             from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-array-buffer.h:12,
                             from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8.h:25,
                             from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/node.h:63,
                             from ../../../nan/nan.h:60,
                             from ../lib/snowboy.cc:1:
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-internal.h:113:27: error: static assertion failed: Pointer compression can be enabled only for 64-bit architectures
              113 |     kApiSystemPointerSize == kApiInt64Size,
                  |     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-internal.h:471:68: warning: left shift count >= width of type  -Wshift-count-overflow]
              471 | static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32;
                  |                                                        ~~~~~~~~~~^~~~~
            
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-internal.h:471:68: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-internal.h:472:66: warning: left shift count >= width of type  -Wshift-count-overflow]
              472 |   static constexpr size_t kPtrComprCageBaseAlignment = size_t{1} << 32;
                  |                                                        ~~~~~~~~~~^~~~~
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-internal.h:472:66: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
            ⠸ MagicMirror Building module: snowboy, Completed: 0In file included from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8.h:53,
                             from /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/node.h:63,
                             from ../../../nan/nan.h:60,
                             from ../lib/snowboy.cc:1:
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-script.h:230:79: warning: ‘using ResolveCallback = class v8::MaybeLocal<v8::Module> (*)(class v8::Local<v8::Context>, class v8::Local<v8::String>, class v8::Local<v8::Module>)’ is deprecated: Use ResolveModuleCallback [-Wdeprecated-declarations]
              230 |                                              ResolveCallback callback);
                  |                                                                      ^
            
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/v8-script.h:212:9: note: declared here
              212 |   using ResolveCallback V8_DEPRECATE_SOON("Use ResolveModuleCallback") =
                  |         ^~~~~~~~~~~~~~~
            ⠴ MagicMirror Building module: snowboy, Completed: 0In file included from ../../../nan/nan.h:60,
                             from ../lib/snowboy.cc:1:
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/node.h:821:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
              821 |       (node::addon_register_func) (regfunc),                          \
                  |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.1.0/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
              855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                  |   ^~~~~~~~~~~~~
            ../lib/snowboy.cc:183:1: note: in expansion of macro ‘NODE_MODULE’
              183 | NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
                  | ^~~~~~~~~~~
            ⠏ MagicMirror Building module: snowboy, Completed: 0make: *** [snowboy.target.mk:129 : Release/obj.target/snowboy/lib/snowboy.o] Erreur 1
            make : on quitte le répertoire « /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build »
            ✖ MagicMirror Rebuild Failed
            
            An unhandled error occurred inside electron-rebuild
            node-gyp failed to rebuild '/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy'.
            Error: `make` failed with exit code: 2
            
            
            
            Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy'.
            Error: `make` failed with exit code: 2
            
            
                at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19)
                at processTicksAndRejections (internal/process/task_queues.js:97:5)
                at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:180:9)
                at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:143:17)
                at async /home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/cli.js:141:9
            
            Support is now moved in a dedicated Server: https://forum.bugsounet.fr
            @bugsounet
            
            EXT-Detector is now installed !
            npm notice created a lockfile as package-lock.json. You should commit this file.
            npm WARN notsup Unsupported engine for node-gyp@9.1.0: wanted: {"node":"^12.22 || ^14.13 || >=16"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: node-gyp@9.1.0
            npm WARN notsup Unsupported engine for make-fetch-happen@10.2.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: make-fetch-happen@10.2.1
            npm WARN notsup Unsupported engine for npmlog@6.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: npmlog@6.0.2
            npm WARN notsup Unsupported engine for cacache@16.1.3: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: cacache@16.1.3
            npm WARN notsup Unsupported engine for minipass-fetch@2.1.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: minipass-fetch@2.1.2
            npm WARN notsup Unsupported engine for ssri@9.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: ssri@9.0.1
            npm WARN notsup Unsupported engine for @npmcli/fs@2.1.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: @npmcli/fs@2.1.2
            npm WARN notsup Unsupported engine for @npmcli/move-file@2.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: @npmcli/move-file@2.0.1
            npm WARN notsup Unsupported engine for unique-filename@2.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: unique-filename@2.0.1
            npm WARN notsup Unsupported engine for unique-slug@3.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: unique-slug@3.0.0
            npm WARN notsup Unsupported engine for are-we-there-yet@3.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: are-we-there-yet@3.0.1
            npm WARN notsup Unsupported engine for gauge@4.0.4: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"14.1.0","npm":"6.14.15"})
            npm WARN notsup Not compatible with your version of node/npm: gauge@4.0.4
            
            added 189 packages from 159 contributors and audited 189 packages in 44.068s
            
            27 packages are looking for funding
              run `npm fund` for details
            
            found 0 vulnerabilities
            
            1 Reply Last reply Reply Quote 0
            • bugsounet
              bugsounet Main Coder last edited by bugsounet

              using electron v16.1.0 ?
              So it’s not lastest the lastest version of MagicMirror

              can you try this in a terminal:

              cd ~/MagicMirror
              cat package.json|grep version
              

              after past the result of this:

              node -v
              npm -v
              

              result must be :

              pi@raspberrypi:~/MagicMirror $ cat package.json|grep version
                      "version": "2.20.0",
              

              and:

              pi@raspberrypi:~/MagicMirror $ node -v
              v16.17.1
              pi@raspberrypi:~/MagicMirror $ npm -v
              8.15.0
              

              accepted: v16.x and v8.x

              A 1 Reply Last reply Reply Quote 0
              • A
                abdelhadj Donators @bugsounet last edited by

                @bugsounet
                Hello,

                pi@raspberrypi:~ $ cd ~/MagicMirror
                cat package.json|grep version
                        "version": "2.18.0",
                pi@raspberrypi:~/MagicMirror $ node -v
                v14.1.0
                pi@raspberrypi:~/MagicMirror $ npm -v
                6.14.15
                

                Could you please indicate how to update node, npm and MM? in which order do you advice?

                Thank you.

                1 Reply Last reply Reply Quote 0
                • A
                  abdelhadj Donators last edited by

                  Bonjour,
                  i tried different tutorial with no success
                  like git pull && npm install --only=prod --omit=dev un MagicMirror folder
                  I managed to update node to
                  v16.17.1
                  but npm -v gives the following :

                  /usr/local/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110
                  class SocksProxyAgent extends agent_base_1.Agent {
                  ^

                  TypeError: Class extends value undefined is not a constructor or null
                  at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110:44)
                  at Module._compile (node:internal/modules/cjs/loader:1126:14)
                  at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
                  at Module.load (node:internal/modules/cjs/loader:1004:32)
                  at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                  at Module.require (node:internal/modules/cjs/loader:1028:19)
                  at require (node:internal/modules/cjs/helpers:102:18)
                  at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/agent.js:174:29)
                  at Module._compile (node:internal/modules/cjs/loader:1126:14)
                  at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
                  at Module.load (node:internal/modules/cjs/loader:1004:32)
                  at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                  at Module.require (node:internal/modules/cjs/loader:1028:19)
                  at require (node:internal/modules/cjs/helpers:102:18)
                  at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js:7:18)
                  at Module._compile (node:internal/modules/cjs/loader:1126:14)

                  What should i do to have a clean update please?
                  i am not ready to install everything from scratch 😞

                  thank you for your help

                  bugsounet 1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by

                    To repair:

                    1. result of this command:

                    cat /etc/apt/sources.list.d/nodesource.list

                    must be this:

                    deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                    deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                    

                    Warn: If you don’t have this result don’t continue !

                    1. Let’s uninstall nodejs completly
                    sudo apt remove nodejs
                    
                    1. delete ghost npm sources directory
                    sudo rm -rf /usr/local/lib/node_modules
                    
                    1. reinstall nodejs
                    sudo apt-get install nodejs
                    
                    1. verify node and npm version
                    bugsounet@debian:~$ node -v
                    v16.18.0
                    bugsounet@debian:~$ npm -v
                    8.19.2
                    
                    1. if works … let’s continue 🙂
                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder @abdelhadj last edited by

                      @abdelhadj said in No more detector, no more PIR, black screen:

                      i am not ready to install everything from scratch

                      That why i create Auto-Installer for newbies 🙂

                      1 Reply Last reply Reply Quote 0
                      • A
                        abdelhadj Donators last edited by

                        Hello,
                        I followed the 6 steps, this solved nodejs issue
                        then i used the auto installer but only to update
                        everything seems to work, just some trouble with PIR Sensor,
                        by checking the logs, [PIR] Detected presence (value: 1) and no one in front, maybe some electrical perturbation

                        Thank you very much.

                        1 Reply Last reply Reply Quote 0
                        • A
                          abdelhadj Donators last edited by

                          Bonjour Cédric,
                          J’ai un nouveau mon EXT-Pir, Gateway et EXT-Detector qui ne fonctionne plus après mise à jour du MM

                          pi@raspberrypi:~/MagicMirror $ node -v
                          v16.17.1
                          pi@raspberrypi:~/MagicMirror $ npm -v
                          8.19.3
                          pi@raspberrypi:~/MagicMirror $ cat package.json|grep version
                          “version”: “2.22.0”,
                          EXT-Alert suggest run npm run rebuild under Gateway, PIR and Detector but i get MM rebuild failed

                          Below the logs using pm2.

                          Merci d’avance pour l’aide!

                          pi@raspberrypi:~/MagicMirror $ pm2 logs mm
                          [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
                          /home/pi/.pm2/logs/mm-error.log last 15 lines:
                          1|mm | [13.02.2023 22:57.27.117] [ERROR] [GATEWAY] node-pty Loading error! Error: Cannot find module ‘…/build/Release/pty.node’
                          1|mm | Require stack:
                          1|mm | - /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/lib/unixTerminal.js
                          1|mm | - /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/lib/index.js
                          1|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js
                          1|mm | - /home/pi/MagicMirror/js/app.js
                          1|mm | - /home/pi/MagicMirror/js/electron.js
                          1|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                          1|mm | -
                          1|mm | [13.02.2023 22:57.27.120] [ERROR] [GATEWAY] Warning: 1 needed library not loaded !
                          1|mm | [13.02.2023 22:57.27.122] [ERROR] [GATEWAY] Try to solve it with npm run rebuild in Gateway directory
                          1|mm | [13.02.2023 22:57.27.123] [ERROR] [GATEWAY] Warning: 1 needed library not loaded !
                          1|mm | [13.02.2023 22:57.27.125] [ERROR] [GATEWAY] Try to solve it with npm run rebuild in Gateway directory
                          1|mm | [13.02.2023 22:57.27.189] [ERROR] [DETECTOR] No detector initialized!
                          1|mm | [13.02.2023 22:57.27.285] [ERROR] [DETECTOR] No detector initialized!

                          /home/pi/.pm2/logs/mm-out.log last 15 lines:
                          1|mm | [13.02.2023 22:57.25.987] [LOG] [GA] RECIPE_LOADED: Reboot-Restart-Shutdown.js
                          1|mm | [13.02.2023 22:57.25.989] [LOG] [GA] RECIPE_LOADED: MMM-Pages_Manager.js
                          1|mm | [13.02.2023 22:57.25.992] [LOG] [GA] RECIPE_LOADED: ScreenManager.js
                          1|mm | [13.02.2023 22:57.25.996] [LOG] [GA] RECIPE_LOADED: MyRecipes.js
                          1|mm | [13.02.2023 22:57.25.997] [LOG] [GA] Google Assistant is initialized.
                          1|mm | [13.02.2023 22:57.26.168] [LOG] [RADIO] EXT-Radio is Ready.
                          1|mm | [13.02.2023 22:57.27.158] [INFO] Newsfeed-Fetcher: Broadcasting 30 items.
                          1|mm | [13.02.2023 22:57.27.340] [INFO] Newsfeed-Fetcher: Broadcasting 18 items.
                          1|mm | [13.02.2023 22:57.27.453] [LOG] [NETATMO] Authenticated!
                          1|mm | [13.02.2023 22:57.27.647] [LOG] MMM-MQTT: Starting client for localhost:1883 user xxx
                          1|mm | [13.02.2023 22:57.27.648] [LOG] MMM-MQTT: Connecting to mqtt://localhost:1883
                          1|mm | [13.02.2023 22:57.27.905] [LOG] MMM-MQTT connected to mqtt://localhost:1883
                          1|mm | [13.02.2023 22:57.27.906] [LOG] MMM-MQTT: subscribing to miflora/Monstera
                          1|mm | [13.02.2023 22:57.28.359] [INFO] Calendar-Fetcher: Broadcasting 8 events.
                          1|mm | [13.02.2023 22:57.29.819] [INFO] Calendar-Fetcher: Broadcasting 79 events.

                          1 Reply Last reply Reply Quote 0
                          • bugsounet
                            bugsounet Main Coder last edited by

                            'soir, c’est ecrit … et EXT-Alert le répète aussi sur l’écran 😉

                            Il suffit de lire 🙂

                            1|mm | [13.02.2023 22:57.27.122] [ERROR] [GATEWAY] Try to solve it with npm run rebuild in Gateway directory

                            1 Reply Last reply Reply Quote 0
                            • A
                              abdelhadj Donators last edited by

                              Bonsoir,
                              C’est ce que j’ai déjà fait.
                              mais d’après le log ci-dessous ça ne s’est pas correctement déroulé?

                              pi@raspberrypi:~/MagicMirror/modules/Gateway $ npm run rebuild
                              
                              > Gateway@2.2.5 rebuild
                              > installer/rebuild.sh
                              
                              Welcome to Gateway rebuild script
                              This script will erase current build and reinstall it
                              
                              Deleting: package-lock.json node_modules
                              Done.
                              
                              Upgrading Gateway...
                              HEAD est maintenant à 2047bce70 delete user_presence // missing EXT-FreeboxTV rules
                              astuce: Tirer sans spécifier comment réconcilier les branches divergentes
                              astuce: est découragé. Vous pouvez éliminer ce message en lançant une des
                              astuce: commandes suivantes avant votre prochain tirage :
                              astuce:
                              astuce:   git config pull.rebase false  # fusion (stratégie par défaut)
                              astuce:   git config pull.rebase true   # rebasage
                              astuce:   git config pull.ff only       # avance rapide seulement
                              astuce:
                              astuce: Vous pouvez remplacer "git config" par "git config --global" pour que
                              astuce: ce soit l'option par défaut pour tous les dépôts. Vous pouvez aussi
                              astuce: passer --rebase, --no-rebase ou --ff-only sur la ligne de commande pour
                              astuce: remplacer à l'invocation la valeur par défaut configurée.
                              Déjà à jour.
                              Done.
                              Reinstalling Gateway...
                              npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
                              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.
                              
                              > Gateway@2.2.5 preinstall
                              > installer/preinstall.sh
                              
                              
                              Welcome to Gateway v2.2.5
                              
                              No root checking...
                              Checking Gateway: pi/pi
                              Checking MagicMirror: pi/pi
                              
                              Checking OS...
                              OS Detected: linux-gnueabihf (raspbian 11 armv7l)
                              
                              Checking all dependencies...
                              All Dependencies needed are installed !
                              
                              Installing all npm libraries...
                              
                              > Gateway@2.2.5 postinstall
                              > installer/postinstall.sh
                              
                              ⠙ MagicMirror Building module: node-pty, Completed: 0gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
                              ⠹ MagicMirror Building module: node-pty, Completed: 0gyp http GET https://www.electronjs.org/headers/v17.2.0/node-v17.2.0-headers.tar.gz
                              ⠇ MagicMirror Building module: node-pty, Completed: 0gyp http 200 https://artifacts.electronjs.org/headers/v17.2.0/node-v17.2.0-headers.tar.gz?force_headers_dist=1
                              ⠙ MagicMirror Building module: node-pty, Completed: 0gyp http GET https://www.electronjs.org/headers/v17.2.0/SHASUMS256.txt
                              gyp http 200 https://artifacts.electronjs.org/headers/v17.2.0/SHASUMS256.txt?force_headers_dist=1
                              gyp info spawn /usr/bin/python3
                              gyp info spawn args [
                              gyp info spawn args   '/home/pi/MagicMirror/modules/Gateway/node_modules/node-gyp/gyp/gyp_main.py',
                              gyp info spawn args   'binding.gyp',
                              gyp info spawn args   '-f',
                              gyp info spawn args   'make',
                              gyp info spawn args   '-I',
                              gyp info spawn args   '/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build/config.gypi',
                              gyp info spawn args   '-I',
                              gyp info spawn args   '/home/pi/MagicMirror/modules/Gateway/node_modules/node-gyp/addon.gypi',
                              gyp info spawn args   '-I',
                              gyp info spawn args   '/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/common.gypi',
                              gyp info spawn args   '-Dlibrary=shared_library',
                              gyp info spawn args   '-Dvisibility=default',
                              gyp info spawn args   '-Dnode_root_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0',
                              gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-gyp',
                              gyp info spawn args   '-Dnode_lib_file=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/<(target_arch)/node.lib',
                              gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty',
                              gyp info spawn args   '-Dnode_engine=v8',
                              gyp info spawn args   '--depth=.',
                              gyp info spawn args   '--no-parallel',
                              gyp info spawn args   '--generator-output',
                              gyp info spawn args   'build',
                              gyp info spawn args   '-Goutput_dir=.'
                              gyp info spawn args ]
                              ⠇ MagicMirror Building module: node-pty, Completed: 0gyp info spawn make
                              gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                              make : on entre dans le répertoire « /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build »
                                CXX(target) Release/obj.target/pty/src/unix/pty.o
                              ⠧ MagicMirror Building module: node-pty, Completed: 0In file included from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-local-handle.h:12,
                                               from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-array-buffer.h:12,
                                               from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8.h:25,
                                               from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/node.h:63,
                                               from ../../nan/nan.h:60,
                                               from ../src/unix/pty.cc:20:
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:113:27: error: static assertion failed: Pointer compression can be enabled only for 64-bit architectures
                                113 |     kApiSystemPointerSize == kApiInt64Size,
                                    |     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:471:68: warning: left shift count >= width of type [-Wshift-count-overflow]
                                471 | static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32;
                                    |                                                        ~~~~~~~~~~^~~~~
                              
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:471:68: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:472:66: warning: left shift count >= width of type [-Wshift-count-overflow]
                                472 |   static constexpr size_t kPtrComprCageBaseAlignment = size_t{1} << 32;
                                    |                                                        ~~~~~~~~~~^~~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:472:66: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:509:48: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘1099511627776’ to ‘0’ [-Woverflow]
                                509 | constexpr size_t kVirtualMemoryCageSize = 1ULL << kVirtualMemoryCageSizeLog2;
                                    |                                           ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:528:60: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘34359738368’ to ‘0’ [-Woverflow]
                                528 | constexpr size_t kVirtualMemoryCageGuardRegionSize = 32ULL * GB;
                                    |                                                            ^
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:531:45: error: non-constant condition for static assertion
                                530 | static_assert((kVirtualMemoryCageGuardRegionSize %
                                    |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                531 |                kVirtualMemoryCageAlignment) == 0,
                                    |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:542:56: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘34359738368’ to ‘0’ [-Woverflow]
                                542 | constexpr size_t kVirtualMemoryCageMinimumSize = 32ULL * GB;
                                    |                                                        ^
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:557:66: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘8589934592’ to ‘0’ [-Woverflow]
                                557 | constexpr size_t kFakeVirtualMemoryCageMinReservationSize = 8ULL * GB;
                                    |                                                                  ^
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:559:45: error: non-constant condition for static assertion
                                559 | static_assert(kVirtualMemoryCageMinimumSize >
                                    |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                560 |                   Internals::kPtrComprCageReservationSize,
                                    |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-internal.h:563:56: error: non-constant condition for static assertion
                                563 | static_assert(kFakeVirtualMemoryCageMinReservationSize >
                                    |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                564 |                   Internals::kPtrComprCageReservationSize,
                                    |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              ⠹ MagicMirror Building module: node-pty, Completed: 0In file included from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8.h:53,
                                               from /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/node.h:63,
                                               from ../../nan/nan.h:60,
                                               from ../src/unix/pty.cc:20:
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-script.h:232:79: warning: ‘using ResolveCallback = class v8::MaybeLocal<v8::Module> (*)(class v8::Local<v8::Context>, class v8::Local<v8::String>, class v8::Local<v8::Module>)’ is deprecated: Use ResolveModuleCallback [-Wdeprecated-declarations]
                                232 |                                              ResolveCallback callback);
                                    |                                                                      ^
                              
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/v8-script.h:214:9: note: declared here
                                214 |   using ResolveCallback V8_DEPRECATED("Use ResolveModuleCallback") =
                                    |         ^~~~~~~~~~~~~~~
                              ⠙ MagicMirror Building module: node-pty, Completed: 0../src/unix/pty.cc: In function ‘void pty_after_waitpid(uv_async_t*)’:
                              ../src/unix/pty.cc:512:43: warning: ‘void* memset(void*, int, size_t)’ writing to an object of type ‘class Nan::Persistent<v8::Function>’ with no trivial copy-assignment [-Wclass-memaccess]
                                512 |   memset(&baton->cb, -1, sizeof(baton->cb));
                                    |                                           ^
                              In file included from ../../nan/nan.h:409,
                                               from ../src/unix/pty.cc:20:
                              ../../nan/nan_persistent_12_inl.h:12:40: note: ‘class Nan::Persistent<v8::Function>’ declared here
                                 12 | template<typename T, typename M> class Persistent :
                                    |                                        ^~~~~~~~~~
                              In file included from ../../nan/nan.h:60,
                                               from ../src/unix/pty.cc:20:
                              ../src/unix/pty.cc: At global scope:
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/node.h:832:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                832 |       (node::addon_register_func) (regfunc),                          \
                                    |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/17.2.0/include/node/node.h:866:3: note: in expansion of macro ‘NODE_MODULE_X’
                                866 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                    |   ^~~~~~~~~~~~~
                              ../src/unix/pty.cc:734:1: note: in expansion of macro ‘NODE_MODULE’
                                734 | NODE_MODULE(pty, init)
                                    | ^~~~~~~~~~~
                              ⠼ MagicMirror Building module: node-pty, Completed: 0make: *** [pty.target.mk:121 : Release/obj.target/pty/src/unix/pty.o] Erreur 1
                              make : on quitte le répertoire « /home/pi/MagicMirror/modules/Gateway/node_modules/node-pty/build »
                              ✖ MagicMirror Rebuild Failed
                              
                              An unhandled error occurred inside electron-rebuild
                              node-gyp failed to rebuild '/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty'.
                              Error: `make` failed with exit code: 2
                              
                              
                              
                              Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/Gateway/node_modules/node-pty'.
                              Error: `make` failed with exit code: 2
                              
                              
                                  at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19)
                                  at processTicksAndRejections (node:internal/process/task_queues:96:5)
                                  at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/rebuild.js:180:9)
                                  at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/rebuild.js:143:17)
                                  at async /home/pi/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/cli.js:141:9
                              
                              Support is now moved in a dedicated Server: https://forum.bugsounet.fr
                              @bugsounet
                              
                              Gateway is now installed !
                              
                              added 407 packages, and audited 408 packages in 29s
                              
                              42 packages are looking for funding
                                run `npm fund` for details
                              
                              1 high severity vulnerability
                              
                              To address all issues, run:
                                npm audit fix
                              
                              Run `npm audit` for details.
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • bugsounet
                                bugsounet Main Coder last edited by bugsounet

                                'lut http GET https://www.electronjs.org/headers/v17.2.0/node-v17.2.0-headers.tar.gz cela correspond a la version v2.19 de MM²
                                Je ne pense pas que tu as mis a jour reelement MM² vers la version v2.22 😉

                                peux tu verifier si c’est rellement a jour?

                                cd ~/MagicMirror
                                git reset --hard
                                git pull
                                npm install
                                

                                ensuite rebuild Gateway

                                cd ~/MagicMirror/modules/Gateway
                                npm run rebuild
                                

                                tu devrai voir:
                                ⠼ MagicMirror Building module: node-pty, Completed: 0gyp http GET https://www.electronjs.org/headers/v22.0.0/node-v22.0.0-headers.tar.gz

                                Notes:

                                • ne pas faire de npm aufit fix au d’autres commandes 😉
                                • il se peux tu ai a faire un rebuild dans d’autre module sensible, EXT-Alert te le dira (ou tu le vera en console)
                                1 Reply Last reply Reply Quote 1
                                • A
                                  abdelhadj Donators last edited by

                                  Super c’est tout bon merci!

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post
                                  Powered by NodeBB | @bugsounet ©2022