Troubleshooting
Find the message or symptom you see in Mainworthy and follow the steps in that section.
The gate #
The gate tells you whether a commit, change, or run has enough test evidence.
The gate says pending #
The gate is waiting for evidence or an updated decision. Check for these causes.
- Nobody has reported results for the commit yet.
mainworthy gateprintspending: nothing a gate counts has been reported for this commit. - Mainworthy is still applying a report you uploaded. Run
mainworthy gate --wait 60to wait for it. - Only an agent reported the commit. Mainworthy shows the agent's report and asks questions about it. The agent's report alone never gives a commit a gate.
- A planned run is missing a required job's report or a result for a slot.
- Every result the gate counts is skipped or blocked, so the report provides no test evidence. An empty report also stays pending unless the policy accepts an explicit declaration that no tests were required.
- A decision expired. The gate stays pending until the server reopens the question and computes the verdict again.
The gate says blocked #
A failure has no explanation yet, or two results for the same thing disagree. To resolve the question, follow these steps.
- Open the queue with g q.
- Answer the question.
When you answer, Mainworthy computes the verdict again using the results it already has. See decide in the queue.
The gate says failed #
A decision classified the failure as a defect, a wrong test, or an intentional change in behaviour. Read the decision to see what the commit needs. To get a passing gate, report a build that passes.
A test failed and no question appeared #
An earlier decision about the same cause may still apply. To check it, follow these steps.
- Look at the decided questions in the queue to find who answered the failure question.
- If the answer no longer applies, withdraw it.
If the change has ended, Mainworthy records later reports. It asks about their failures only if an open planned run needs an answer. Open the change in Changes to inspect the results its gate counted. See report results and changes and the gate.
A result did not fill a slot in my planned run #
Check whether the result meets these requirements.
- If the run accepts only its own results, the result names the run. Otherwise, the result matches the run's accepted commit, build, and environment.
- The result identifies the slot's case and meets the run's basis requirement. Depending on the run, that requirement is an exact version, an assumed version, or the same case content.
- The result's method is one the run accepts.
- For a result from a person or an agent, the case allows that method.
- For a result from an automated test, the test has a link to the case or names the case.
See planned runs.
Commands #
A command that cannot run prints its error code and message to standard error and exits with 4. The sections below explain those messages. Commands that complete can use other exit codes for their results. mainworthy gate exits 1, 2 or 3 for a verdict that did not pass. mainworthy check and mainworthy health exit 1 when their checks fail.
connection: cannot connect to ... #
No server answers at that address. Start one with mainworthy serve, or point the command at the right one with --url or MAINWORTHY_URL.
connection: the server answered ... to /health #
The server or its proxy answered the health probe, so the command prints the HTTP status. For a redirect,
use the HTTPS destination in --url or MAINWORTHY_URL. A 5xx response or invalid JSON can mean the proxy
is waiting for a deployment. Check the instance. Once the instance serves /health again, retry the command. After a failed health probe, the CLI stops before sending a token or an operation.
limited: too many attempts #
Anonymous provider sign-in starts have a separate allowance of 300 per public IPv4 address or IPv6 /56 per minute. If you reach that start limit, wait the number of seconds in Retry-After before starting again. Retrying does
not increase or extend the wait. These retries do not count as failed attempts. You can still finish a pending
sign-in with a valid response from the provider or open an invitation that still works.
The instance stores up to 10,000 pending provider requests in total, including sign-ins, invitation acceptances, identity links, and proofs. Each sign-in counts against its address or IPv6 /56. An acceptance counts against the invitation, and a link or proof counts against the person. Sign-ins from unknown or private addresses share one source. An invitation or a person can have at most three pending records.
Before checking capacity, the server removes any records past their stored deadlines and applies the limit for the source of the new request. If the store is still full, the server makes room for the request. It picks a source with the most stored records and removes that source's record with the earliest stored deadline. Some records may be too old to complete even before their stored deadline.
For token authentication, five wrong tokens from one address or five with the same prefix within 15 minutes trigger a wait. Wait for the time the message names, then try the right token. Each further wrong attempt doubles the wait, up to 15 minutes.
A valid token the server generated still works if you share an address with someone making wrong attempts. A new token supplied through MAINWORTHY_OWNER_TOKEN counts as chosen and must wait. Copying an existing server-generated token into that variable preserves its exemption.
Sign-in through the identity provider can return the same message. Mainworthy counts refused provider responses, wrong invitation codes, and wrong tokens against the address they came from. Wait for the time the message names, then sign in again. Mainworthy keeps no request log. The proxy's log may show where the failed attempts come from.
In the web UI, the sign-in page, an invitation, and "Your sign-in" in Settings keep what you typed. These forms display "Too many attempts. Try again in N seconds." under the attempted action. The page does not resend what you typed. Press the button after the wait.
If everybody behind one proxy gets this message together for failed credentials, the server may be counting the proxy as one address.
Configure MAINWORTHY_TRUSTED_PROXY and MAINWORTHY_CLIENT_ADDRESS_HEADER as described in configuration.
There is no instance-wide start allowance. Sources sharing a public address or /56 still share its own allowance.
unauthenticated: a token is required #
The server is in server mode, or the token is wrong or was revoked. Pass a token with --token or MAINWORTHY_TOKEN. See people, agents and pipelines.
forbidden: propose needs the produce capability on scratch #
The token identifies an actor whose grant on scratch lacks
produce. That capability lets you write and edit cases, report results, review, and send answers. It includes
record. A project admin holds admin on that project. An instance admin holds admin across all projects.
To change the grant, ask an admin who holds admin across the organisation's projects.
A pipeline's token can use record to submit results and attachments, mark changes as ended, and announce
deployments. The token can also read the gate. That admin can give the pipeline read to see cases, results,
questions, and the gate. A pipeline can never edit cases, answer questions, start planned runs, or administer
a project, regardless of its grants.
not_found: no project named scratch, or no grant on it #
The project does not exist, or the token's actor holds no grant on it. The server returns the same message in both cases, so a token cannot reveal which projects an instance has. To resolve the error, follow these steps.
- Check the project key.
- Ask an admin who holds
adminacross the organisation's projects for a grant withmainworthy actor grant.
conflict #
If you edited an older version of the case, follow these steps.
- Read the case again.
- Make the edit on the current version.
Mainworthy saves no case edit when this happens. In the web UI, the case shows your text alongside what changed since the version you edited. To open the current version in the editor, choose Redo on version N.
the request body is larger than 64 MB #
One report may be at most 64 MB. Split the results into several mainworthy report calls.
Signing in #
The page sends me back to sign in #
By default, a browser's session ends after 14 days without use or 90 days in total. The operator can change those lifetimes. Revoking a token or unlinking an identity ends the sessions created with that token or identity. Sign in again through the identity provider or with a working token.
Another tab may have signed in as someone else. Mainworthy refuses requests from the earlier tab instead of recording your text under their name. Sign in again as yourself to recover your drafts.
"This invitation does not work any more" #
An invitation link works once, until its expiry time. A new invitation for the same person replaces the previous one. The page gives the same message for a used, revoked, expired or incomplete link. Ask whoever sent it for a new one. An admin makes it in Settings, People, or with mainworthy invite new.
"This address holds no invitation" means the page was opened or reloaded without the part after the #. The page takes the code out of the address bar when it reads it. Open the link you were given again.
I cannot sign in at the identity provider #
Mainworthy keeps no password, so it has nothing to reset. Recover your account at the provider, as its own help says. If that account is gone, or you want to sign in with another one, ask the owner for a recovery link; only the owner makes one, an admin's own included. See a lost identity.
"That did not sign you in" after the provider #
Mainworthy could not finish signing you in. Start again from the sign-in page. If you have an invitation, accept it with the account you want to use. If your provider account is not linked, sign in another way and link it in Settings under Your sign-in, or ask an organisation admin for an invitation. If the instance changed providers, ask for a recovery link. Identities linked at the old provider no longer work.
"Confirm it is you" keeps asking #
A change to your sign-in, a new token, an invitation, granting admin and importing an archive need proof from
the last ten minutes in this browser. Choose Confirm with followed by the provider's name. When the provider prompts you, sign in. A session opened with a token proves by signing in with the token again. See
confirm it is you.
The token is not accepted behind a proxy #
A browser's requests must come from the same address the server sees itself at. A proxy that ends TLS must send X-Forwarded-Proto: https. Without that header, an HTTPS page looks like another site, and the server refuses the sign-in. See configuration.
The owner token was never shown #
In server mode, if the owner has no working token and no owner token is configured, the server prints a generated owner token at startup. This happens on the first start and the start after an import.
If you lost the owner's token, follow these steps.
- Set
MAINWORTHY_OWNER_TOKENto a new value. - Restart the server. See configuration.
Revoke refuses the owner's token #
Server mode refuses to revoke the owner's last working token so the owner can still repair the instance. If you are the owner, follow these steps.
- Create another token with
mainworthy token new --human <owner>. - Revoke the old token.
The web UI #
"The server answered something this page cannot read; reload." #
The reply does not match the operation's expected data. Reload the page to load the current web app, then try again. If the message persists, ask the operator to check the server. After an action that writes data, check whether it took effect before repeating it.
On a run page, an unreadable or lost report reply leaves the outcome unknown until the page checks the original command. If that check also fails, keep the run page open. Press a result key on the affected slot to check the same request again. That press resolves the earlier result before you can record another one. If the server refuses the resent report, the page shows the refusal and keeps the note. The next result key can send a new result.
"Could not read who you are signed in as" #
The page cannot open a screen until it knows who you are. If the server returns an error, the page shows "The server could not answer" and the server's message. If nothing comes back, the page shows "No reply came from the server". The server may be down or the network connection may be off.
Mainworthy keeps your local drafts, queue answers, and run notes. Once the server answers again, press Retry. If an individual screen cannot read its data, it shows the same message and offers its own Retry.
"Live updates stopped. Reconnecting…" #
The page lost the stream that brings other people's changes. It tries again every second and says "Live updates reconnected." once the stream is back. The page then reads the latest data. If the session cannot be read either, the line says whether the server could not answer or no reply came. Your own writes do not wait for the stream.
A list is loading while reports or edits arrive #
Suite keeps loading the remaining cases while changes arrive. The web app lets a page or refresh finish before reading the list again. The web app combines changes that arrive during that read into one refresh. The newest changes can appear after the current load finishes. Queue and Runs use the same behaviour.
Your own saved edits, tags and moves appear in an already loaded list without waiting for that refresh. A reply from before your change cannot replace that update. If you save before the list has loaded any items, the app lets the first read finish. The app then refreshes the list for the saved change.
A key does nothing #
While you type in a field, only ⌘ combinations and Esc work as shortcuts. Press Esc to leave the case editor, the filter or a run's note. In Settings, click outside the field. Press ? to see the keys that work on the current screen. The full list is on the keyboard page.
What I typed is not a version yet #
A draft stays on your device as you type. It becomes a version when you leave the case, press ⌘ ↵, or pause for 30 seconds. See write cases.