Skip to content

Apps Are Being Disabled Due to App Validation Function #27465

@meikitanious

Description

@meikitanious

Issue Summary

Self-hosting with Docker. After installing, everything was looking good. However, I checked this morning to see that randomly, Google Calendar / Google Meet was disabled on my instance. This was after setting it up and having it work correctly.

I checked the database, and it was properly seeded with the credentials. However, enabled was randomly set to false instead of true. I was able to fix this by updating the SQL table and it seems to be working again. Need to see if it disables again, and if so why that happened.

TEMPORARY FIX

This bug happens when the recently added shouldEnableApp function runs, which happens on container start-up and during the CRON App Sync. Here are the steps to get it working again until a PR is submitted:

  1. Spin down the container and add the ENV variable CRON_ENABLE_APP_SYNC=false. This is important to prevent the Calendar from being disabled on a scheduled basis.
  2. Run a SQL statement to set the apps enabled status to true, e.g. UPDATE "App" SET enabled = true WHERE slug = 'google-calendar';
  3. If you need to spin down your container again in the future, repeat Step 2.

It has been 4 days since I submitted this issue and this fix has stopped the calendar apps from consistently breaking.

Technical details

  • On image calcom.docker.scarf.sh/calcom/cal.com:v6.1.9-arm
  • Postgres Alpine 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions