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.

    Auto start stops working

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 283 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.
    • P Offline
      Peter
      last edited by

      My MM runned fine.
      I wanted to remove a module (movielistings) and add another module (everynews) but then auto start does not work anymore.
      Replacing the config file with the old one (with movielistings) auto start works well.
      What to do?
      Peter

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

        @Peter said in Auto start stops working:

        doing test run = true, NO updates will be applied!

        yes… upgrade is a 2 part thing

        test
        do

        you did test which doesn’t fix anything
        using the second link will DO

        but as you already did it manually, apply will bail out

        so change the word apply at the end of the second copy/paste to

        force

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @Peter we need to see the output of npm start with the updated config.js

          so do this

          pm2 stop.all
          cd ~/MagicMirror 
          npm start
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil this is what I get:

            magicmirror@2.26.0 start
            DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

            [20.04.2024 15:23.46.108] [LOG] Starting MagicMirror: v2.26.0
            [20.04.2024 15:23.46.141] [LOG] Loading config …
            [20.04.2024 15:23.46.154] [DEBUG] config template file not exists, no envsubst
            [20.04.2024 15:23.46.173] [LOG] Loading module helpers …
            [20.04.2024 15:23.46.180] [LOG] No helper found for module: alert.
            [20.04.2024 15:23.46.309] [LOG] Initializing new module helper …
            [20.04.2024 15:23.46.312] [LOG] Module helper loaded: MMM-Pir
            [20.04.2024 15:23.46.315] [LOG] No helper found for module: clock.
            [20.04.2024 15:23.46.319] [LOG] No helper found for module: calendar_monthly.
            [20.04.2024 15:23.46.848] [LOG] Initializing new module helper …
            [20.04.2024 15:23.46.851] [LOG] Module helper loaded: calendar
            [20.04.2024 15:23.46.854] [LOG] No helper found for module: weather.
            [20.04.2024 15:23.46.856] [LOG] No helper found for module: MMM-Buienradar.
            [20.04.2024 15:23.46.874] [ERROR] (node:2607) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
            Require stack:

            • /home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js
            • /home/mm/MagicMirror/js/app.js
            • /home/mm/MagicMirror/js/electron.js
            • /home/mm/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
            • at node:internal/modules/cjs/loader:1084:15
              at Function. (node:electron/js2c/browser_init:2:116118)
              at Module._resolveFilename (/home/mm/MagicMirror/node_modules/module-alias/index.js:49:29)
              at node:internal/modules/cjs/loader:929:27
              at Function._load (node:electron/js2c/node_init:2:13357)
              at Module.require (node:internal/modules/cjs/loader:1150:19)
              at require (node:internal/modules/cjs/helpers:121:18)
              at Object. (/home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js:8:17)
              at Module._compile (node:internal/modules/cjs/loader:1271:14)
              at Object…js (node:internal/modules/cjs/loader:1326:10)
              at Module.load (node:internal/modules/cjs/loader:1126:32)
              at node:internal/modules/cjs/loader:967:12
              at Function._load (node:electron/js2c/node_init:2:13357)
              at Module.require (node:internal/modules/cjs/loader:1150:19)
              at require (node:internal/modules/cjs/helpers:121:18)
              at loadModule (/home/mm/MagicMirror/js/app.js:181:19)
              (Use electron --trace-warnings ... to show where the warning was created)
              [20.04.2024 15:23.46.876] [ERROR] (node:2607) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil
              last edited by sdetweil

              @Peter said in Auto start stops working:

              [20.04.2024 15:23.46.874] [ERROR] (node:2607) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
              Require stack:

              /home/mm/MagicMirror/modules/MMM-EveryNews/node_helper.js

              yep

              see
              https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-late

              a good reason to use my upgrade script… I would have checked and fixed this
              https://github.com/sdetweil/MagicMirror_scripts

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil I used your updatescript; problem still the same.
                MM works fine without EveryNews in the config, with EveryNews there is no autostart.

                mm@raspberrypi:~ $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
                update log will be in /home/mm/MagicMirror/installers/upgrade.log

                doing test run = true, NO updates will be applied!

                Check current Node installation …
                Node currently installed. Checking version number.
                Minimum Node version: v20.8.0
                Installed Node version: v20.8.0
                No Node.js upgrade necessary.
                Check current NPM installation …
                NPM currently installed. Checking version number.
                Minimum npm version: V10.1.0
                Installed npm version: V10.1.0
                No npm upgrade necessary.

                saving custom.css
                upgrading from version 2.26.0 to 2.27.0
                fetching latest revisions
                there are 1 local files that are different than the master repo

                package-lock.json

                any *-lock.json files do not need to be saved
                do you want to save these files for later (Y/n)?n
                skipping restore for package-lock.json, doing test run

                Checking for modules with removed libraries

                require for request in module MMM-EveryNews not found in package.json

                bypass installing request for module MMM-EveryNews , doing test run

                updating dependencies for active modules with package.json files

                processing for module MMM-Pir please wait


                skipped processing for MMM-Pir, doing test run

                processing complete for module MMM-Pir

                processing for module MMM-Buienradar please wait


                skipped processing for MMM-Buienradar, doing test run

                processing complete for module MMM-Buienradar

                processing for module MMM-EveryNews please wait


                skipped processing for MMM-EveryNews, doing test run

                processing complete for module MMM-EveryNews

                processing for module MMM-ImagesPhotos please wait


                skipped processing for MMM-ImagesPhotos, doing test run

                processing complete for module MMM-ImagesPhotos

                restoring custom.css
                mm@raspberrypi:~ $

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

                  @Peter said in Auto start stops working:

                  doing test run = true, NO updates will be applied!

                  yes… upgrade is a 2 part thing

                  test
                  do

                  you did test which doesn’t fix anything
                  using the second link will DO

                  but as you already did it manually, apply will bail out

                  so change the word apply at the end of the second copy/paste to

                  force

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil it works!
                    Thank you very much, you are great!
                    Peter

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved on
                    • 1 / 1
                    • 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