- resolveFixedPatterns.ts: add '%fix-duplicate-logo.js%' entry so any Chrome-style CRM JS error that reaches the hub is auto-resolved on deploy - webhook-deploy.sh: call resolve-fixed-patterns after every service restart so code fixes clear stale hub incidents automatically (uses ERROR_RESOLVE_API_KEY from /etc/error-reporting/env which is already sourced by the script) The 5 open incidents for ERRCLUSTER:33b4e527d8fd were bulk-resolved directly (IDs 747145, 747381, 753209, 753550, 753551). Client-side noise filter (CRM PR #684) prevents new occurrences.
Native LXC deploy (no Docker)
Scripts and unit files for running ingest-api, admin-ui, and collector-worker on Debian/Ubuntu LXC with MariaDB (or MySQL 8+) on the same CT or another host.
Authoritative runbook: docs/deployment/bitreport-error-reporting-lxc-proxmox.md.
| Path | Purpose |
|---|---|
env.example |
Template for /etc/error-reporting/env |
run-migrate.sh |
Apply migrations + seed (after MariaDB is up) |
write-version-json.sh |
Emit runtime/version.json (BIT-465); set ER_VERSION_JSON_PATH in env |
webhook-deploy.sh |
Example full promote: git pull, builds, write-version-json, verify, restarts |
verify.sh |
curl ingest /health; validates version.json when ER_VERSION_JSON_PATH is set |
systemd/*.service |
Unit files (adjust WorkingDirectory if not /opt/errors.bitreport.pt) |
nginx/*.conf.example |
TLS reverse proxy sketch |
Docker-based path remains in ../../docker-compose.yml and ../../docs/deployment/bitreport-error-reporting-compose-proxmox.md.
Nota: em alguns LXCs o git clone https://git.bitreport.pt/... falha sem credenciais (Gitea não expõe leitura anónima a partir de todas as redes). Alternativas: rsync/CI a partir de um host com clone, ou PAT read-only na URL (guardar fora do git).