Realtime stopped working after tenant cleanup – TenantNotFound?
My Supabase project is suddenly throwing TenantNotFound errors non-stop in the logs and Realtime is completely dead. I’m on a tight deadline and really need a fix, so any help or ideas would be massively appreciated.
Here’s what’s happening:
Here’s what’s happening:
- Project works normally after initial deployment
- After a period of inactivity, I see this in logs:```Tenant qwnszhqhhscwkknnhqxx has been terminated: :shutdownTenant has no connected users, database connection will be terminated```
- Twelve minutes later, Realtime tries to reconnect, but all I get is:
- This error repeats 96 times in a few minutes. Nothing else works.
- Mixed in are 422 UnprocessableEntity errors like:
- I recreated the Supabase instance from scratch
- Checked all publications - both
supabase_realtimeandsupabase_realtime_messages_publicationshow as present and valid in the dashboard - Verified correct project ID
- Submitted a support request, but on the free plan so not sure how soon I’ll get a response
- The error usually pops up right after Supabase terminates the tenant for “no connected users” (idle state)
- After termination, even recreating the project eventually leads back to the same problem. Realtime totally fails to reconnect and tenant can’t be found by Supabase’s backend
- Realtime service just spams TenantNotFound error for every subscription
- Connecting from a JS client (For testing) but also Swift