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

    Amenity4882

    @Amenity4882

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

    Amenity4882 Unfollow Follow

    Latest posts made by Amenity4882

    • RE: MM Calendar error connecting

      @sdetweil Oh my god, I’m so sorry I have to say this. It was all my fault. I had added an option to Nginx to limit connections to specific IP ranges at some point, and that took effect only after I restarted my server recently. My docker IP range was the only thing not listed, so everything else inside my network was working fine.

      But anyway, thank you for helping troubleshoot, especially with your latest comment with all the debug! That was actually what helped me discover the issue, just not the way you probably intended!

      All is good now. Thank you again 😭

      posted in Bug Hunt
      A
      Amenity4882
    • RE: MM Calendar error connecting

      @sdetweil Ah, so that was just to use the internal MM web server.

      Yes I use Nginx for reverse proxying and I use a LetsEncrypt cert to add https. The https portion is working fine and I’ve tested the custom URL pointing to the ICS file using wget.

      posted in Bug Hunt
      A
      Amenity4882
    • RE: MM Calendar error connecting

      @sdetweil I’m not sure what you mean by “inside the MagicMirror folder”, but I created a manual location in Nginx that points to an ICS file downloaded from Radicale. Then I updated MM to point to this custom URL. Used Wget to confirm I can download using the custom URL. Same issue…

      Then I removed the authentication from Radicale entirely, same issue…
      Then I replaced the ICS file downloaded from Radicale with the ICS file from this repo. Same issue…

      MagicMirrorServer  | [2024-09-08 09:25:30.190] [ERROR] Calendar Error. Could not fetch calendar:  https://radicale.MyDomain.com/MyUser/main.ics Error: Forbidden
      MagicMirrorServer  |     at NodeHelper.checkFetchStatus (/opt/magic_mirror/js/node_helper.js:110:9)
      MagicMirrorServer  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      
      posted in Bug Hunt
      A
      Amenity4882
    • RE: MM Calendar error connecting

      @sdetweil The URL I specified in the module will return an iCal file. It doesn’t have a filename in the url (which is confusing). Maybe I don’t understand CalDav/WebDav enough to explain it well enough. Or maybe this is a Radicale quirk.

      posted in Bug Hunt
      A
      Amenity4882
    • MM Calendar error connecting

      Platform: Raspberry Pi 4
      Node Version: v20.17.0
      MagicMirror Version: 2.28.0 (running in docker)

      I’m using the built-in magic mirror module for CalDav integration, but the mirror just shows “Error in the Calendar module, check the logs for more info”. Logs are below (personal info scrubbed).

      MagicMirrorServer  | [2024-09-07 12:59:32.931] [ERROR] Calendar Error. Could not fetch calendar:  https://radicale.mydomain.com/MyUser/CalendarUUID/ Error: Forbidden
      MagicMirrorServer  |     at NodeHelper.checkFetchStatus (/opt/magic_mirror/js/node_helper.js:110:9)
      MagicMirrorServer  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      

      My setup for Caldav is Nginx reverse proxy using Basic Auth -> Radicale instance. Auth is disabled on Radicale. I’ve triple-checked the password in the MagicMirror config is correct (even copy-pasted). When I manually browse the calendar URL, I get a Basic auth prompt, then I’m able to download the calendar as an ICS file.

      Perhaps this wget log will help?

      wget --user MyUser --ask-password https://radicale.MyDomain.com/MyUser/CalendarUUID/
      
      Password for user ‘MyUser’: 
      --2024-09-07 13:36:56--  https://radicale.MyDomain.com/MyUser/CalendarUUID/
      Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
      Resolving radicale.MyDomain.com (radicale.MyDomain.com)... 192.168.-.--
      Connecting to radicale.MyDomain.com (radicale.MyDomain.com)|192.168.-.--|:443... connected.
      HTTP request sent, awaiting response... 401 Unauthorized
      Authentication selected: Basic realm="Radicale - Password Required"
      Reusing existing connection to radicale.MyDomain.com:443.
      HTTP request sent, awaiting response... 200 OK
      Length: 269670 (263K) [text/calendar]
      Saving to: ‘index.html’
      

      Configuration:

      {
          module: "calendar",
          header: "Events",
          position: "top_left",
          config: {
              calendars: [
                  {
                      fetchInterval: 60 * 60 * 1000,
                      symbol: "calendar-check",
                      url: "https://radicale.MyDomain.com/MyUser/CalendarUUID/",
                      auth: {
                          user: "-----",
                          pass: "-----",
                          method: "basic"
                      }
                  }
              ]
          }
      }
      
      posted in Bug Hunt
      A
      Amenity4882