Read the statement by Michael Teeuw here.
multiple error in magic mirror after update from 2.28.0 to 2.36.0
-
0|MagicMir | /home/hsa/MagicMirror/installers/mm.sh: line 2: $‘\r’: command not found
0|MagicMir | /home/hsa/MagicMirror/installers/mm.sh: line 3: cd: $‘/home/hsa/MagicMirror\r’: No such file or directoryare you on windows??
it added a carriage return to lines 2 and 3… please remove… the script failed, and pm2s JOB is to keep it running
pm2 status will show you the restart count
| id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 8 │ MagicMirror │ default │ 2.32.0… │ fork │ N/A │ 0 │ 245… │ stopped │ 0% │ 0b │ sam │ disabled │the circle arrow next to uptime, is number of restarts
-
API is deprecated. Please use
Array.isArray()instead.same as punycode
up to the module author -
@sdetweil im on rpi5, ssh from a windows. where do i remove the lines?
-
@1a2a3a in some editor… you might see them in nano
cd ~/MagicMirror/installers nano mm.shuse arrow keys to move around, delete to remove, ins to be able to insert
when done
ctrl-o
to save
ctrl-x to exitif you don’t want to save
ctrl-x and reply n -
-
-
hsa@HSA:~/MagicMirror/installers $ cat mm.sh #!/bin/bash cd ~/MagicMirror DISPLAY=:0 npm run start:x11 hsa@HSA:~/MagicMirror/installers $ -
-
@sdetweil edited to your mm.sh but same result
hsa@HSA:~/MagicMirror/installers $ cat mm.sh #!/bin/bash cd ~/MagicMirror if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; then # if WAYLAND_DISPLAYis set, use it, else set to -0 export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:=wayland-0} npm run start:wayland else DISPLAY=:0 npm run start:x11 fi hsa@HSA:~/MagicMirror/installers $ -
@1a2a3a are you sure this is the script listed in pm2 info output?
-
status │ errored │
│ name │ MagicMirror │
│ namespace │ default │
│ version │ 2.36.0 │
│ restarts │ 45 │
│ uptime │ 0 │
│ script path │ /home/hsa/MagicMirror/installers/mm.sh │
│ script args │ N/A │
│ error log path │ /home/hsa/.pm2/logs/MagicMirror-error.log │
│ out log path │ /home/hsa/.pm2/logs/MagicMirror-out.log │
│ pid path │ /home/hsa/.pm2/pids/MagicMirror-0.pid │
│ interpreter │ bash │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /home/hsa/MagicMirror │
│ exec mode │ fork_mode │
│ node.js version │ N/A │
│ node env │ N/A │
│ watch & reload │ ✘ │
│ unstable restarts │ 0 │
│ created at │ N/A -
-
done, but mirror no response or whatsoever
hsa@HSA:~ $ cd ~/MagicMirror/installers hsa@HSA:~/MagicMirror/installers $ curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/refs/heads/master/mm.sh >mm.sh hsa@HSA:~/MagicMirror/installers $ pm2 stop all (node:10682) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead. (Use `node --trace-deprecation ...` to show where the warning was created) [PM2] Applying action stopProcessId on app [all](ids: [ 0 ]) [PM2] [all](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 45 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ hsa@HSA:~/MagicMirror/installers $ pm2 start MagicMirror (node:10691) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead. (Use `node --trace-deprecation ...` to show where the warning was created) [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ]) [PM2] [MagicMirror](0) ✓ [PM2] Process successfully started ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 45 │ online │ 0% │ 2.7mb │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ hsa@HSA:~/MagicMirror/installers $ -
-
@sdetweil mm is not up
hsa@HSA:~ $ pm2 status ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.36.0 │ fork │ 12206 │ 15s │ 49 │ online │ 0% │ 2.6mb │ hsa │ disabled │ └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ hsa@HSA:~ $ -
pm2 stop all cd ~/MagicMirror installers/mm.sh -
@sdetweil did not manage to open MM
> magicmirror@2.36.0 start:wayland > WAYLAND_DISPLAY="${WAYLAND_DISPLAY:=wayland-1}" ./node_modules/.bin/electron js/electron.js --ozone-platform=wayland [2026-05-02 02:39:50.838] [LOG] [app] Starting MagicMirror: v2.36.0 [2026-05-02 02:39:50.845] [LOG] [utils] Loading config ... [2026-05-02 02:39:51.547] [INFO] [systeminformation] #### System Information #### - SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 5 Model B Rev 1.0; virtual: false; MM: v2.36.0 - OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.75+rpt-rpi-2712 - VERSIONS: electron: 41.3.0; used node: 22.21.1; installed node: 22.21.1; npm: 10.9.4; pm2: 6.0.14 - ENV: XDG_SESSION_TYPE: tty; MM_CONFIG_FILE: undefined WAYLAND_DISPLAY: wayland-0; DISPLAY: undefined; ELECTRON_ENABLE_GPU: undefined - RAM: total: 8059.06 MB; free: 6932.14 MB; used: 1126.92 MB - OTHERS: uptime: 65 minutes; timeZone: Asia/Singapore [2026-05-02 02:40:04.644] [INFO] [utils] Checking config file /home/hsa/MagicMirror/config/config.js ... [2026-05-02 02:40:04.720] [INFO] [utils] Your configuration file doesn't contain syntax errors :) [2026-05-02 02:40:04.721] [INFO] [utils] Checking modules structure configuration ... [2026-05-02 02:40:04.787] [INFO] [utils] Your modules structure configuration doesn't contain errors :) [2026-05-02 02:40:04.788] [LOG] [app] Loading module helpers ... [2026-05-02 02:40:04.788] [LOG] [app] No helper found for module: alert. [2026-05-02 02:40:04.790] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:04.791] [LOG] [node_helper] Module helper loaded: updatenotification [2026-05-02 02:40:04.791] [LOG] [app] No helper found for module: clock. [2026-05-02 02:40:04.891] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:04.891] [LOG] [node_helper] Module helper loaded: MMM-Jast [2026-05-02 02:40:05.554] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.555] [LOG] [node_helper] Module helper loaded: MMM-GoogleDocs-Notes [2026-05-02 02:40:05.580] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.580] [LOG] [node_helper] Module helper loaded: newsfeed [2026-05-02 02:40:05.586] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.586] [LOG] [app] Check MagicMirror² version for node helper 'MMM-NewsAPI' - Minimum version: 2.21.0 - Current version: 2.36.0 [2026-05-02 02:40:05.587] [LOG] [app] Version is ok! [2026-05-02 02:40:05.587] [LOG] [node_helper] Module helper loaded: MMM-NewsAPI [2026-05-02 02:40:05.588] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.588] [LOG] [node_helper] Module helper loaded: MMM-MyScoreboard [2026-05-02 02:40:05.595] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.595] [LOG] [app] Check MagicMirror² version for node helper 'MMM-SoccerLiveScore' - Minimum version: 2.1.0 - Current version: 2.36.0 [2026-05-02 02:40:05.595] [LOG] [app] Version is ok! [2026-05-02 02:40:05.595] [LOG] [node_helper] Module helper loaded: MMM-SoccerLiveScore [2026-05-02 02:40:05.688] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.688] [LOG] [node_helper] Module helper loaded: MMM-OneDrive [2026-05-02 02:40:05.689] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.689] [LOG] [node_helper] Module helper loaded: MMM-CalendarExt3Agenda [2026-05-02 02:40:05.746] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.746] [LOG] [node_helper] Module helper loaded: calendar [2026-05-02 02:40:05.747] [LOG] [node_helper] Initializing new module helper ... [2026-05-02 02:40:05.747] [LOG] [node_helper] Module helper loaded: MMM-CalendarExt3 [2026-05-02 02:40:05.747] [LOG] [app] All module helpers loaded. [2026-05-02 02:40:05.751] [LOG] [server] Starting server on port 8080 ... [2026-05-02 02:40:05.760] [ERROR] [unknown] (node:13239) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `electron --trace-deprecation ...` to show where the warning was created) [13239:0502/024005.762036:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2) [13239:0502/024005.762106:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform [13239:0502/024005.762122:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting. /home/hsa/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV hsa@HSA:~/MagicMirror $ -
@1a2a3a ok, it still thinks wayland is active.
nano installers/mm.shchange line
if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; thento
if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 1 ]; thenctrl-o,
enter
ctrl-xthen
installers/mm.sh -
@sdetweil ok it runs now. what do i do next?
edit sorry obviously stupid. just pm2 start and we are GOLD :D
thanks again!
-
@1a2a3a yeh, weird tho
can you show me output of
lsb_release -a uname -aweird it thinks wayland, but won’t run that way
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login