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.

    Crashing after "Starting Server"

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    13 Posts 3 Posters 1.7k Views 4 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.
    • B Offline
      BEGreen87 @MMRIZE
      last edited by

      @MMRIZE Thanks for the help. Is there a configuration that needs to be set around node?

      Here’s what “node -v” returns:

      v18.17.1
      

      Noticed it wasn’t the latest so went through the following:

      npm install -g n
      n lts
      n prune
      

      Now “node -v” returns:

      v20.9.0
      

      Still having the same issue, log after update below:

      > magicmirror@2.25.0 server
      > node ./serveronly
      
      [20.11.2023 15:43.16.311] [LOG]   Starting MagicMirror: v2.25.0
      [20.11.2023 15:43.16.313] [LOG]   Loading config ...
      [20.11.2023 15:43.16.315] [DEBUG] config template file not exists, no envsubst
      [20.11.2023 15:43.16.319] [LOG]   Loading module helpers ...
      [20.11.2023 15:43.16.320] [LOG]   No helper found for module: alert.
      [20.11.2023 15:43.16.331] [LOG]   Initializing new module helper ...
      [20.11.2023 15:43.16.331] [LOG]   Module helper loaded: updatenotification
      [20.11.2023 15:43.16.332] [LOG]   No helper found for module: clock.
      [20.11.2023 15:43.16.449] [ERROR] Whoops! There was an uncaught exception...
      [20.11.2023 15:43.16.453] [ERROR] Error: Cannot find module 'fetch'
      Require stack:
      - /magicmirror2/modules/default/calendar/calendarfetcher.js
      - /magicmirror2/modules/default/calendar/node_helper.js
      - /magicmirror2/js/app.js
      - /magicmirror2/serveronly/index.js
          at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
          at Module._resolveFilename (/magicmirror2/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:901:27)
          at Module.require (node:internal/modules/cjs/loader:1115:19)
          at require (node:internal/modules/helpers:130:18)
          at Object.<anonymous> (/magicmirror2/modules/default/calendar/calendarfetcher.js:11:15)
          at Module._compile (node:internal/modules/cjs/loader:1241:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
          at Module.load (node:internal/modules/cjs/loader:1091:32)
          at Module._load (node:internal/modules/cjs/loader:938:12)
          at Module.require (node:internal/modules/cjs/loader:1115:19)
          at require (node:internal/modules/helpers:130:18)
          at Object.<anonymous> (/magicmirror2/modules/default/calendar/node_helper.js:8:25)
          at Module._compile (node:internal/modules/cjs/loader:1241:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
          at Module.load (node:internal/modules/cjs/loader:1091:32) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
          '/magicmirror2/modules/default/calendar/calendarfetcher.js',
          '/magicmirror2/modules/default/calendar/node_helper.js',
          '/magicmirror2/js/app.js',
          '/magicmirror2/serveronly/index.js'
        ]
      }
      [20.11.2023 15:43.16.453] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [20.11.2023 15:43.16.453] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      ---Ensuring UID: 99 matches user---
      usermod: no changes
      ---Ensuring GID: 100 matches user---
      usermod: no changes
      ---Setting umask to 000---
      ---Checking for optional scripts---
      ---No optional script found, continuing---
      ---Taking ownership of data...---
      ---Starting...---
      ---MagicMirror² up-to-date---
      ---Looking for new modules to install---
      Module 'MMM-GoogleCalendar' found!
      Module 'MMM-GooglePhotos' found!
      Module 'MMM-WeatherGraph' found!
      Module 'MMM-MyCommute' found!
      Module 'MMM-MonthlyCalendar' found!
      Module 'MMM-WebHookAlerts' found!
      Module 'MMM-WeasleyClock' found!
      Module 'MMM-NotificationReceived' found!
      Module 'MMM-TracCar' found!
      Module 'MMM-WiFiPassword' found!
      Module 'MMM-GoogleDocs-Notes' found!
      ---Preparing Server---
      ---Configuration file found!---
      ---Please wait, permissions are set, this can take some time...---
      ---Starting Server---
      
      S M 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @BEGreen87
        last edited by

        @BEGreen87 what is all that junk at the end?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @BEGreen87 move the mm folder out of the way

          and run my install script
          https://github.com/sdetweil/MagicMirror_scripts

          you may want to backup your mirror setup and restore after

          https://github.com/sdetweil/MagicMirror-backup-restore

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @BEGreen87
            last edited by

            @BEGreen87

            [20.11.2023 15:43.16.453] [ERROR] Error: Cannot find module 'fetch'
            Require stack:
            - /magicmirror2/modules/default/calendar/calendarfetcher.js
            

            This is very weird log, because calendarfetcer.js doesn’t call require("fetch") in the source, so there is no reason of that error. Is the source modified? Can you check the source is the same with original?

            B 2 Replies Last reply Reply Quote 0
            • B Offline
              BEGreen87 @MMRIZE
              last edited by

              @MMRIZE Looks like I match the 2.23.0 Release.

              1 Reply Last reply Reply Quote 0
              • B Offline
                BEGreen87 @MMRIZE
                last edited by

                @MMRIZE @sdetweil

                Thanks for all the help, was able to resolve the issue by replacing all the files in /modules/default/calendar with the ones for the latest release.

                Not sure why this didn’t occur during the update, but looks like I’m back in business!

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

                  @BEGreen87 weird
                  from the MagicMirror folder do

                  git status 
                  

                  and report the results if you can

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil

                    fatal: not a git repository (or any parent up to mount point /)
                    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
                    

                    Guessing this is because I’m using using it in Docker?

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

                      @BEGreen87 yeh, maybe

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • 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