randomBrainstormer / MMM-GoogleCalendar

Google Calendar for MagicMirror²
MIT License
73 stars 46 forks source link

Calendar is "Loading" - New Install #67

Closed anthonymgil closed 6 months ago

anthonymgil commented 6 months ago

Been trying to read the old issues, but they seemed to have miraculously resolved or were old installs. Tried to troubleshoot best I could, though still learning about everything in MagicMirror:

authorize.js works, it pulls back my calendar entries from my primary calendar account and if I modify it, it will pull back from my shared family account.

In config.js I have tried: primary, ****@gmail.com (primary calendar), and ****@group.calendar.google.com (family calendar).

The screen only shows My Calendar (header) and Loading..

I've reduced the config file to just bare minimum... here is the start up log

magicmirror@2.27.0 start DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[2024-05-15 02:33:54.726] [LOG] Starting MagicMirror: v2.27.0 [2024-05-15 02:33:54.757] [LOG] Loading config ... [2024-05-15 02:33:54.761] [LOG] config template file not exists, no envsubst [2024-05-15 02:33:54.765] [LOG] Loading module helpers ... [2024-05-15 02:33:54.767] [LOG] No helper found for module: clock. [2024-05-15 02:33:56.770] [LOG] Initializing new module helper ... [2024-05-15 02:33:56.772] [LOG] Module helper loaded: MMM-GoogleCalendar [2024-05-15 02:33:56.773] [LOG] All module helpers loaded. [2024-05-15 02:33:56.788] [LOG] Starting server on port 8080 ... [2024-05-15 02:33:58.068] [LOG] Server started ... [2024-05-15 02:33:58.071] [LOG] Connecting socket for: MMM-GoogleCalendar [2024-05-15 02:33:58.073] [LOG] Starting node helper for: MMM-GoogleCalendar [2024-05-15 02:33:58.074] [LOG] Sockets connected & modules started ... [2024-05-15 02:33:58.394] [LOG] Launching application. [2024-05-15 02:34:00.428] [INFO] System information:

SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false

OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.28+rpt-rpi-v8

VERSIONS: electron: 29.3.3; used node: 20.9.0; installed node: 22.1.0; npm: 10.7.0; pm2: 5.3.1

OTHER: timeZone: America/New_York; ELECTRON_ENABLE_GPU: undefined

Error log [9930:0515/023359.189982:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.200374:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.201307:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.201774:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.202358:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.202719:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.203220:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.205225:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.207365:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.209640:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.210685:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.216615:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.217885:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.224997:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.260609:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.265936:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.268522:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.278006:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.279503:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.280371:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.281566:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.284785:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.286404:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.292388:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.297640:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.298793:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2) [9930:0515/023359.300920:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2) [9930:0515/023359.304229:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)

randomBrainstormer commented 6 months ago

Hi @anthonymgil,

It looks like you've done your due diligence in troubleshooting the issues with MagicMirror. Since authorize.js is working fine and pulling calendar entries, that's a good sign.

Could you share your complete config file (with any sensitive information obscured or removed, of course) so we can take a closer look at the settings? When it comes to configuration, even small punctuation or spelling discrepancies can cause unexpected behavior.

Thanks, Ivan

anthonymgil commented 6 months ago

Thanks for offering to help!

I minimized the config file to just GoogleCalendar entry and validated it still is happening.

Attached: config.txt

randomBrainstormer commented 6 months ago

Thanks for sharing your configuration. It looks like there might be a small issue with the structure of the config object for the calendar module. The module's config should include a calendars array within, detailing the config for each calendar. Here's how you can adjust it:

{
    module: 'MMM-GoogleCalendar', 
    position: 'top_left', 
    header: "Anthony's Calendar",
    config: {
        calendars: [
            {
                symbol: "calendar-check", // The symbol property is optional, but useful to have
                calendarID: "*********@group.calendar.google.com",  
            },
        ],
    },
}

Notice if you wanted to have several of your calendars, within the module's config you can simply stack them as:

calendars: [
    {
        symbol: "calendar-week", // Can be any symbol
        calendarID: "*********@gmail.com",  
    },
    {
        symbol: "calendar-check", // Idem
        calendarID: "*********@group.calendar.google.com",  
    },
    // ... can keep adding as many more as needed
],

Make sure you only replace the relevant calendar section of your existing configuration with the corrected structure provided. Let me know if this solves the issue or if I can help further.

anthonymgil commented 6 months ago

That was it.. I feel stupid.

Overlooked that array. Thanks!