Startup blocks after `ep_ai_core initialized` — HTTP server never listens

Aperta
#77 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
backend

Direzione di ricerca

Start by tracing the plugin load chain after ep_ai_core initialized and setKeys done, including the initialization paths in ep_ai_core and ep_ai_chat; the issue does not name source files or tests. Reproduce startup with both AI plugins installed and identify which awaited initialization prevents the listener from starting. Done means Etherpad starts listening when AI initialization fails or is incomplete, with AI features degrading gracefully.

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

Descrizione

Environment

  • Etherpad 3.3.13 (official Docker image)
  • ep_ai_core 1.1.0, ep_ai_chat 1.2.5, ep_openid_connect 3.0.13
  • Node.js v24.22.2, Linux
  • 24 other plugins; startup completes fine without the AI plugins

Symptom

With ep_ai_core and ep_ai_chat installed, startup stalls right after

[INFO] ep_ai_core - ep_ai_core initialized
[INFO] settings - setKeys done

The HTTP server listening line never appears; the process stays alive
and idle (epoll_wait), the healthcheck goes unhealthy and every request
502s. Removing both plugins restores normal startup; re-adding them
reproduces the hang on every boot.

What I ruled out

  • Missing/misconfigured LLM settings: the stall occurs with a fully
    populated ep_ai_core block (openai-compatible provider, reachable
    endpoint, exact model ID openai/gpt-oss-120b) AND with the block
    absent entirely.
  • resolveModel(): it is fire-and-forget with a .catch, and an
    exact model ID skips the /models lookup anyway.
  • Endpoint reachability: the container reaches the endpoint; the
    provider's /v1/models currently answers 500, but per the code that
    path is only logged, not awaited.

loadSettings and init_ep_ai_core complete (ep_ai_core initialized
is logged). The hang sits somewhere after that in the plugin load
chain — I have not pinned it down further.

Request

A guard so that a failing or incomplete AI init cannot block the
Etherpad boot — the HTTP listener should come up regardless, with the
AI features degrading gracefully.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
2g 10h
PR unite (30g)
10

Preparare l'ambiente

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 ether/ep_ai_chat

Tutte le issue di ether/ep_ai_chat

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.