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
feat: tighten gotrue.service deps and startup behavior (#1783)
* systemd: tighten gotrue.service deps and startup behavior
Add stronger ordering and dependency constraints to reduce startup race
conditions and noisy flapping:
- Wait for `cloud-init`, `supabase-admin-agent_salt`, `apparmor`,
`systemd-sysctl`, and `ufw` to complete before starting.
- Require `network-online.target` and `systemd-resolved` for stable DNS
resolution; note Go's resolver can race with early boot DNS.
- Ensure `postgresql.service` is online before starting auth to avoid
misleading error noise during slow boots.
- Lower `StartLimitIntervalSec` and `StartLimitBurst` to reduce
repeated restarts in failure scenarios.
- Switch service type to `exec` instead of `simple`. This removes the tiny
window in which systemd is supervising the wrapper process instead of the
Go binary.
These changes aim to rule out capability changes, socket reuse races, and
incomplete firewall/network config as causes of EADDRINUSE errors and
unstable startup.
* chore: add newline to end of file
* feat: enable notify support and cleanup for v3 support.
* chore: add testing suffix for local infra test
* feat: add info commands for when health checks fail
* fix: better approach for this test
* fix: formatting I believe is why test failed
* chore: add a little more log output and remove -r
* chore: fmt
* chore: strip deps to see if orioledb test passes
* chore: restore gotrue service unit deps
---------
Co-authored-by: Chris Stockton <[email protected]>
Co-authored-by: Sam Rose <[email protected]>
0 commit comments