- Dockerfiles (admin-ui, collector-worker, ingest-api): node:20-bookworm-slim → node:24-bookworm-slim - CI (.gitea/workflows/ci.yml): node-version '20' → '24' in all 3 jobs - package.json engines.node: '>=20' → '>=24.22.1' (admin-ui, api, collector-worker, ingest-api, web) - @types/node: ^20/^22 → ^24 in all packages - api: bcrypt ^5.1.1 → ^6.0.0 (Node 24 prebuilt binary compat) - clients/php/ErrorReporter.php: PHP 8.4+ compat audit (no deprecated patterns) - clients/node/errorReporter.mjs: Node 24+ doc update All tests verified locally: - api: 51/51 passed (vitest) - ingest-api: 40 passed + 14 skipped (vitest) - collector-worker: 12/12 passed (vitest) - admin-ui: lint + typecheck clean - web: lint + typecheck + build clean Paperclip-Agent: Nelson Baptista (urlKey nelson-baptista; id e34f1b0f-62db-487c-8584-f6a47203f7b5) Paperclip-Issue: BIT-31723 Paperclip-Run: 76d06689-1879-421f-ad2c-04f5fe85d21d
errors.bitreport.pt
BitReport central error reporting platform: ingest API, collector worker, admin UI (incidents), MariaDB migrations, and optional admin portal (auth/RBAC) from BIT-183.
Remote: https://git.bitreport.pt/BitReport.pt/errors.bitreport.pt.git
Tracking: Paperclip BIT-247 (migration from OTT/error-reporting/).
Layout
| Path | Role |
|---|---|
ingest-api/ |
Fastify HTTP ingest (BIT-154.x) |
collector-worker/ |
Polls configured sources → ingest API |
admin-ui/ |
Next.js operator UI (incidents) |
database/error_reporting/ |
SQL migrations + dev seed (used by Compose + LXC) |
deploy/lxc/ |
systemd, nginx examples, migrate script (no Docker) |
docker-compose.yml, .env.example |
Local / Proxmox Docker stack |
api/ |
Fastify admin API — sessions, RBAC (BIT-183) |
web/ |
Next.js admin login/UI for api/ |
db/migrations/ |
Admin-user schema (SQL); applied with error_reporting migrations via scripts/docker-migrate.sh |
docs/ |
Permission matrix, deployment runbooks |
Frontend stack (Next.js / React) — BIT-2516
Decision: Option A from the audit — both operator-facing Next apps stay on the same major line (Next 15 + React 19), with pinned versions so web/ and admin-ui/ do not drift.
| Package | admin-ui/ |
web/ |
|---|---|---|
next / eslint-config-next |
15.5.15 |
15.5.15 |
react / react-dom |
19.2.5 |
19.2.5 |
@types/react / @types/react-dom |
19.2.14 / 19.2.3 |
19.2.14 / 19.2.3 |
Node: >=20 for both. There is no shared npm package between the two apps today; alignment is by explicit pins and this table. Revisit when upgrading either app (bump both + run npm run build in each).
Docker Compose (ingest stack)
From the repository root:
cp .env.example .env
docker compose up --build
curl -sf "http://127.0.0.1:${ER_PUBLISH_INGEST_PORT:-3041}/health"
Docs
- Monitoring & observability (hub metrics, SLO runbook, Grafana import, link to company
MONITORING_INDEX):docs/MONITORING.md - Compose + TLS:
docs/deployment/bitreport-error-reporting-compose-proxmox.md - LXC + systemd:
docs/deployment/bitreport-error-reporting-lxc-proxmox.md
Tests (local)
cd ingest-api && npm ci && npm test
cd ../api && npm ci && npm test
Integration tests for ingest (ingest-api/src/integration.twoProjects.test.ts) require a migrated MariaDB and:
export ERROR_REPORTING_TEST_DATABASE_URL='mysql://USER:[email protected]:3306/error_reporting'
cd ingest-api && npm test