Back

Environment variable for sentry missing but .env is set correctly

  • 1
  • Self Hosted
  • General
shekpaar
27 Sep, 2024, 19:30

I set the variables in the .env as follow:

_APP_LOGGING_PROVIDER=sentry _APP_LOGGING_CONFIG=FIRST;SECOND

Then I recreated the container with docker compose up -d --force-recreate but the variable for _APP_LOGGING_PROVIDER is not set. The one for _APP_LOGGING_CONFIG is set correctly.

docker compose exec appwrite vars | grep LOGGING gives me:

  • _APP_LOGGING_PROVIDER=
  • _APP_LOGGING_CONFIG=FIRST;SECOND

I tried already:

  • reboot
  • rebuild the container

Any ideas how to get the env set correctly?

TL;DR
Environment variable for Sentry isn't being set despite .env file being correct. After recreating container, _APP_LOGGING_PROVIDER remains empty while _APP_LOGGING_CONFIG is correct. Tried rebooting and rebuilding container. Solution: Check if environment variable is being unset or overwritten elsewhere in the code.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more