You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If they are missing, the container doesn't throw any error but keeps shutting down with the following info message:
{"level":"info","msg":"Go runtime metrics collection started","time":"2024-11-29T09:45:06Z"}
{"component":"pop","level":"info","msg":"Migrations already up to date, nothing to apply","time":"2024-11-29T09:45:06Z"}
{"args":[0.009035875],"component":"pop","level":"info","msg":"%.4f seconds","time":"2024-11-29T09:45:06Z"}
{"level":"info","msg":"GoTrue migrations applied successfully","time":"2024-11-29T09:45:06Z"}
{"level":"info","msg":"GoTrue API started on: :8081","time":"2024-11-29T09:45:06Z"}
{"component":"api","level":"warning","msg":"DEPRECATION NOTICE: GOTRUE_JWT_ADMIN_GROUP_NAME not supported by Supabase's GoTrue, will be removed soon","time":"2024-11-29T09:45:06Z"}
{"level":"info","msg":"received graceful shutdown signal","time":"2024-11-29T09:45:21Z"}
Expected behavior
Print an information that the auth service stopped based on the missing environment variable.
System information
Image: supabase/gotrue:v2.164.0
Additional context
Hard to add an example deployment or pod template to reproduce since the service also needs database configuration. But if you got a running setup somehow, it could be easily reproduced by removing the environment variables. Probably also works with the official docker compose setup.
Not really a bug but after I cleaned up several environment variables, it took some time until I figured why the pod keeps restarting. I guess this would be easier for everyone if the logs just say that this env var is missing.
When those environment variables are missing we set defaults. I imagine what is happening is that gotrue starts up listening on the default port of 8081. Then K8S probes the expected port which fails the health check so K8S then sends a SIGINT / SIGHUP to terminate and the auth server abides.
Describe the bug
Auth container keeps restarting in Kubernetes if the following environment variables are not set:
If they are missing, the container doesn't throw any error but keeps shutting down with the following info message:
Expected behavior
Print an information that the auth service stopped based on the missing environment variable.
System information
Additional context
Hard to add an example deployment or pod template to reproduce since the service also needs database configuration. But if you got a running setup somehow, it could be easily reproduced by removing the environment variables. Probably also works with the official docker compose setup.
Not really a bug but after I cleaned up several environment variables, it took some time until I figured why the pod keeps restarting. I guess this would be easier for everyone if the logs just say that this env var is missing.
The mentioned environment variables are also missing in the Auth Self-hosting documentation and should be marked as required as well: https://supabase.com/docs/guides/self-hosting/auth/config
The text was updated successfully, but these errors were encountered: