• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MagicMirror Update & Primordial Error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
5 Posts 2 Posters 406 Views 3 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.
  • C Offline
    CurlyQ12391
    last edited by CurlyQ12391 Oct 6, 2023, 4:41 PM Oct 6, 2023, 4:40 PM

    Hello,

    I know there have been a few errors with the latest update, but the fixes from those posts haven’t worked (yet) for me.

    Like others, I recently updated my MM and now it wont display. pm2 seems to show that it is running but nothing displays on the screen. I troubleshooted myself using other posts and sdetweil’s MagicMirror_scripts, but nothing seems to be working for me. I am 90% sure that my main problem is that my Node version wont update and stays at 16. I’ve tried updating it independently and also through sdetweil’s MagicMirror_scripts (Apply and then using Force) to no avail.

    This is what happens when running sdetweil’s MagicMirror_scripts (Using Force):

    @raspberrypi:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libc-ares2 libjs-highlight.js raspinfo
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      nodejs*
    0 upgraded, 0 newly installed, 1 to remove and 22 not upgraded.
    After this operation, 185 MB disk space will be freed.
    (Reading database ... 114275 files and directories currently installed.)
    Removing nodejs (20.8.0-1nodesource1) ...
    dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed
    Processing triggers for man-db (2.9.4-2) ...
    Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
    Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    ca-certificates is already the newest version (20210119).
    curl is already the newest version (7.74.0-1.3+deb11u7).
    gnupg is already the newest version (2.2.27-2+deb11u2).
    The following packages were automatically installed and are no longer required:
      libc-ares2 libjs-highlight.js raspinfo
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
    deb [arch=arm64  signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
    Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
    Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
    Get:3 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
    Get:4 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages [3,264 B]
    Fetched 15.4 kB in 1s (12.6 kB/s) 
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      raspinfo
    Use 'sudo apt autoremove' to remove it.
    The following additional packages will be installed:
      libnode72 nodejs-doc
    Suggested packages:
      npm
    The following NEW packages will be installed:
      libnode72 nodejs nodejs-doc
    0 upgraded, 3 newly installed, 0 to remove and 22 not upgraded.
    Need to get 0 B/9,956 kB of archives.
    After this operation, 43.3 MB of additional disk space will be used.
    Selecting previously unselected package libnode72:armhf.
    (Reading database ... 108453 files and directories currently installed.)
    Preparing to unpack .../libnode72_12.22.12~dfsg-1~deb11u4_armhf.deb ...
    Unpacking libnode72:armhf (12.22.12~dfsg-1~deb11u4) ...
    Selecting previously unselected package nodejs.
    Preparing to unpack .../nodejs_12.22.12~dfsg-1~deb11u4_armhf.deb ...
    Unpacking nodejs (12.22.12~dfsg-1~deb11u4) ...
    Selecting previously unselected package nodejs-doc.
    Preparing to unpack .../nodejs-doc_12.22.12~dfsg-1~deb11u4_all.deb ...
    Unpacking nodejs-doc (12.22.12~dfsg-1~deb11u4) ...
    Setting up libnode72:armhf (12.22.12~dfsg-1~deb11u4) ...
    Setting up nodejs-doc (12.22.12~dfsg-1~deb11u4) ...
    Setting up nodejs (12.22.12~dfsg-1~deb11u4) ...
    Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
    Processing triggers for man-db (2.9.4-2) ...
    doing test run = false
    update log will be in /home/xxx/MagicMirror/installers/upgrade.log
    Check current Node installation ...
    Node currently installed. Checking version number.
    Minimum Node version: v20.8.0
    Installed Node version: v16.17.1
    Node should be upgraded.
    Installing Node.js ...
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libc-ares2 libjs-highlight.js raspinfo
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      libnode72 nodejs-doc
    The following packages will be upgraded:
      nodejs
    1 upgraded, 0 newly installed, 2 to remove and 22 not upgraded.
    Need to get 0 B/27.0 MB of archives.
    After this operation, 140 MB of additional disk space will be used.
    apt-listchanges: Reading changelogs...
    (Reading database ... 108704 files and directories currently installed.)
    Removing nodejs-doc (12.22.12~dfsg-1~deb11u4) ...
    dpkg: libnode72:armhf: dependency problems, but removing anyway as you requested:
     nodejs depends on libnode72 (= 12.22.12~dfsg-1~deb11u4).
    
    Removing libnode72:armhf (12.22.12~dfsg-1~deb11u4) ...
    (Reading database ... 108516 files and directories currently installed.)
    Preparing to unpack .../nodejs_20.5.1-deb-1nodesource1_armhf.deb ...
    Unpacking nodejs (20.5.1-deb-1nodesource1) over (12.22.12~dfsg-1~deb11u4) ...
    Setting up nodejs (20.5.1-deb-1nodesource1) ...
    Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
    Processing triggers for man-db (2.9.4-2) ...
    node version is
    Node.js installation Done! version=v16.17.1
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    Check current NPM installation ...
    NPM currently installed. Checking version number.
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    Minimum npm version: V10.1.0
    Installed npm version: V
    npm should be upgraded.
    Installing npm ...
    E: Unable to correct problems, you have held broken packages.
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    npm installation Done! version=V
    
    force: line 353: [: -ge: unary operator expected
    saving custom.css
    upgrading from version 2.25.0 to 2.25.0
    fetching latest revisions
    updating MagicMirror runtime, please wait
    force: line 593: [: -ge: unary operator expected
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    Checking for modules with removed libraries
    processing dependency changes for active modules with package.json files
    
    processing for module MMM-TouchButton please wait
    ----------------------------------
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    processing complete for module MMM-TouchButton
    
    processing for module MMM-ip please wait
    ----------------------------------
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    processing complete for module MMM-ip
    
    processing for module MMM-CalendarExt3 please wait
    ----------------------------------
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    processing complete for module MMM-CalendarExt3
    
    processing for module MMM-OpenWeatherForecast please wait
    ----------------------------------
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    processing complete for module MMM-OpenWeatherForecast
    
    processing for module MMM-Cursor please wait
    ----------------------------------
    evalmachine.<anonymous>:47
    } = primordials;
        ^
    
    ReferenceError: primordials is not defined
        at evalmachine.<anonymous>:47:5
        at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
        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/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
    processing complete for module MMM-Cursor
    
    restoring custom.css
    

    Please let me know if you have any suggestions on where to start/go from here.

    *I am having trouble remoting back in, but I’ll post my logs once able.

    S 2 Replies Last reply Oct 6, 2023, 5:50 PM Reply Quote 0
    • S Offline
      sdetweil @CurlyQ12391
      last edited by Oct 6, 2023, 5:50 PM

      @CurlyQ12391 Yes there is some system error in the installation of node that nobody knows how to fix yet if it’s fixable All of the advice I’ve received doesn’t help

      The primordials problem is one NPM library that’s hacks the file system API to do something extra special but fails on the current version there’s a supposedly hacky way to fix that but I haven’t had a chance to try it on any system want to be the guinea pig?

      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 @CurlyQ12391
        last edited by sdetweil Oct 6, 2023, 6:03 PM Oct 6, 2023, 6:01 PM

        @CurlyQ12391 so, if you want to try this

        cd /usr/local/lib/node_modules/npm
        npm install graceful-fs@latest
        cd ~
        node -v
        

        other than that its rebuild the sd card

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Oct 8, 2023, 8:03 PM Reply Quote 1
        • C Offline
          CurlyQ12391 @sdetweil
          last edited by Oct 8, 2023, 8:03 PM

          @sdetweil apologies for my delays response.

          I am absolutely willing to be a guinea pig, but I dont think that it ended up doing anything (unless I did it wrong?)

          @raspberrypi:~ $ cd /usr/local/lib/node_modules/npm
          @raspberrypi:/usr/local/lib/node_modules/npm $ npm install graceful-fs@latest
          evalmachine.<anonymous>:47
          } = primordials;
              ^
          
          ReferenceError: primordials is not defined
              at evalmachine.<anonymous>:47:5
              at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
              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/graceful-fs/graceful-fs.js:3:27)
              at Module._compile (node:internal/modules/cjs/loader:1126:14)
          @raspberrypi:/usr/local/lib/node_modules/npm $ cd
          @raspberrypi:~ $ node -v
          v16.17.1
          @raspberrypi:~ $ 
          
          

          Is there a way to increase my node version outside of your installer script? Or would that not help for this particular issue?

          if the best fix is to rebuild SD card and re-install MM I can do that, but I am willing to keep tinkering.

          S 1 Reply Last reply Oct 8, 2023, 8:15 PM Reply Quote 0
          • S Offline
            sdetweil @CurlyQ12391
            last edited by Oct 8, 2023, 8:15 PM

            @CurlyQ12391 I think at the moment it’s better to rebuild

            backup your mm config
            see my backup script

            https://github.com/sdetweil/MagicMirror-backup-restore

            it will save the config.js, css, and a list of all the module urls

            and can use GitHub to store and version that
            all run from GitHub no required download

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              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