MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. WiredRacing
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 0

    WiredRacing

    @WiredRacing

    0
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    WiredRacing Unfollow Follow

    Latest posts made by WiredRacing

    • RE: Loading multiple instances when MM2 is in Docker container

      @sdetweil Ahh, thanks for the education on the &. Working now!

      Note: I wrote this a couple days ago, just didn’t click ‘submit’. :)

      posted in Troubleshooting
      W
      WiredRacing
    • Loading multiple instances when MM2 is in Docker container

      So the docker setup I have runs a start_server.sh script and once it his ‘npm run server’ it just shows logging info, meaning it won’t execute anything I put under it (until I kill the running task, I’d assume).

      I believe the typical method to handle this is by using PM2, but I don’t have that here.

      So right now I just open the console to the container, change the MM_CONFIG_FILE path to my 2nd config file and execute ‘npm run server’ and close that console window.

      What’s the best/proper method for me to get them both to launch automatically?

      posted in Troubleshooting
      W
      WiredRacing
    • RE: Fetch Failed with multiple instances across multiple modules (multiple config)

      @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).

      posted in Troubleshooting
      W
      WiredRacing
    • RE: Fetch Failed with multiple instances across multiple modules (multiple config)
      [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
      
      posted in Troubleshooting
      W
      WiredRacing
    • Fetch Failed with multiple instances across multiple modules (multiple config)

      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.

      posted in Troubleshooting
      W
      WiredRacing