Running the service
Help and support
What the Help & support screen shows, the recent problems, what the diagnostics bundle holds and leaves out, and how to send it with a ticket.
Help & support is the last entry in the navigation, with the documentation under it, and every role can open it. It shows what a support request should name, the way into this documentation, who to ask, and — for an Admin — the diagnostics bundle to attach to the ticket and the problems the installation logged recently. The dashboard takes no tickets itself: they go to ContactMesh’s own support, or to the helpdesk your installation names instead.
This installation
Section titled “This installation”A table names the build each part runs, a row each:
| Row | What it shows |
|---|---|
| Dashboard | The build running in this browser tab: the version and commit its image build baked into it. Dev server under the development server. When the server has a newer build, a bar above every page asks you to reload |
| API | The API’s version and the commit it was built from, and when its image was built |
| Worker | A row for each worker answering, named by its host: its version and commit |
The commit is shortened to its first twelve characters, as the image tags shorten it, and the button
beside it copies the whole of it. A row on another build than the API is marked Differs from the API.
The API and its workers are released as a pair, so a worker left on an older image delivers by the
older rules: move its image to the API’s tag. A part that does not know its commit, such as an image
built without scripts/build-images.sh, is compared by its version alone.
Under the table:
| Tile | What it shows |
|---|---|
| Workers answering | How many worker processes answered in the last twenty seconds or are renewing a lease, counted as Queue’s Workers tab counts them, and when the newest heartbeat arrived. Zero is red: nothing is being delivered. Orange while a worker answering runs another build than the API |
| Database | Whether the database schema matches this API: Up to date, migrations still waiting, or Newer than this API when a newer image has migrated it. Under it, the newest migration applied |
| Database role | Who the API logs in to PostgreSQL as: Own role, contactmesh_app, which can read and write ContactMesh’s data and change nothing else, or, marked, Owner or Superuser, as before 1.9.0. Under it, the role’s name. Upgrading says how to move to a role of its own |
| Plan mode | How many enabled tenants are in plan mode, of how many |
Documentation
Section titled “Documentation”Links to the pages somebody asking for help reads first, in the dashboard’s language: what ContactMesh does, what the faults mean, work that stopped, when it is slow, and monitoring. Each opens beside the dashboard. An image built without the documentation says so instead.
Contact support
Section titled “Contact support”Who to ask: an address and a support site. The address is plain text with a copy button beside it, so it can go into any form; Write an email opens it in a mail program, where there is one. The support site opens in a new tab.
Both are built in, as ContactMesh’s own support. An installation that takes its own tickets, such as one that runs ContactMesh under its own name, overrides either in the API’s environment:
| Variable | In .env | For | Built in |
|---|---|---|---|
Support__Email | SUPPORT_EMAIL | The address people write to | info@contactmesh.ch |
Support__Url | SUPPORT_URL | The support site or helpdesk, as an http or https address | https://contactmesh.ch |
The one left unset stays ContactMesh’s own. A value that is not an address, or a link that is not
http or https, refuses the start, and the API’s log names the variable. Settings shows the two
in effect, under Support contact.
Recent problems
Section titled “Recent problems”The warnings and errors the API and the workers logged, newest first: only the Admin role sees the section. It reads the log ContactMesh keeps in its own database, which is there when the log Docker keeps on the host has rolled over, and which holds the worker’s entries as well as the API’s.
| Column | What it shows |
|---|---|
| Logged | How long ago, with the time itself behind it |
| Process | API, or Worker with the end of the worker’s id, as Queue’s Workers tab lists it |
| Level | Warning, Error or Critical |
| Category | What logged it: a ContactMesh class, or a part of the framework |
| Message | The entry as a sentence. Under it, for a failure, the exception’s type and the code it is filed under; the sentence for that code is behind them |
| Trace ID | The request or round it was logged in, with a button that copies it: the correlation ID of that request’s audit entry, and the TraceId of its lines in the log. A dash outside one |
Level narrows the table to one level, and asks the server for it: the table shows the newest 200, and an error behind 200 warnings is still found by choosing Error. The search looks through the rows on screen, their trace IDs included: paste a correlation ID from the audit trail to find what its request left here.
A mail address, user principal name or telephone number never reaches the table: it is replaced before anything is written, and an exception’s own message, where Microsoft Graph repeats a mailbox address, is never kept. Ids stay, because they are how you find what an entry was about. The entries are kept for 14 days, set on Settings under Retention, and never more than the newest 10’000. One kind of entry repeated keeps its first 20 in ten minutes from each process, and a row of its own says how many more there were. Monitoring has the rest of what is logged and where.
The diagnostics bundle
Section titled “The diagnostics bundle”Download diagnostics, in the page’s header, saves a zip of JSON files, named
contactmesh-diagnostics- and the time it was made, in UTC. Only the Admin role may download it; every
other role sees the button refused with the role it needs. Each download is written to the audit trail as
Diagnostics downloaded, with who took it and when.
What it holds
Section titled “What it holds”| File | Holds |
|---|---|
manifest.json | When the bundle was made, the API’s version and commit, and what each file holds |
versions.json | The API’s version, commit, build date, .NET runtime, operating system and start time; the dashboard build the API serves; the versions and commits the answering workers run, and how many run each; the Graph mode, the sign-in mode, whether monitoring is on and needs a key, whether the documentation is built in, whether the installation set its own support contact rather than ContactMesh’s, and the role the API logs in to the database as |
health.json | The health summary: database, worker heartbeat, a deployment-wide pause, and plan mode |
monitoring.json | The monitoring sensor’s status, every channel with the limits it alarms on, and its failures by code |
faults.json | Every fault ContactMesh finds: code, rank and counts — see What the faults mean |
schedule-runs.json | The 50 most recent schedule runs: schedule, trigger, status, times, counts, error code and the scrubbed error summary |
workers.json | The worker registry: each process’s id, host name, process id, version and commit, roles, state and heartbeat |
queue.json | The work queue, counted by status and by error code |
alerts.json | The alerts, counted by kind and by code, and how many are acknowledged |
convergence.json | The cards that keep changing, counted by cause and by field and kind of change, and the cards written more than six times in a day: field keys and kind codes, never a value |
settings.json | The deployment settings — retention, claims, checks after writes, the pause — and the capacity settings — concurrency, pacing, quiet hours, recipients per hour |
tenants.json | Each tenant’s id, whether it is enabled and in plan mode, its credential’s kind and expiry, when the credential last worked or failed and the error code |
source-lists.json | Each source list’s id, its tenant’s id, its kind, whether it is enabled, how its last read went with the error code and the scrubbed summary, and the deletions it holds |
migrations.json | Every database migration applied, any this API carries that is not applied, and any the database has that this API does not know |
problems.json | The recent problems of the last seven days, newest first and at most 1’000, with every kind counted over the whole week: when, which process and worker, the level, the category, the event, the message template and the sentence it makes, an exception’s type and code, and the trace ID |
What it leaves out
Section titled “What it leaves out”No names, mail addresses, user principal names, telephone numbers, mailbox ids or contact contents —
not of recipients, not of contacts, and not of the people who use the dashboard. Tenants, source lists
and folders appear by their id, never by their name, and an alert or a fault by its code, never by its
sentence. The two free-text fields, a schedule run’s error summary and a source list’s, have anything
that looks like an address replaced before they are written: mail addresses, web and network addresses,
file paths, directory ids, telephone numbers, quoted names, and credentials written as a key and a
value. The recent problems’ templates and failure sentences go through the same, and a value of
theirs stays only where it is a number, an id of ContactMesh’s own or a code: any other travels as
[text], and a mailbox id as [id].
No secrets. No client secret, certificate, certificate password, database password, monitoring key or protection key is read to build it; a tenant’s credential appears as its kind and its expiry date and nothing else.
The workers’ host names are in it. In a container that is the id the container was given; a worker run directly on a computer reports that computer’s name.
Sending it
Section titled “Sending it”- Download the bundle on this screen, signed in with the Admin role. It shows the installation at the moment it was made, so take it while the problem can be seen.
- Open it if you like: every file is plain JSON, and nothing in it needs removing first.
- Attach the zip to the ticket in your helpdesk, with what you saw and when.