Skip to content

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.

A table names the build each part runs, a row each:

RowWhat it shows
DashboardThe 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
APIThe API’s version and the commit it was built from, and when its image was built
WorkerA 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:

TileWhat it shows
Workers answeringHow 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
DatabaseWhether 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 roleWho 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 modeHow many enabled tenants are in plan mode, of how many

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.

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:

VariableIn .envForBuilt in
Support__EmailSUPPORT_EMAILThe address people write toinfo@contactmesh.ch
Support__UrlSUPPORT_URLThe support site or helpdesk, as an http or https addresshttps://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.

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.

ColumnWhat it shows
LoggedHow long ago, with the time itself behind it
ProcessAPI, or Worker with the end of the worker’s id, as Queue’s Workers tab lists it
LevelWarning, Error or Critical
CategoryWhat logged it: a ContactMesh class, or a part of the framework
MessageThe 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 IDThe 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.

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.

FileHolds
manifest.jsonWhen the bundle was made, the API’s version and commit, and what each file holds
versions.jsonThe 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.jsonThe health summary: database, worker heartbeat, a deployment-wide pause, and plan mode
monitoring.jsonThe monitoring sensor’s status, every channel with the limits it alarms on, and its failures by code
faults.jsonEvery fault ContactMesh finds: code, rank and counts — see What the faults mean
schedule-runs.jsonThe 50 most recent schedule runs: schedule, trigger, status, times, counts, error code and the scrubbed error summary
workers.jsonThe worker registry: each process’s id, host name, process id, version and commit, roles, state and heartbeat
queue.jsonThe work queue, counted by status and by error code
alerts.jsonThe alerts, counted by kind and by code, and how many are acknowledged
convergence.jsonThe 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.jsonThe deployment settings — retention, claims, checks after writes, the pause — and the capacity settings — concurrency, pacing, quiet hours, recipients per hour
tenants.jsonEach 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.jsonEach 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.jsonEvery database migration applied, any this API carries that is not applied, and any the database has that this API does not know
problems.jsonThe 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

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.

  1. 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.
  2. Open it if you like: every file is plain JSON, and nothing in it needs removing first.
  3. Attach the zip to the ticket in your helpdesk, with what you saw and when.