Troubleshooting

Start with the checks below. They show most problems in a few minutes. Then find the problem in the list, or follow the case or request through the logs.

When an alert fires, its section in the alert runbook says what it means and what to do.

First checks

  1. Are the services running? Admin > Settings > System info lists each worker and scheduler, when it was last heard from, whether its last pass failed, and its version. On Kubernetes, kubectl get pods shows them too. Each service answers /healthz (alive) and /readyz (ready for work, which needs the database).

  2. Are the settings sound? Run fa config check with the instance settings. It names every problem, including secrets that are named but missing, without showing their values.

  3. Is work moving? Admin > Settings > Queues shows open tasks, steps waiting to run and steps that failed. A failed step can be tried again there.

  4. Did something change? Most problems follow a change: a new release, an upgrade, new settings, a changed secret or certificate, or a change in a system FlowAssembly calls. Build > Releases shows what was deployed and when.

Finding out what happened

  • To a case. Every log line about a case carries its case_id, in every service. Search the logs for it. The case’s history, on its page, says in plain words who did what and when.

  • To a request. Every log line carries trace_id. With tracing on, the trace shows each step of the request, the background steps it led to, and the calls to other systems. For a slow step, add finer spans for a while (tracing.detail; see the runbook’s FlowAssemblyWebSlow section).

  • What each log event means. What FlowAssembly reports lists every event and metric, with what it says and when to act.

Common problems

What people see

Where to look

What usually fixes it

Nobody can sign in with their directory account

Admin > Users > Authentication sources: Check the source with someone’s username. signin.refused events give the reason.

The directory’s address, certificate or service account password changed. For Active Directory in a forest of several domains, use a global catalog (port 3269).

One person cannot sign in

The signin.refused event’s reason: locked, disabled, password expired, or not in a group the access policy grants.

Their directory account, or the access policy. The person is only told the sign-in failed.

Someone cannot see a page, a project or a task

Their roles: fa access show <username> --policy access.yaml. A warning at the top of their pages means a separation rule withheld something.

Give the role they need, or decide which of two roles kept apart they should hold.

Notice emails do not arrive

Admin > Email > Delivery log, and notice.email_failed events.

The mail server’s address, port, TLS or password. A person may also have turned notice emails off, or be out of office.

A task or case is stuck

The case page: what it is waiting for. Admin > Settings > Queues: failed steps. Supervision, for tasks no one has taken.

Fix the other system, then try the step again. Pass a task to someone who is in.

A call to another system fails

job.retrying and job.dead_lettered events, and the trace of the call.

The connection’s address, certificate or credentials for this environment (connectors.yaml and the secrets).

Files are refused when people add them

file.refused events.

The virus scanner is not answering (see the FlowAssemblyFilesNotChecked alert), or the file is too large or of a kind the form does not take.

A deployment is refused

The refusal names the reason: no approval, an approver the directory no longer allows, a signature from a key the trust does not hold, or failed smoke tests.

Approve the release again, ask an approver who may still approve, or change the trust with a signed trust change (fa trust show shows what is held).

Pages are slow

The FlowAssemblyWebSlow alert section, and the slow requests’ traces.

More web replicas, a larger database, or the slow step the trace shows.

A service will not start

Its first log lines: config.loaded, then any error.

The settings (fa config check), the database address and password, or a migration that failed (its error is in the log).

Something is wrong after an upgrade

Upgrading FlowAssembly.

Go back to the previous images; the database does not need restoring.

Asking for help

Send whoever supports your instance:

  • what people saw, when, and for which case or task (its id from the address bar);

  • the version (Admin > Settings > System info, or fa --version);

  • the log lines for that case or trace id, from each service;

  • the output of fa config check.

Never send the secrets file, passwords or tokens. None of the above contains them: FlowAssembly does not write secrets or the values people enter into its logs.