[supabase][0.0.15] olares-envoy-sidecar CrashLoopBackOff: gateway Envoy collides on base_id=0 (fix: --disable-hot-restart)

Aperta Adatta ai principianti
#4,093 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ethanwheatthin ci sta già lavorando.

Dal 3/12/2026.

  • #4094 di @ethanwheatthin — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
kubernetes

Direzione di ricerca

Leggi supabase/templates/supabase-group.yaml intorno alla riga 308 e controlla il comando Envoy del container gateway. Aggiungi l’opzione di hot restart segnalata, poi installa o aggiorna Supabase e ispeziona i log del pod e del sidecar. Il lavoro è completato quando tutti e tre i container diventano pronti senza riavvii del sidecar né l’errore di bind di base_id.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Supabase 0.0.15 never becomes ready on Olares. The olares-envoy-sidecar container in the supabase pod goes into CrashLoopBackOff immediately, and the studio and gateway containers then fail their startup probes. Olares eventually marks the app as stopped.

Root cause

The supabase pod runs two Envoy processes:

Container Image Command
gateway (from this chart) envoyproxy/envoy:v1.39.1 envoy -c /config/envoy.yaml --concurrency 2
olares-envoy-sidecar (injected by Olares) beclab/envoy:v1.25.11.1 envoy -c /config/envoy.yaml --service-cluster default. ...

Neither sets --base-id, so both use the default base_id=0. Envoy's hot-restart support binds an abstract Unix domain socket named after the base id. Containers in a pod share a network namespace, so both processes try to bind the same socket. gateway starts first and gets it, and the sidecar exits with code 1:

unable to bind domain socket with base_id=0, id=0, errno=98 (see --base-id option)

With the sidecar down, the startup probes for studio (:3000/api/platform/profile) and gateway (:8000) get connection refused, even though both processes are running. Studio logs Ready, and gateway logs lds: add/update listener 'supabase' / starting workers.

Fix

In supabase/templates/supabase-group.yaml (line 308 on main), disable hot restart on the gateway's Envoy. It isn't needed in a container:

-          exec envoy -c /config/envoy.yaml --concurrency 2'
+          exec envoy -c /config/envoy.yaml --concurrency 2 --disable-hot-restart'

(--base-id 1 would also work.)

I tested this by patching the running Deployment. After the rollout the pod was 3/3 Running with 0 restarts, the sidecar logged starting workers with no bind error, and all three containers passed their probes.

Steps to reproduce

  1. Install Supabase 0.0.15 from the Olares Market.
  2. kubectl -n supabase-<user> get pods shows the pod at 0/3, with olares-envoy-sidecar in CrashLoopBackOff.
  3. kubectl -n supabase-<user> logs <pod> -c olares-envoy-sidecar shows the base_id=0 ... errno=98 error.

Environment

  • Chart: supabase 0.0.15 (app version 0.8.3), installed from Market
  • Images: supabase/studio:2026.10.12-sha-3699278, envoyproxy/envoy:v1.39.1, sidecar beclab/envoy:v1.25.11.1
  • Arch: amd64

Also noticed (minor)

Applying a change to the Deployment prints:

spec.template.spec.containers[1].ports[0]: duplicate port name "service" with spec.template.spec.containers[0].ports[0]

studio and gateway both name their port service, so anything that selects the port by name resolves to studio's. It's harmless right now, but it's worth giving them distinct names.

Lingua principale
Go Template
Stelle
56
Fork
44
Merge medio
10h 39m
PR unite (30g)
211

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beclab/apps

Tutte le issue di beclab/apps

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.