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.

    multiple error in magic mirror after update from 2.28.0 to 2.36.0

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    71 Posts 2 Posters 68 Views 2 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.
    • S Offline
      sdetweil @1a2a3a
      last edited by sdetweil

      @1a2a3a

      API is deprecated. Please use Array.isArray() instead.

      same as punycode
      up to the module author

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil im on rpi5, ssh from a windows. where do i remove the lines?

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

          @1a2a3a in some editor… you might see them in nano

          cd ~/MagicMirror/installers
          nano mm.sh
          

          use arrow keys to move around, delete to remove, ins to be able to insert

          when done

          ctrl-o
          to save
          ctrl-x to exit

          if you don’t want to save
          ctrl-x and reply n

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil i dont see the lines in mm.sh…

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

              @1a2a3a

              cd ~/MagicMirror/installers

              cat mm.sh

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil

                hsa@HSA:~/MagicMirror/installers $ cat mm.sh
                #!/bin/bash
                
                cd ~/MagicMirror
                DISPLAY=:0 npm run start:x11
                hsa@HSA:~/MagicMirror/installers $
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @1a2a3a
                  last edited by

                  @1a2a3a ok, thats not my mm.sh which you supposedly saved

                  but

                  nano mm.sh

                  remove the blank line 2
                  and go to the end of new line 2 and if the cursor is not after the last character, hit backspace,
                  then ctrl-o to save
                  and ctrl-x to exit nano

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @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 $
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @1a2a3a
                      last edited by

                      @1a2a3a are you sure this is the script listed in pm2 info output?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil

                        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

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

                          @1a2a3a said:

                          /home/hsa/MagicMirror/installers/mm.sh

                          weird… do this

                          cd ~/MagicMirror/installers
                          curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/refs/heads/master/mm.sh >mm.sh
                          

                          then do the

                          pm2 stop all
                          pm2 start MagicMirror
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil

                            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 $
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @1a2a3a
                              last edited by

                              @1a2a3a and MM is up or not?

                              pm2 status

                              has the cycle count changed?

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @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:~ $
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @1a2a3a
                                  last edited by sdetweil

                                  @1a2a3a

                                  pm2 stop all 
                                  cd ~/MagicMirror
                                  installers/mm.sh
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    @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 $
                                    
                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @1a2a3a
                                      last edited by

                                      @1a2a3a ok, it still thinks wayland is active.

                                      nano  installers/mm.sh
                                      

                                      change line

                                        if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; then 
                                      

                                      to

                                        if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 1 ]; then 
                                      

                                      ctrl-o,
                                      enter
                                      ctrl-x

                                      then

                                      installers/mm.sh
                                      

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

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

                                        @sdetweil ok it runs now. what do i do next?

                                        edit sorry obviously stupid. just pm2 start and we are GOLD :D

                                        thanks again!

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

                                          @1a2a3a yeh, weird tho

                                          can you show me output of

                                          lsb_release -a
                                          uname -a
                                          

                                          weird it thinks wayland, but won’t run that way

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

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

                                            @sdetweil

                                            hsa@HSA:~/MagicMirror $ lsb_release -a
                                            No LSB modules are available.
                                            Distributor ID: Debian
                                            Description:    Debian GNU/Linux 12 (bookworm)
                                            Release:        12
                                            Codename:       bookworm
                                            hsa@HSA:~/MagicMirror $ uname -a
                                            Linux HSA 6.12.75+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1~bookworm (2026-03-11) aarch64 GNU/Linux
                                            hsa@HSA:~/MagicMirror $
                                            
                                            S 1 2 Replies Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 4 / 4
                                            • 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