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 67 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.
    • 1 Offline
      1a2a3a @sdetweil
      last edited by

      @sdetweil same thing

      NODE_OPTIONS=--trace-deprecation npm run start:x11
      
      [2026-05-02 00:31:24.574] [LOG]   [node_helper] Module helper loaded: MMM-CalendarExt3
      [2026-05-02 00:31:24.574] [LOG]   [app] All module helpers loaded.
      [2026-05-02 00:31:24.592] [LOG]   [server] Starting server on port 8080 ...
      [2026-05-02 00:31:24.602] [ERROR] [unknown] (node:1985687) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
          at node:punycode:7:10
          at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
          at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
          at loadBuiltinModule (node:internal/modules/helpers:126:7)
          at loadBuiltinWithHooks (node:internal/modules/cjs/loader:1229:15)
          at Module._load (node:internal/modules/cjs/loader:1320:48)
          at c._load (node:electron/js2c/node_init:2:18060)
          at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
          at Module.require (node:internal/modules/cjs/loader:1583:12)
          at require (node:internal/modules/helpers:153:16)
      [2026-05-02 00:31:24.702] [LOG]   [app] Server started ...
      [2026-05-02 00:31:24.703] [LOG]   [node_helper] Connectin```
      code_text
      
      S 1 Reply Last reply Reply Quote 0
      • 1 Offline
        1a2a3a @sdetweil
        last edited by

        @sdetweil i have change my mm.sh to

        #!/bin/bash
        # This file is still here to keep PM2 working on older installations.
        cd ~/MagicMirror
        DISPLAY=:0 npm run start:x11
        

        but when i do pm2 start MagicMirror, it doesnt start still.

        1 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @1a2a3a
          last edited by sdetweil

          @1a2a3a SO much fun

          do this and give me the output

          grep "module:" ~/MagicMirror/config/config.js | sort | uniq
          

          and I’ll look thru them

          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 here you go

            [hsa@HSA:~ $ grep "module:" ~/MagicMirror/config/config.js
                                    module: "alert",
                                    module: "updatenotification",
                                    module: "clock",
                    module: "MMM-Jast",
              module: 'MMM-GoogleDocs-Notes',
                                    module: "newsfeed",
                            module: "MMM-NewsAPI",
              module: "MMM-MyScoreboard",
              module: "MMM-SoccerLiveScore",
            //  module: "MMM-GooglePhotos",
            // module: "MMM-ImagesPhotos",
            //   module: "MMM-Wallpaper",
            //    module: 'MMM-BackgroundSlideshow',
              module: "MMM-OneDrive",
              module: "MMM-CalendarExt3Agenda",
                                    module: "calendar",
                                     module: "MMM-CalendarExt3",
                                    module: "calendar",](link url)
            
            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @1a2a3a
              last edited by sdetweil

              @1a2a3a ok, I didn’t find it the easy way

              lets try the easier way

              find ~/MagicMirror/modules -type d | grep punycode | sort
              

              each module listed has it as a dependency either directly or indirectly
              on my system (with a lot of modules installed, but most not used)

              /home/sam/MagicMirror/modules/Hello-Lucy/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-BMI/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-CalvinAndHobbes/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-FinParcel/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-GoogleCalendar/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-HomeAssistantDisplay/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-homeassistant-sensors/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-json/node_modules/npm/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-json/node_modules/npm/node_modules/uri-js/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-json/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Lottery/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-MARS/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-NOAA3/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-OnSpotify/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Reddit/node_modules/psl/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Reddit/node_modules/request/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Reddit/node_modules/uri-js/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-SmartWebDisplay/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Strava/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Surf/node_modules/punycode
              /home/sam/MagicMirror/modules/MMM-Todoist/node_modules/punycode
              

              because its not listed in one of the modules directly, its a dependency of a dependency

              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 @1a2a3a
                last edited by

                @sdetweil can we fix the pm2 please?

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @1a2a3a
                  last edited by

                  @1a2a3a use my 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 
                  

                  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:~ $ find ~/MagicMirror/modules -type d | grep punycode | sort
                    /home/hsa/MagicMirror/modules/MMM-Jast/node_modules/punycode
                    
                    S 1 Reply Last reply Reply Quote 0
                    • 1 Offline
                      1a2a3a @sdetweil
                      last edited by

                      @sdetweil it doesnt work still unfortunately. it goes into a black screen then back to wallpaper and keep looping in this manner…

                      1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @1a2a3a
                        last edited by

                        @1a2a3a yep, its a dependency 3 layers down…

                        “node_modules/yahoo-finance2”

                        only thing is to open an issue on the module github page and see if the author can/will fix it

                        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 ok got it. thanks. since the punycode is not material lets ignore it for now and focus on the pm2 haha.

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @1a2a3a
                            last edited by

                            @1a2a3a use my 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 i did. i copied your code as suggest and paste it into my mm.sh and it the same issue.

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @1a2a3a
                                last edited by

                                @1a2a3a which issue?

                                the punycode will still be reported…

                                it should start mm with the appropriate start command

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil the pm2 issue.

                                  im not able to pm2 start magicmirror

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

                                    @sdetweil i use your mm.sh code.
                                    then i ran pm2 start MagicMirror

                                    then i get this

                                    (node:1995398) [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
                                    

                                    and the mirror just go into a blackscreen then loop back to wallpaper then loop back again to blackscreen and it keeps going back and forth

                                    1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @1a2a3a
                                      last edited by

                                      @1a2a3a ok, lets test

                                      pm2 stop all

                                      bash -x mm.sh

                                      where ever mm.sh is, mine is usually in ~/MagicMirror/installers

                                      pm2 status
                                      pm2 info xx

                                      where xx is the line number of the MagicMirror instance you are starting

                                      to see which mm.sh it is using , for example

                                      │ script path       │ /home/sam/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 mm.sh is the same location as yours. this is the bash result

                                        hsa@HSA:~/MagicMirror/installers $ bash -x mm.sh

                                        + cd /home/hsa/MagicMirror
                                        ++ ps -ef
                                        ++ grep -v grep
                                        ++ wc -l
                                        ++ grep -i -e xway -e labwc
                                        + '[' 1 -ne 0 ']'
                                        + export WAYLAND_DISPLAY=wayland-1
                                        + WAYLAND_DISPLAY=wayland-1
                                        + npm run start:wayland
                                        
                                        > 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 01:18:20.742] [LOG]   [app] Starting MagicMirror: v2.36.0
                                        [2026-05-02 01:18:20.750] [LOG]   [utils] Loading config ...
                                        [2026-05-02 01:18:20.754] [INFO]  [utils] Checking config file /home/hsa/MagicMirror/config/config.js ...
                                        [2026-05-02 01:18:20.822] [INFO]  [utils] Your configuration file doesn't contain syntax errors :)
                                        [2026-05-02 01:18:20.822] [INFO]  [utils] Checking modules structure configuration ...
                                        [2026-05-02 01:18:20.880] [INFO]  [utils] Your modules structure configuration doesn't contain errors :)
                                        [2026-05-02 01:18:20.883] [LOG]   [app] Loading module helpers ...
                                        [2026-05-02 01:18:20.883] [LOG]   [app] No helper found for module: alert.
                                        [2026-05-02 01:18:20.887] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:20.887] [LOG]   [node_helper] Module helper loaded: updatenotification
                                        [2026-05-02 01:18:20.888] [LOG]   [app] No helper found for module: clock.
                                        [2026-05-02 01:18:21.199] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:21.206] [LOG]   [node_helper] Module helper loaded: MMM-Jast
                                        [2026-05-02 01:18:21.682] [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.47+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-1; DISPLAY: undefined; ELECTRON_ENABLE_GPU: undefined
                                        - RAM:      total: 8059.14 MB; free: 6835.58 MB; used: 1223.56 MB
                                        - OTHERS:   uptime: 201889 minutes; timeZone: Asia/Singapore
                                        [2026-05-02 01:18:22.054] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.054] [LOG]   [node_helper] Module helper loaded: MMM-GoogleDocs-Notes
                                        [2026-05-02 01:18:22.080] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.081] [LOG]   [node_helper] Module helper loaded: newsfeed
                                        [2026-05-02 01:18:22.087] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.087] [LOG]   [app] Check MagicMirror² version for node helper 'MMM-NewsAPI' - Minimum version: 2.21.0 - Current version: 2.36.0
                                        [2026-05-02 01:18:22.087] [LOG]   [app] Version is ok!
                                        [2026-05-02 01:18:22.088] [LOG]   [node_helper] Module helper loaded: MMM-NewsAPI
                                        [2026-05-02 01:18:22.089] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.089] [LOG]   [node_helper] Module helper loaded: MMM-MyScoreboard
                                        [2026-05-02 01:18:22.096] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.097] [LOG]   [app] Check MagicMirror² version for node helper 'MMM-SoccerLiveScore' - Minimum version: 2.1.0 - Current version: 2.36.0
                                        [2026-05-02 01:18:22.097] [LOG]   [app] Version is ok!
                                        [2026-05-02 01:18:22.097] [LOG]   [node_helper] Module helper loaded: MMM-SoccerLiveScore
                                        [2026-05-02 01:18:22.192] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.193] [LOG]   [node_helper] Module helper loaded: MMM-OneDrive
                                        [2026-05-02 01:18:22.193] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.194] [LOG]   [node_helper] Module helper loaded: MMM-CalendarExt3Agenda
                                        [2026-05-02 01:18:22.265] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.265] [LOG]   [node_helper] Module helper loaded: calendar
                                        [2026-05-02 01:18:22.266] [LOG]   [node_helper] Initializing new module helper ...
                                        [2026-05-02 01:18:22.266] [LOG]   [node_helper] Module helper loaded: MMM-CalendarExt3
                                        [2026-05-02 01:18:22.266] [LOG]   [app] All module helpers loaded.
                                        [2026-05-02 01:18:22.270] [LOG]   [server] Starting server on port 8080 ...
                                        [2026-05-02 01:18:22.280] [ERROR] [unknown] (node:1996838) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
                                        (Use `electron --trace-deprecation ...` to show where the warning was created)
                                        [2026-05-02 01:18:22.394] [LOG]   [app] Server started ...
                                        [2026-05-02 01:18:22.395] [LOG]   [node_helper] Connecting socket for: updatenotification
                                        [2026-05-02 01:18:22.396] [LOG]   [node_helper] Starting module helper: updatenotification
                                        [2026-05-02 01:18:22.397] [LOG]   [node_helper] Connecting socket for: MMM-Jast
                                        [2026-05-02 01:18:22.397] [LOG]   [MMM-Jast] MMM-Jast helper method started...
                                        [2026-05-02 01:18:22.397] [LOG]   [node_helper] Connecting socket for: MMM-GoogleDocs-Notes
                                        [2026-05-02 01:18:22.398] [LOG]   [node_helper] Connecting socket for: newsfeed
                                        [2026-05-02 01:18:22.398] [LOG]   [newsfeed] Starting node helper for: newsfeed
                                        [2026-05-02 01:18:22.399] [LOG]   [node_helper] Connecting socket for: MMM-NewsAPI
                                        [2026-05-02 01:18:22.399] [LOG]   [MMM-NewsAPI] Starting node_helper for module: MMM-NewsAPI
                                        [2026-05-02 01:18:22.399] [LOG]   [node_helper] Connecting socket for: MMM-MyScoreboard
                                        [2026-05-02 01:18:22.399] [LOG]   [MMM-MyScoreboard] Starting node_helper for module [MMM-MyScoreboard]
                                        [2026-05-02 01:18:22.491] [LOG]   [node_helper] Connecting socket for: MMM-SoccerLiveScore
                                        [2026-05-02 01:18:22.492] [LOG]   [MMM-SoccerLiveScore] Starting node helper for: MMM-SoccerLiveScore
                                        [2026-05-02 01:18:22.492] [LOG]   [node_helper] Connecting socket for: MMM-OneDrive
                                        [2026-05-02 01:18:22.493] [INFO]  [MMM-OneDrive] [MMM-OneDrive] [node_helper] Starting module helper
                                        [2026-05-02 01:18:22.494] [INFO]  [lib] [DiskCaching] Initialized in directory: /home/hsa/MagicMirror/modules/MMM-OneDrive/cache/photos
                                        [2026-05-02 01:18:22.495] [INFO]  [MMM-OneDrive] [MMM-OneDrive] [node_helper] Started
                                        [2026-05-02 01:18:22.495] [LOG]   [node_helper] Connecting socket for: MMM-CalendarExt3Agenda
                                        [2026-05-02 01:18:22.496] [LOG]   [node_helper] Connecting socket for: calendar
                                        [2026-05-02 01:18:22.497] [LOG]   [calendar] Starting node helper for: calendar
                                        [2026-05-02 01:18:22.497] [LOG]   [node_helper] Connecting socket for: MMM-CalendarExt3
                                        [2026-05-02 01:18:22.498] [LOG]   [app] Sockets connected & modules started ...
                                        [2026-05-02 01:18:22.508] [LOG]   [electron] Launching application.
                                        /home/hsa/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTRAP
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil
                                          last edited by

                                          which means it THINKS you are running wayland…

                                          crtl-c in that window just to make sure its stopped

                                          if you do

                                          npm run start:x11

                                          does MM come up?

                                          if so, change the

                                          npm run start:wayland
                                          to
                                          npm run start:x11

                                          and then 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 i have change mm.sh to

                                            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:x11
                                            else
                                               DISPLAY=:0 npm run start:x11
                                            fi
                                            

                                            pm2 start Magicmirror does not start still

                                            S 1 Reply 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
                                            • 2 / 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