From 3f018963797e552a10d6f8679025120b10555787 Mon Sep 17 00:00:00 2001 From: Peter Spark Date: Sun, 5 Apr 2026 03:17:04 +0000 Subject: [PATCH] docs(runbook): document BIT-950 FlexIT XML tag mismatch (ERRSIG 8e233f7a57b8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md with §5.10 for wdmi-store FlexIT_DataExport/Record mismatch, cluster ERRCLUSTER:f2d78c625221, and matching er-cli queries. Paperclip-Issue: BIT-950 Paperclip-Run: 655ce92e-e0e1-4c3c-a469-8c0be705ca13 Made-with: Cursor --- docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md b/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md index 4b32dc1..187c140 100644 --- a/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md +++ b/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md @@ -4,7 +4,7 @@ **Não confundir com** falhas de **ingest** no hub — para isso ver [RUNBOOK_INGEST_DEBUG.md](RUNBOOK_INGEST_DEBUG.md). **Última revisão:** 2026-04-05 -**Contexto:** Erros de PHP em `simplexml_load_file()` originados em `Importer/_flexit.php` (tipicamente linha ~53), incluídos via `__maintenance_build.php`. Exemplos de assinatura no hub: `ERRSIG:6f82e20ec332`, `ERRSIG:5278058355a5`, `ERRSIG:948b0236b852`, `ERRSIG:033b36032168`, `ERRSIG:102101c1758d`, `ERRSIG:37670027b2d7`, `ERRSIG:5e3b58b8a99f`, `ERRSIG:63100e2b35c0`, `ERRSIG:4ca3a546fb62`. +**Contexto:** Erros de PHP em `simplexml_load_file()` originados em `Importer/_flexit.php` (tipicamente linha ~53), incluídos via `__maintenance_build.php`. Exemplos de assinatura no hub: `ERRSIG:6f82e20ec332`, `ERRSIG:5278058355a5`, `ERRSIG:948b0236b852`, `ERRSIG:033b36032168`, `ERRSIG:102101c1758d`, `ERRSIG:37670027b2d7`, `ERRSIG:5e3b58b8a99f`, `ERRSIG:63100e2b35c0`, `ERRSIG:4ca3a546fb62`, `ERRSIG:8e233f7a57b8`. --- @@ -65,7 +65,9 @@ Executar **no mesmo servidor** onde corre o PHP (caminho típico `/data/wwwroot/ ./scripts/er-cli.sh list-open --project wdmi-store --q "ERRSIG:5e3b58b8a99f" ./scripts/er-cli.sh list-open --project wdmi-store --q "ERRSIG:63100e2b35c0" ./scripts/er-cli.sh list-open --project wdmi-store --q "ERRSIG:4ca3a546fb62" +./scripts/er-cli.sh list-open --project wdmi-store --q "ERRSIG:8e233f7a57b8" ./scripts/er-cli.sh list-open --project wdmi-store --q "eb0dad83413f" +./scripts/er-cli.sh list-open --project wdmi-store --q "f2d78c625221" ./scripts/er-cli.sh list-open --project wdmi-store --q "simplexml_load_file" ./scripts/er-cli.sh list-open --project wdmi-store --q "_flexit.php" ``` @@ -192,6 +194,22 @@ Executar **no mesmo servidor** onde corre o PHP (caminho típico `/data/wwwroot/ ./scripts/er-cli.sh list-open --project wdmi-store --q "error parsing attribute name" ``` +### 5.10 Caso documentado — `wdmi-store` / Flexit (BIT-950) + +- **Assinatura:** `ERRSIG:8e233f7a57b8` +- **Paperclip:** [BIT-950](/BIT/issues/BIT-950) (recorrências agregadas pelo loop [BIT-309](/BIT/issues/BIT-309)) +- **Cluster (agregação BIT-309):** `ERRCLUSTER:f2d78c625221` — pode conter só esta assinatura enquanto o sintoma for estável; tratar como a mesma família operacional que §5.4 (**tag mismatch** no `FlexIT.XML` local). +- **Mensagem típica (excerpt):** `simplexml_load_file(): …/Importer/downloads/FlexIT.XML:1: parser error : Opening and ending tag mismatch: FlexIT_DataExport line 1 and Record` — **XML mal formado** (estrutura de tags incoerente na raiz ou conteúdo corrupto no ficheiro local `FlexIT.XML`); não é falha de ingest no hub. +- **Stack útil:** `_flexit.php` (≈53) ← `__maintenance_build.php` +- **Acção no produto:** no host de `wdmi-store`, inspeccionar `Importer/downloads/FlexIT.XML` (integridade, encoding, escrita concorrente, feed truncado); validar com `xmllint --noout`; seguir §2–§4 (pré-validação, `libxml_use_internal_errors`, idempotência). Resolver no hub após deploy e ausência de novos eventos com esta assinatura. + +```bash +./scripts/er-cli.sh list-open --project wdmi-store --q "ERRSIG:8e233f7a57b8" +./scripts/er-cli.sh list-open --project wdmi-store --q "8e233f7a57b8" +./scripts/er-cli.sh list-open --project wdmi-store --q "f2d78c625221" +./scripts/er-cli.sh list-open --project wdmi-store --q "FlexIT_DataExport" +``` + --- ## Ver também