MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    electron-rebuild problems with MagicMirror 2.22.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    53 Posts 5 Posters 18.0k Views 6 Watching
    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.
    • karsten13K Online
      karsten13 @sdetweil
      last edited by

      strange, I did npm install in the MMM-Buttons folder.

      More info (running in a docker container):

      node@raspberrypi:/opt/magic_mirror$ npx node-gyp -v
      v9.3.1
      node@raspberrypi:/opt/magic_mirror$ node -v
      v19.3.0
      node@raspberrypi:/opt/magic_mirror$ uname -a
      Linux raspberrypi 5.15.76-v7l+ #1597 SMP Fri Nov 4 12:14:58 GMT 2022 armv7l GNU/Linux
      node@raspberrypi:/opt/magic_mirror$ cat /etc/os-release
      PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
      NAME="Debian GNU/Linux"
      VERSION_ID="11"
      VERSION="11 (bullseye)"
      VERSION_CODENAME=bullseye
      ID=debian
      HOME_URL="https://www.debian.org/"
      SUPPORT_URL="https://www.debian.org/support"
      BUG_REPORT_URL="https://bugs.debian.org/"
      node@raspberrypi:/opt/magic_mirror$ npm -v
      9.2.0
      
      1 Reply Last reply Reply Quote 0
      • karsten13K Online
        karsten13 @sdetweil
        last edited by

        @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

        Linux galliumos 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

        thats x86_64, not arm32v7, totally different concerning compiling stuff which is done in electron-rebuild …

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @karsten13
          last edited by sdetweil

          @karsten13 his was x86_64… (edit: i see his is amd64, oops, tldr;l!)…

          I will see if I can get a vm on my new amd64 chromebook… had it til I powered off…

          but I built on buster and bullseye on pi4 also … MM version 2.22

          but his didn’t execute the postinstall script

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          karsten13K 2 Replies Last reply Reply Quote 0
          • karsten13K Online
            karsten13 @sdetweil
            last edited by

            @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

            his was x86_64…

            he wrote “I use a fully patched Raspberry OS Bullseye 32Bit.” so I think this is arm32v7

            but I built on buster and bullseye on pi4 also … MM version 2.22
            but his didn’t execute the postinstall script

            strange

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @karsten13
              last edited by

              @karsten13 yeh, his says

              kristjan@debian:~/Infomonitor/MagicMirror/modules/MMM-Buttons$ uname -r
              5.10.0-20-amd64

              so not 32 bit.

              @KristjanESPERANTO

              can you go to the MMM-Buttons folder and do

              ./postinstall

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • karsten13K Online
                karsten13 @sdetweil
                last edited by

                @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

                his was x86_64… (edit: i see his is amd64, oops, tldr;l!)…
                I will see if I can get a vm on my new amd64 chromebook… had it til I powered off…

                @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

                so not 32 bit.

                he wrote 32 bit

                x86_64=amd64: No Raspian OS
                arm32v7=arm=aarch32: Raspian OS 32-bit
                arm64v8=arm64=aarch64: Raspian OS 64-bit

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @karsten13
                  last edited by sdetweil

                  @karsten13 yeh, haven’t tested on arm64 on pi for a while.

                  but its still an npm problem if it doesn’t run the postinstall

                  flashing image now

                  worked fine

                  pi@raspberrypi:~/MagicMirror/modules $ uname -a
                  Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
                  pi@raspberrypi:~/MagicMirror/modules $ node -v
                  v16.19.0
                  pi@raspberrypi:~/MagicMirror/modules $ npm -v
                  8.19.3
                  pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/sdetweil/MMM-Buttons.git
                  Cloning into 'MMM-Buttons'...
                  remote: Enumerating objects: 56, done.
                  remote: Counting objects: 100% (4/4), done.
                  remote: Compressing objects: 100% (4/4), done.
                  remote: Total 56 (delta 0), reused 2 (delta 0), pack-reused 52
                  Receiving objects: 100% (56/56), 11.86 KiB | 3.95 MiB/s, done.
                  Resolving deltas: 100% (25/25), done.
                  pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Buttons/
                  pi@raspberrypi:~/MagicMirror/modules/MMM-Buttons $ npm install --omit=dev --no-audit --no-fund
                  
                  > Magic-Mirror-Module-Buttons@1.0.0 postinstall
                  > ./postinstall
                  
                  /home/pi/MagicMirror/modules/MMM-Buttons
                  ⠙ Building module: epoll, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
                    CXX(target) Release/obj.target/epoll/src/epoll.o
                  ⠸ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
                  ⠧ Building module: epoll, Completed: 0  COPY Release/epoll.node
                  make: Leaving directory '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
                  ✔ Rebuild Complete
                  
                  added 6 packages in 2m
                  pi@raspberrypi:~/MagicMirror/modules/MMM-Buttons $ 
                  
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  wishmaster270W 1 Reply Last reply Reply Quote 0
                  • wishmaster270W Offline
                    wishmaster270 Module Developer @sdetweil
                    last edited by

                    @sdetweil Sorry, had no Internet connection for a few hours.

                    The version of my GPIO module in the development branch uses the postinstall script and there is where the error happens.

                    It is a Raspberry 4 in my case with 32bit Bullseye.

                    It is
                    npm 9.2.0
                    node 16.19.0
                    arch armv7l
                    in my case.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @wishmaster270
                      last edited by sdetweil

                      @wishmaster270 hm, I modified your module and it works fine… will check your branch

                      I just copy the postinstall script and change package.json

                      intel x86-64 ok

                      base) sam@sams:~/MagicMirror/modules/MMM-GPIO-Notifications$ git checkout development
                      branch 'development' set up to track 'origin/development'.
                      Switched to a new branch 'development'
                      (base) sam@sams:~/MagicMirror/modules/MMM-GPIO-Notifications$ ls
                      examples  LICENSE  MMM-GPIO-Notifications.js  node_helper.js  package.json  postinstall  README.md
                      (base) sam@sams:~/MagicMirror/modules/MMM-GPIO-Notifications$ nano package.json
                      (base) sam@sams:~/MagicMirror/modules/MMM-GPIO-Notifications$ npm install --omit=dev --no-audit --no-fund
                      
                      > MMM-GPIO-Notifications@0.0.6 postinstall
                      > ./postinstall
                      
                      /home/sam/MagicMirror/modules/MMM-GPIO-Notifications
                      ⠧ Building module: epoll, Completed: 0make: Entering directory '/home/sam/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                        CXX(target) Release/obj.target/epoll/src/epoll.o
                      ⠇ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
                        COPY Release/epoll.node
                      make: Leaving directory '/home/sam/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                      ✔ Rebuild Complete
                      
                      added 6 packages in 10s
                      

                      pi 64 aarch64 ok

                      (base) sam@sams:~/MagicMirror/modules/MMM-GPIO-Notifications$ ssh pi@192.168.2.44
                      pi@192.168.2.44's password: 
                      Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64
                      
                      The programs included with the Debian GNU/Linux system are free software;
                      the exact distribution terms for each program are described in the
                      individual files in /usr/share/doc/*/copyright.
                      
                      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                      permitted by applicable law.
                      Last login: Fri Jan  6 14:10:59 2023 from 192.168.2.106
                      pi@raspberrypi:~ $ pm2 stop all
                      [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                      [PM2] [MagicMirror](0) ✓
                      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                      │ 0  │ MagicMirror        │ fork     │ 0    │ stopped   │ 0%       │ 0b       │
                      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                      pi@raspberrypi:~ $ cd MagicMirror/modules
                      pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications.git
                      Cloning into 'MMM-GPIO-Notifications'...
                      remote: Enumerating objects: 159, done.
                      remote: Counting objects: 100% (42/42), done.
                      remote: Compressing objects: 100% (34/34), done.
                      remote: Total 159 (delta 17), reused 22 (delta 8), pack-reused 117
                      Receiving objects: 100% (159/159), 744.45 KiB | 3.48 MiB/s, done.
                      Resolving deltas: 100% (74/74), done.
                      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-GPIO-Notifications/
                      pi@raspberrypi:~/MagicMirror/modules/MMM-GPIO-Notifications $ git checkout development
                      Branch 'development' set up to track remote branch 'development' from 'origin'.
                      Switched to a new branch 'development'
                      pi@raspberrypi:~/MagicMirror/modules/MMM-GPIO-Notifications $ npm install --omit=dev --no-audit --no-fund
                      
                      > MMM-GPIO-Notifications@0.0.6 postinstall
                      > ./postinstall
                      
                      ⠋ Building module: epoll, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                        CXX(target) Release/obj.target/epoll/src/epoll.o
                      ⠹ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
                      ⠦ Building module: epoll, Completed: 0  COPY Release/epoll.node
                      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                      ✔ Rebuild Complete
                      
                      added 6 packages in 15s
                      pi@raspberrypi:~/MagicMirror/modules/MMM-GPIO-Notifications $ exit
                      

                      pi 32bit buster ok

                      pi@raspberrypi42:~ $ cd MagicMirror/modules/
                      pi@raspberrypi42:~/MagicMirror/modules $ git clone https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications.git
                      Cloning into 'MMM-GPIO-Notifications'...
                      remote: Enumerating objects: 159, done.
                      remote: Counting objects: 100% (42/42), done.
                      remote: Compressing objects: 100% (34/34), done.
                      remote: Total 159 (delta 17), reused 22 (delta 8), pack-reused 117
                      Receiving objects: 100% (159/159), 744.45 KiB | 73.00 KiB/s, done.
                      Resolving deltas: 100% (74/74), done.
                      pi@raspberrypi42:~/MagicMirror/modules $ cd MMM-GPIO-Notifications/
                      pi@raspberrypi42:~/MagicMirror/modules/MMM-GPIO-Notifications $ git checkout develoment
                      error: pathspec 'develoment' did not match any file(s) known to git
                      pi@raspberrypi42:~/MagicMirror/modules/MMM-GPIO-Notifications $ git checkout development
                      Branch 'development' set up to track remote branch 'development' from 'origin'.
                      Switched to a new branch 'development'
                      pi@raspberrypi42:~/MagicMirror/modules/MMM-GPIO-Notifications $ npm install --omit=dev --no-audit --no-fund
                      
                      > MMM-GPIO-Notifications@0.0.6 postinstall
                      > ./postinstall
                      
                      ⠙ Building module: epoll, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                        CXX(target) Release/obj.target/epoll/src/epoll.o
                      ⠙ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
                      ⠼ Building module: epoll, Completed: 0  COPY Release/epoll.node
                      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                      ✔ Rebuild Complete
                      
                      added 6 packages in 14s
                      pi@raspberrypi42:~/MagicMirror/modules/MMM-GPIO-Notifications $ lsb_release -a
                      No LSB modules are available.
                      Distributor ID:	Raspbian
                      Description:	Raspbian GNU/Linux 10 (buster)
                      Release:	10
                      Codename:	buster
                      

                      32 bit bullseye, ok

                      fribble@raspberrypi4:~ $ cd MagicMirror/modules/
                      fribble@raspberrypi4:~/MagicMirror/modules $ lsb_release -a
                      No LSB modules are available.
                      Distributor ID:	Raspbian
                      Description:	Raspbian GNU/Linux 11 (bullseye)
                      Release:	11
                      Codename:	bullseye
                      fribble@raspberrypi4:~/MagicMirror/modules $ git clone https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications.git
                      Cloning into 'MMM-GPIO-Notifications'...
                      remote: Enumerating objects: 159, done.
                      remote: Counting objects: 100% (42/42), done.
                      remote: Compressing objects: 100% (34/34), done.
                      remote: Total 159 (delta 17), reused 22 (delta 8), pack-reused 117
                      Receiving objects: 100% (159/159), 744.45 KiB | 3.26 MiB/s, done.
                      Resolving deltas: 100% (74/74), done.
                      fribble@raspberrypi4:~/MagicMirror/modules $ cd MMM-GPIO-Notifications/
                      fribble@raspberrypi4:~/MagicMirror/modules/MMM-GPIO-Notifications $ git checkout development
                      Branch 'development' set up to track remote branch 'development' from 'origin'.
                      Switched to a new branch 'development'
                      fribble@raspberrypi4:~/MagicMirror/modules/MMM-GPIO-Notifications $ npm install --omit=dev --no-audit --no-fund
                      
                      > MMM-GPIO-Notifications@0.0.6 postinstall
                      > ./postinstall
                      
                      ⠸ Building module: epoll, Completed: 0make: Entering directory '/home/fribble/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                        CXX(target) Release/obj.target/epoll/src/epoll.o
                      ⠴ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
                      ⠏ Building module: epoll, Completed: 0  COPY Release/epoll.node
                      make: Leaving directory '/home/fribble/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
                      ✔ Rebuild Complete
                      
                      added 6 packages in 21s
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @wishmaster270
                        last edited by

                        @wishmaster270 said in electron-rebuild problems with MagicMirror 2.22.0:

                        kApiSystemPointerSize == kApiInt64Size,

                        this looks like a compile header mismatch

                        make sure u delete the electron-rebuild if its in your module folder
                        AND the one in MagicMirror/node_modules in case there is a downlevel version,

                        OR change the postinstall to always install it. vs checking if present and running the installed version…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        wishmaster270W 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 2 / 6
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy