Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
We are seeing intermittent write buffer crashes on self-hosted Plausible v3.2.0.
Error
[notice] Flushing Elixir.Plausible.Session.WriteBuffer buffer before shutdown...
[error] GenServer Plausible.Session.WriteBuffer terminating
** (FunctionClauseError) no function clause matching in Plausible.Ingestion.WriteBuffer.handle_info/2
(plausible 0.0.1) lib/plausible/ingestion/write_buffer.ex:63:
Plausible.Ingestion.WriteBuffer.handle_info({:EXIT, #Port<...>, :normal}, %{name: Plausible.Session.WriteBuffer, ...})
Last message: {:EXIT, #Port<...>, :normal}
The Plausible pod stays up, but the write buffer process crashes and restarts.
This looks like an unhandled {:EXIT, port, :normal} message in handle_info/2.
I have also seen separate ClickHouse connection messages (Ch.Connection disconnected: socket closed), but this seems to be a distinct bug: even if a connection/client event is the trigger, the immediate failure is the FunctionClauseError.
Questions
- Is this a known issue?
- Can buffered writes be lost when this happens?
Expected behavior
FunctionClauseError should not be happen.
Screenshots
No response
Environment
- Plausible v3.2.0
- self-hosted on Kubernetes
- ClickHouse backend
Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Self-hosting
Describe the bug
We are seeing intermittent write buffer crashes on self-hosted Plausible
v3.2.0.Error
The Plausible pod stays up, but the write buffer process crashes and restarts.
This looks like an unhandled
{:EXIT, port, :normal}message inhandle_info/2.I have also seen separate ClickHouse connection messages (Ch.Connection disconnected: socket closed), but this seems to be a distinct bug: even if a connection/client event is the trigger, the immediate failure is the FunctionClauseError.
Questions
Expected behavior
FunctionClauseError should not be happen.
Screenshots
No response
Environment