Troubleshooting OpenBao startup with bao operator diagnose

bao operator diagnose checks an OpenBao configuration, storage, listeners and seals before or after a failed start. This page explains what each check tests, how to read its output, and which warnings to verify before acting.

On this page

Using bao operator diagnose to find why OpenBao will not start

Run bao operator diagnose when an OpenBao node fails to start or comes up in a degraded state, and you need to know whether the fault lies in configuration, storage, a listener or a seal. The command checks the server configuration and the dependencies it relies on, and it can run before a start attempt or after a failed one. Because the checks can change between releases, confirm the exact list against the OpenBao version you run before you rely on a clean result. Start here when the server log is ambiguous or when several symptoms point in different directions. A pass shows that the checked items look correct, not that the node will stay healthy under load.

Run the command with the same configuration file the server uses, on the host where the node runs. Diagnose then reads the storage stanza, listener addresses and seal settings that the server would read, and it reflects the network view of that machine. A different file, or a run from a workstation, tests a different setup and can produce findings that do not match the failure. For storage, compare your backend settings with the OpenBao storage backends documentation so you know which dependency the check should reach. Keep the output with the incident record so the team can compare it after the fix.

A warning on a node that is already running needs a different reading. Some checks are written with a startup state in mind, so a healthy active node can report a finding that does not indicate an outage. Before you change anything, compare the warning with the node's status output, its logs and the role it holds in the cluster. Rerun the check on the active node and on a standby to see whether the finding follows the node or the cluster. If the same warning appears on every node after an upgrade, record the version and raise it with the OpenBao project or your support provider. Write down which check fired, because that detail is what the next reader will need.

Which diagnose mode fits each failure situation

This table compares running diagnose before a start attempt, after a failed start and against a running server, then shows how the storage backend changes which checks matter. Read each row for the question you are answering, the input the command needs and the way its output can mislead you. Confirm flags and check names with the help output of your installed build before you rely on a result.

SituationWhat you are trying to learnInput the command needsMain risk of misreading
Before a start attemptWhether the configuration parses and listener, storage and seal settings agree with each otherThe server configuration file, passed with the config flagA clean result does not prove the server will start against live storage and network state
After a failed startWhich subsystem failed first, such as storage access, listener binding or seal setupThe same configuration file the failed server used, plus any environment overridesTreating the first failure as the root cause when a later check is the actual blocker
Against a running serverWhether live storage, listeners and seal status look healthy from the server's sideServer address and a token with the rights the check needs, if your build requires oneActing on a warning from a running server without comparing it with health endpoints and logs
Raft (integrated storage)Data directory permissions, node configuration and cluster membership checks matter mostData directory path and the node's storage stanzaReading a passing local check as proof that the cluster has quorum and a healthy leader
PostgreSQL storageConnection, table access and HA lock checks matter mostConnection settings or the environment variable that holds themReading a passing connection check as proof that lock handling and failover will work
PebbleDB or in-memory storageLocal data directory checks apply to PebbleDB, while in-memory storage has no durable data to checkStorage stanza from the configuration fileExpecting diagnose to confirm durability, since in-memory storage keeps nothing across restarts
Seal checksWhether an auto-unseal or static seal can reach its key sourceSeal stanza and network or credential access to the key sourceMistaking a seal warning for a storage fault, or the reverse, and changing the wrong setting

Running diagnose safely on a node that will not start

This sequence gives the team a repeatable way to capture the node's state, run bao operator diagnose against the same configuration the service uses, and clear failures in order without changing more than one thing at a time.

  1. Capture configuration and logs before changing anything

    The on-call engineer copies the active configuration file, the service unit or environment file, and the most recent startup logs into a dated folder outside the live configuration path. Secrets such as unseal material, tokens and storage credentials should be redacted in the copy but kept available to the team that owns them. The step is done when the team can point to the exact file and log lines the node failed with, and nothing on the running host has been edited.

  2. Confirm the installed OpenBao version

    Run the binary's version command on the failing node and compare the output with the release notes on the OpenBao releases page. Record the version, the install path and whether another copy of the binary is on the search path. Version-specific checks in this sequence depend on this answer, so the team should not assume the version from the package name or the container tag. The step is done when the version is written in the incident notes and matches the release the team intends to run.

  3. Run diagnose with the service's configuration file

    Run bao operator diagnose with the same -config path and the same environment variables the service unit uses, so the check reads the settings the daemon will read. Running it with a simplified or hand-written file can produce results that do not reflect the failing start. Capture the full output to a file. The step is done when the command has produced a complete report, including any checks it could not run, and the team has noted which configuration path it used.

  4. Review configuration failures first

    Work through failures in the order the report lists them, starting with configuration. Confirm that disable_mlock is not present in the configuration, because OpenBao stopped using mlock in 2.0.0 and the setting must be removed on that version or later. If the cluster was bootstrapped on Vault before 1.3, check the migration guide for the rekey requirement before continuing. The step is done when no configuration item is reported and the team has a short list of any remaining parameter errors.

  5. Check storage and seal settings against the original build

    Compare the storage stanza (integrated storage path or PostgreSQL connection settings) and the seal stanza with the values recorded when the cluster was first built. A changed storage path, a different database host, or a seal type that no longer matches the existing seal configuration can prevent the node from opening its data. Confirm these values with the people who built the cluster and the deployment records, not from memory. The step is done when each storage and seal value matches the record, or the team has documented the intended change and its approval.

  6. Review listener and remaining failures, one at a time

    Check the listener stanza next, including the address, TLS certificate and key paths, and whether the port is already bound by another process. Then address any remaining failures from the report. Change one item, save the change in version control or a copy, and rerun diagnose to confirm that the item cleared and that no new failure appeared. The step is done when the report shows the intended item resolved and the team can name the single change that made the difference.

  7. Retry the start and confirm a healthy node

    Start the service with its normal service manager, not a manual foreground process, and read the startup log from the first line. Confirm that the node reports an unsealed state through the status command and that it joins the cluster as expected for its role. If the start fails again, return to the diagnose output and the captured logs rather than making a new set of changes. The step is done when the node is unsealed, the log shows no startup errors, and the incident notes record the version, the change made and the final diagnose result.

Reading warnings that appear on a healthy running server

Some bao operator diagnose warnings describe a state that a running server never enters, or read inputs that are not in effect. Check each warning against live status and logs before you edit configuration or restart a node. The cards below cover the patterns that most often flag a healthy server.

Checks written for a stopped server

Some checks assume the server is down, so they report a conflict when the listener is already bound by the running process. Confirm the process owns the port with ss -ltnp and compare it with the listener address in the configuration. Then run bao status against that address. If the server answers and reports its state, the warning is a false positive for a running node. Escalate if the listener is not answering, or if another process holds the port.

Checks run from a standby node

On an HA cluster, a standby forwards or redirects requests to the active node, so checks that expect active-only behavior can warn when run from a standby. Run bao status on the node you diagnosed and note whether it reports as active or standby. For Raft, list peers to confirm that a leader is elected. Escalate if no active node exists, because the cluster cannot serve requests.

HA concepts

Configuration on disk, not in effect

The diagnose run reads the configuration file on disk, but the running process may have started with an older version. Compare the file's modification time with the process start time, and check the startup log for the settings the server loaded. A warning about a setting you have just changed usually means a restart is pending. Escalate if the difference affects TLS, seal or storage settings, since those can change how the node behaves.

Seal checks outside the server's network

Seal checks may try to reach a cloud KMS, HSM or another seal provider from the operator's workstation, which may lack the route or credentials the server uses. Run the diagnosis from the node itself, using the same configuration path and environment. Then compare the seal type in bao status with the one in configuration. Escalate if the server reports sealed, or if its logs show seal provider errors.

Storage checks from a different network path

Storage checks open their own connection to the backend, so they can fail when the operator's host cannot reach the storage network, even though the server is healthy. Run the check on the server host, where the storage endpoints resolve the way the server expects. Review the storage documentation for the backend you use before you act on a connectivity warning. Escalate if the server logs show repeated storage errors or lock contention.

Storage backends

Questions teams ask before troubleshooting OpenBao startup

Can our own team troubleshoot an OpenBao startup failure in house?

Often yes, if someone on the team has Linux service operations experience, can read the server logs and knows how the cluster was built. The harder part is context. The investigator needs to know the storage backend, the seal type, where unseal or recovery material is held, and what changed before the failure. Teams that have a current runbook and a person who set up the cluster usually move faster. Teams without either tend to spend most of their time reconstructing the environment before they can read the diagnostic output. Outside help is worth considering when the cluster holds production secrets, nobody on staff has investigated a seal or storage problem before, or the failure followed an upgrade. Confirm the diagnostic behavior for your exact version in the OpenBao releases notes before you rely on it.

What drives the effort of an OpenBao startup investigation?

The main drivers are the number of nodes, the storage backend, the seal configuration and whether the failure is reproducible. A single node with a clear error in its logs is a short investigation. A multi-node cluster where each node fails differently, or where storage and seal problems overlap, takes longer because each layer must be checked in turn. Effort also rises when configuration has drifted between nodes, when logs were rotated or lost, or when the cause may be a product defect that needs a version-specific answer. Investigation work is usually a one-time cost for the incident, while preventive checks, documentation and retesting recur. Ask any provider to split the quote into investigation, fix, verification and handover so you can see which part depends on what you find.

What does an OpenBao startup investigation need from our team?

The investigation needs four things. First, access to the affected hosts with a账户 or service account that can read configuration files, service logs and the process environment. Second, the exact OpenBao version, the configuration files for every node, and the change record for the period before the failure. Third, a named contact who can approve restarts and can answer questions about how the cluster was bootstrapped. Fourth, a change window, because a diagnostic run may need the server stopped or restarted, and fixes almost always do. Unseal and recovery material should be handled under your own custody rules, and the investigator should only see what the task requires. Agree on these items in writing before work starts so the first day is not spent waiting for access.

Does bao operator diagnose change data on our OpenBao cluster?

Treat it as a change-sensitive action until your version's documentation confirms what each check does. The diagnostic reads configuration, checks storage and listeners, and reports seal status, but any check that connects to storage deserves care on a production cluster. Run it against a copy of the configuration where you can, and record the output before making any change. Do not edit storage directly as part of a diagnosis. Direct storage access belongs to recovery work, which carries its own risks and is covered separately in the recovery topic. If a data store is already damaged, stop and take a backup of the storage files or database before any further attempt. Ask your provider to show you which operations their procedure performs against live data.

How does startup troubleshooting differ across OpenBao storage backends?

The storage backend changes where you look first. With integrated storage (Raft), the investigation focuses on peer membership, quorum and the state of each node's data directory, so a lost majority is a common cause of failed startups. With PostgreSQL, you also check database connectivity, credentials, permissions and the health of the database itself, which means a database team may need to be involved. PebbleDB is a local store, so disk health and file permissions matter most. In-memory storage keeps nothing across restarts, so diagnosis is about configuration and seal setup rather than data. High availability adds active and standby roles, lock handling and advertised addresses, so a standby that starts cleanly can still behave differently from the active node. Read the OpenBao high availability docs for the supported HA backends before you plan the investigation.

When should we bring outside help into an OpenBao startup failure?

Bring in help as soon as the cluster is down and the cause is not clear within your own team's first attempts. Other clear triggers include unclear custody of unseal or recovery material, signs of storage damage, a suspected defect that might need a version change, or a need for evidence that the fix was controlled and documented. DeployOpen supports self-hosted open-source platforms in infrastructure you control, including planning, hardening, backup, upgrades and documentation. Engagements are usually fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and ongoing support is available as a retainer. Ask any provider how they will protect your secrets during the work and what they will leave behind for your team to operate the cluster afterward.

Why does bao operator diagnose report warnings on a running server?

A check can warn on a healthy node when it assumes startup conditions that no longer apply, when it runs against the standby while the warning applies only to the active node, or when a listener or address setting differs from what the check expects. Start by confirming which node produced the warning and whether the server reports itself as healthy through its normal status and health interfaces. Compare the warning with the logs for the same period, and check whether the check is documented for your version. A warning that repeats only after a restart or a configuration change is more likely to be a real mismatch. Record the warning, the version and the node name before you change anything, so you can tell a false positive from a regression later.

Security considerations when sharing diagnose output

Diagnose output and configuration files describe how your OpenBao cluster is built and where its trust material sits. The cards below cover what to strip before sharing, who may read the inputs, how recovery access stays apart from routine checks, and how to record what was done during an incident.

Redact before anything leaves the network

Configuration files for bao operator diagnose can contain storage credentials, seal configuration, token-bearing environment variables and listener certificate paths. Before pasting output into a ticket, chat or vendor case, remove every value that looks like a token, key, password or connection string, and check that the Raft or PostgreSQL connection details are not echoed in error text. Keep an unredacted copy only in the secured location your team already uses for configuration.

OpenBao HA docs

Limit who can read configuration

A server configuration file tells a reader where storage lives, which listeners accept traffic and which seal is in use. Restrict read access on the file and its directory to the service account and a small operations group, and confirm that backup jobs and log shippers do not copy it to broadly readable locations. Ask your team to confirm the file permissions on every node, since a diagnose run on a misconfigured host can expose the same details.

Protect seal and unseal material

Shamir key shares, auto-unseal credentials and KMS or HSM references are the material that makes a stored cluster readable. Diagnose output should show that a seal is configured and reachable, never the share values or the credentials behind it. Store unseal material separately from configuration, and confirm with your team which people can hold shares at the same time so that no single operator can reconstruct the root key alone.

Keep recovery access separate

Recovery mode gives direct storage access and bypasses many normal controls, so it should not be a shortcut for routine diagnosis. Grant diagnose rights to the operators who triage startups, and grant storage and recovery access only to a named, smaller group that is used for emergencies. Confirm that the recovery procedure and the people allowed to run it are written down before an incident, and that running diagnose alone never requires storage write access.

Record actions taken during an incident

During a failed start, responders often run several diagnose passes, edit configuration, restart nodes and possibly enter recovery mode. Keep a timestamped log of each command, who ran it, the configuration version used and the output shared with whom. This record lets your security team confirm what changed on storage and helps the auditors you work with reconstruct the sequence. Store the log with restricted access, since it may reference sensitive paths.

Review output before reuse

Diagnose results from a broken node can show stale or partial state, and a fix copied from one incident may not fit another cluster. Before reusing a configuration snippet or sharing a finding with a vendor or partner, have a second operator check that secrets are removed and that the change matches the node's version and storage backend. Ask your team to confirm the review step in the incident runbook.

Decision path from failed start to diagnose result

The path starts when an OpenBao node fails to start and the operator runs bao operator diagnose against the same configuration file. The output is sorted into configuration, storage, listener or seal problems, and each branch leads to a fix and a retry of the start. If the retry still fails, the operator escalates or moves to recovery mode, which is a separate procedure with its own risks. Check the configuration branch first, because a wrong storage or listener setting often shows up as a storage or listener finding.

Diagnose output sorts a failed start into four check areas, each with a fix and a retry.

What a DeployOpen troubleshooting engagement includes

A DeployOpen startup investigation begins with a written scope that names the OpenBao cluster, the nodes involved, the failing start or symptom, and what the client needs at the end: a root cause, a fix, or a runbook. Scope is agreed before any work touches the environment. It also records who holds the access needed: shell access to each node, the configuration files, service unit definitions, and the logs from the failed start. The investigation runs inside your infrastructure, so no client data leaves your environment. Ask for the scope document to state which nodes and storage backend are covered, and whether the work includes a live server or only a stopped one.

Next comes a review of the configuration and logs. The engineer reads the server configuration file, checks the storage stanza (integrated storage, PostgreSQL, PebbleDB or in-memory, as documented in the OpenBao storage docs), the listener and TLS settings, and the seal configuration, then matches them against the journal or container logs from the failed start. Where the server is still running, the team compares the bao operator diagnose output with what the logs show. Expect the review to flag any warning that is a known false positive on a running server, so the findings separate real faults from noise. Confirm with the team which of your nodes run the same configuration so that drift between them is checked too.

The engagement ends with written findings, each tied to the check that produced it, followed by the fix, the exact commands used to verify it, and a short runbook for the on-call team. A retest after the fix confirms that bao operator diagnose and the server start cleanly on every node. Ask what the handover includes: the runbook steps, any configuration changes made under change control, and the list of checks your team should repeat after future upgrades. Quotes follow from the written scope, so confirm in advance which of these items are included and which need separate agreement.

How DeployOpen scopes and supports OpenBao operations

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including OpenBao clusters running in your cloud accounts, data centers or air-gapped networks. For a diagnose-driven recovery or a startup review, that means the work stays on your hosts, against your configuration files, storage backend and seal setup, and the evidence (diagnose output, logs, configuration changes) stays with your team.

Most engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts. For this topic, a useful scope statement names the nodes and storage backend in question, which configuration files and seal type are in play, whether the work covers a failed start, a pre-go-live check or a review of warnings on a running server, and who receives the report. Ask any partner to state in the quote what is excluded, such as storage edits or changes to unseal material, since those carry their own risk and approval steps.

Ongoing support, upgrades and continuous testing are available as retainers, which suits teams that run bao operator diagnose as part of routine checks after each release. Confirm the current OpenBao release line you intend to run against the project's OpenBao releases page before scoping, because check behavior can change between versions. DeployOpen does not issue audit reports or certifications, and it is not an official OpenBao partner or reseller, so any compliance evidence you need from this work should be reviewed with your auditor.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.