T
Twenty2w ago
FatoYo

Mail and calendar env settings ignored

Hi. I'm setting up the Gmail and Google Calendar environment variables following the online guide. The cron jobs are running but the environment variables appear to be empty/default so it doesn't work. I also don't see any option in the Account settings. "docker exec -it <container> env" confirms that only the Server Config is configured. I'm running 0.42.0 (February 18th 2025) Below is my .env file. Is this a bug or what am I doing wrong? TAG=latest PG_DATABASE_USER=postgres PG_DATABASE_PASSWORD=<redacted> PG_DATABASE_HOST=db PG_DATABASE_PORT=5432 REDIS_URL=redis://redis:6379 SERVER_URL=https://<redacted> SIGN_IN_PREFILLED=false Use openssl rand -base64 32 for each secret APP_SECRET=<redacted> MESSAGING_PROVIDER_GMAIL_ENABLED=true CALENDAR_PROVIDER_GOOGLE_ENABLED=true MESSAGING_PROVIDER_MICROSOFT_ENABLED=false CALENDAR_PROVIDER_MICROSOFT_ENABLED=false AUTH_GOOGLE_CLIENT_ID=<redacted> AUTH_GOOGLE_CLIENT_SECRET=<redacted> AUTH_GOOGLE_CALLBACK_URL=https://<redacted>/auth/google/redirect AUTH_GOOGLE_APIS_CALLBACK_URL=https://<redacted>/auth/google-apis/get-access-token IS_EMAIL_VERIFICATION_REQUIRED=false EMAIL_VERIFICATION_TOKEN_EXPIRES_IN=1h EMAIL_FROM_ADDRESS=contact@<redacted> EMAIL_FROM_NAME=Admin from <redacted> EMAIL_SYSTEM_ADDRESS=system@<redacted> EMAIL_DRIVER=smtp EMAIL_SMTP_HOST=smtp.gmail.com EMAIL_SMTP_PORT=465 EMAIL_SMTP_USER=<redacted> EMAIL_SMTP_PASSWORD=<redacted> STORAGE_TYPE=local STORAGE_S3_REGION=eu-west3 STORAGE_S3_NAME=my-bucket STORAGE_S3_ENDPOINT=
No description
No description
3 Replies
nickponcho
nickponcho7d ago
Try add the variables from .env to the worker in docker-compose.yml
FatoYo
FatoYoOP7d ago
Golden! It seems obvious in hindsight but it didn't occur to me until you pointed it out @nickponcho . I added the variables in both the worker and server service. Even added MS info for testing and now I see both options in the GUI. I think the example docker-compose file should be updated with all the possible environmental values based on which service they belong to. This is a basic feature that most new users of Twenty will want to implement so it should be as easy as possible. I might create a pull request with at least the mail/calendar variables
No description
FatoYo
FatoYoOP7d ago
Resolved

Did you find this page helpful?