• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Fetch Failed with multiple instances across multiple modules (multiple config)

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 246 Views 3 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.
  • W Offline
    WiredRacing
    last edited by Sep 19, 2024, 8:47 PM

    MM2 in Docker, recently configured multiple instances which were working just fine.

    However after a restart of the container, on one instance I have various “Error in the module. Check logs for more details.” (where name is Calendar or Newsfeed).

    Over time (when refresh is triggered), the newsfeed comes online, and later the weather forecast will show up (it’s stuck at ‘loading…’ for a while.

    This would be fine except the Calendar doesn’t clear this situation as I guess it doesn’t exactly refresh like the others do.

    When I first view this instance in a browser, I see the calendar module list the upcoming events just fine, then I see MMM-MonthlyCalendar pop up (as it has), but then the calendar module area fades out and reports this error. I believe it’s on the attempt to broadcast.

    Message is some flavor of: TypeError: fetch failed for both modules.

    For example:

    [2024-09-19 16:23:02.804] [ERROR] Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/<redacted>.ics TypeError: fetch failed
        at node:internal/deps/undici/undici:12618:11
        at processTicksAndRejections (node:internal/process/task_queues:95:5)
          _finishFlushFlag: 2,
        at runNextTicks (node:internal/process/task_queues:64:3)
        at process.processImmediate (node:internal/timers:447:9) {
      cause: ConnectTimeoutError: Connect Timeout Error
          at onConnectTimeout (node:internal/deps/undici/undici:7760:28)
          at node:internal/deps/undici/undici:7716:50
          _defaultFullFlushFlag: 3,      at Immediate._onImmediate (node:internal/deps/undici/undici:7748:13)
    
          at process.processImmediate (node:internal/timers:476:21) {
        code: 'UND_ERR_CONNECT_TIMEOUT'
      }
    } 
    

    The newsfeed one is similar.

    Does this have anything to do with two instances of the server running but sharing resources? If I refresh my 2nd instance (which uses the same calendar module config), it works just fine.

    Help! Not sure what changed…they were coexisting fine.

    S 1 Reply Last reply Sep 19, 2024, 9:25 PM Reply Quote 0
    • S Away
      sdetweil @WiredRacing
      last edited by Sep 19, 2024, 9:25 PM

      @WiredRacing I think the error recovery did not recover

      restarting the container restarts and it will run fine til it fails… and may recover… or not

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Sep 19, 2024, 9:53 PM Reply Quote 0
      • K Offline
        karsten13 @sdetweil
        last edited by Sep 19, 2024, 9:53 PM

        can you provide the logs of system information?

        Something like this:

        [2024-09-19 21:52:27.750] [INFO]  System information:
        ### SYSTEM:   manufacturer: Microsoft; model: Docker Container; virtual: true
        ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 5.15.153.1-microsoft-standard-WSL2
        ### VERSIONS: electron: undefined; used node: 22.9.0; installed node: 22.9.0; npm: 10.8.3; pm2:
        ### OTHER:    timeZone: UTC; ELECTRON_ENABLE_GPU: undefined
        
        W 1 Reply Last reply Sep 20, 2024, 1:38 PM Reply Quote 0
        • W Offline
          WiredRacing @karsten13
          last edited by Sep 20, 2024, 1:38 PM

          [2024-09-19 14:43:56.866] [INFO]  System information:
          ### SYSTEM:   manufacturer: Gigabyte Technology Co., Ltd.; model: Docker Container; raspberry: undefined; virtual: false
          ### OS:       platform: linux; distro: Debian GNU/Linux; release: 11; arch: x64; kernel: 6.1.64-Unraid
          ### VERSIONS: electron: undefined; used node: 18.20.2; installed node: 18.20.2; npm: 10.5.0; pm2: 
          ### OTHER:    timeZone: America/New_York; ELECTRON_ENABLE_GPU: undefined
          
          S 1 Reply Last reply Sep 20, 2024, 1:44 PM Reply Quote 0
          • S Away
            sdetweil @WiredRacing
            last edited by Sep 20, 2024, 1:44 PM

            @WiredRacing can you upgrade the nodejs to version 20

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            W 1 Reply Last reply Sep 20, 2024, 3:50 PM Reply Quote 0
            • W Offline
              WiredRacing @sdetweil
              last edited by Sep 20, 2024, 3:50 PM

              @sdetweil thanks. That did it!

              New problem post for how to auto-run both configs on startup (right now I manually start the second one).

              1 Reply Last reply Reply Quote 0
              • W WiredRacing has marked this topic as solved on Sep 20, 2024, 3:50 PM
              • 1 / 1
              1 / 1
              • First post
                1/6
                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