Read the statement by Michael Teeuw here.
Upgrade errors?
-
@sdetweil ā Apparently, script upgrade broke node on my system - can you help me figure how how to fix?
Thanks!
On run:
node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
upgrade output:
doing test run = false update log will be in /home/bkey1970/MagicMirror/installers/upgrade.log Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v20.8.0 Installed Node version: v16.20.2 Node should be upgraded. Installing Node.js ... gpg: WARNING: unsafe ownership on homedir '/home/bkey1970/.gnupg' Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: nodejs 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 27.0 MB of archives. After this operation, 63.7 MB of additional disk space will be used. Get:1 https://deb.nodesource.com/node_20.x buster/main armhf nodejs armhf 20.5.1-deb-1nodesource1 [27.0 MB] Fetched 27.0 MB in 7s (4,153 kB/s) apt-listchanges: Reading changelogs... (Reading database ... 103684 files and directories currently installed.) Preparing to unpack .../nodejs_20.5.1-deb-1nodesource1_armhf.deb ... Unpacking nodejs (20.5.1-deb-1nodesource1) over (16.20.2-deb-1nodesource1) ... Setting up nodejs (20.5.1-deb-1nodesource1) ... Processing triggers for man-db (2.8.5-2) ... node version is node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Node.js installation Done! version= node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Check current NPM installation ... NPM currently installed. Checking version number. node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) 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. node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) npm installation Done! version=V apply: line 318: [: -ge: unary operator expected saving custom.css upgrading from version 2.24.0 to 2.25.0 fetching latest revisions updating MagicMirror runtime, please wait apply: line 558: [: -ge: unary operator expected node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Checking for modules with removed libraries node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) no modules found needing npm refresh restoring custom.css
-
@BKeyport said in Upgrade errors?:
@sdetweil turns out there was an update to MMM-Wallpaper that missed due to all the bugs in upgrading. š
ā¦just in case this might be interesting for anyone: I had the same problems on my Raspberry Pi 4 Model B (Rev 1.2) with buster (armv71).
- node 20 gave me the `GLIBCXX_3.4.26ā not found (required by node) error
- I had the āfailed to load swrast driverā
I checked my modules, and the solution for my MM was (thanks to @sdetweil and @BKeyport here):
- installing node 18 (I did it manually like mentioned here)
- removing āDWD Warn Weatherā (which caused the swrast error) from config.js
Now MagicMirror v2.25.0 is up and running! :beaming_face_with_smiling_eyes:
Thank you for all your effort and your tireless support!
May the code be with you.
-kai -
Nevermind. It appears required dependencies arenāt being updated to previous OSes. Time to switch away from Raspbian.
-
@BKeyport thanks, Iāll have to check this in the morning, and see how to do the c++ runtime upgrade too
-
@sdetweil It appears node and/or NPM is the problem - some of their newer dependencies arenāt compatible with older Raspbian installs, which will make it impossible for me to run what I want on the mirror.
Losing OMXPlayer murders my setup - so Iām working on something else.
-
@BKeyport yeh, looks like buster/legacy is too down level for node 20. letās try 18
sudo npm i n sudo n i 18
node -v should show node 18
then
cd ~/MagicMirror rm -rf node_modules npm run install-mm
please advise
-
@sdetweil said in Upgrade errors?:
cd ~/MagicMirror
rm -rf node_modules
npm run install-mmThe update seem to have crashed my Mirror, I applied these fixes but nothing will run here is my start up logs, what am I missing? Any help would be much appreciated! Thanks.
macserver@EDITHs-MacBook-Pro MagicMirror % npm run server > magicmirror@2.25.0 server > node ./serveronly [02.10.2023 07:51.49.432] [LOG] Starting MagicMirror: v2.25.0 [02.10.2023 07:51.49.436] [LOG] Loading config ... [02.10.2023 07:51.49.438] [DEBUG] config template file not exists, no envsubst [02.10.2023 07:51.49.442] [LOG] Loading module helpers ... [02.10.2023 07:51.49.443] [LOG] No helper found for module: alert. [02.10.2023 07:51.49.449] [LOG] Initializing new module helper ... [02.10.2023 07:51.49.450] [LOG] Module helper loaded: updatenotification [02.10.2023 07:51.49.451] [LOG] No helper found for module: clock. [02.10.2023 07:51.49.676] [LOG] Initializing new module helper ... [02.10.2023 07:51.49.676] [LOG] Module helper loaded: MMM-quote-of-the-day [02.10.2023 07:51.49.765] [ERROR] Whoops! There was an uncaught exception... [02.10.2023 07:51.49.770] [ERROR] Error: Cannot find module 'fetch' Require stack: - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js - /Users/macserver/MagicMirror/js/app.js - /Users/macserver/MagicMirror/serveronly/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._resolveFilename (/Users/macserver/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js:11:15) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js:8:25) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js', '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js', '/Users/macserver/MagicMirror/js/app.js', '/Users/macserver/MagicMirror/serveronly/index.js' ] } [02.10.2023 07:51.49.771] [ERROR] MagicMirrorĀ² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [02.10.2023 07:51.49.771] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues macserver@EDITHs-MacBook-Pro MagicMirror %
-
@croc_dad72 said in Upgrade errors?:
Error: Cannot find module āfetchā
see https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later
-
@BKeyport also try the new temp node20 install script, listed at the top of my scripts page
-
looks like you are on deprecated node version, run
node -v
which must be >=v18
-
@karsten13 Upgrade just broke my dev machine. :-) Guess I am not upgrading my mirror. Had to wipe my whole WSL Ubuntu install. Have to start from scratch with my dev machine. Not a great upgrade. My prod mirror is still a PI 3B running buster. :confounded_face: