Troubleshooting
Start with opslens doctor. It checks opslens, the catalogs, Flowpipe, Steampipe and each plugin, and says how to fix what is missing.
Install and setup
opslens: command not found after installing. The installer puts it in ~/.local/bin. Add that to your PATH:
export PATH="$HOME/.local/bin:$PATH", then open a new shell.
The installer says not to run as root. Steampipe refuses to run as root. Run it as your normal user. It never needs sudo.
steampipe or flowpipe is missing. Re-run the installer, or install them yourself and rerun opslens doctor. OPSLENS_SKIP_ENGINES=1 means you manage them.
A plugin is missing or the wrong version. steampipe plugin install aws@1.35.0 (or the one doctor names). opslens catalog verify compares your installed plugins with the catalog.
Queries
Exit code 3: "refused". The safety guard said no. The message says why: more than one statement, not a SELECT, a table that is not in the catalog (check the spelling with opslens find tables ...), or a blocked function.
SELECT * is refused in a spec (sql-star). List the columns you need. It is what lets every {placeholder} be checked against a real column.
A query times out or returns too few rows. Steampipe tables call APIs. Filter on the columns the table marks as fast or required (opslens describe table <name>), and raise steampipe.statement_timeout_s or steampipe.max_rows if you must.
Live queries fail but demo works. Steampipe isn't running or a plugin has no credentials. opslens doctor, then check the plugin's own credential setup.
Specs and validation
placeholder: {x} is not a column. Your query doesn't return x. Add it to the SELECT, or use a variable ({var.name}).
ungated-write. An action that changes things needs gated: true (in the builder the approval switch is locked on for these).
arg-missing. The pipeline has a required parameter you haven't set; the message names it. opslens describe pipeline <name> lists them.
validate says a generated file differs from spec.yaml. Someone edited generated code by hand. Change spec.yaml and re-render instead; opslens render --force regenerates.
Deploy and run
Deploy refuses: "spec hash does not match". The spec changed after you reviewed it. Read it again and pass the new hash from opslens deploy (without --approve).
The schedule never fires. Schedules ship switched off. Deploy with --enable-schedule.
A run is "waiting". It reached the approval step. Open the approval link that opslens run printed, use opslens approve, or click Approve in My automations.
A run fails creating a ticket or message. The connection for that service isn't configured in Flowpipe (or its credentials are wrong). Configure it the Flowpipe way; opslens never stores credentials.
Port already in use. Each deployed mod gets its own Flowpipe port, chosen free. For the web app, opslens serve --port 8078.
The web app
"refusing to bind to a non-loopback address". By design: the local app holds your credentials' reach. Use --mode demo to share a sandbox.
The page says it cannot reach the API. opslens serve isn't running, or you opened a different port. In a container, add --host 0.0.0.0 --allow-host localhost.
Save, Deploy or Draft with AI is missing. You are in demo mode, which is read-only by design. Run opslens serve locally. AI also needs a configured provider.
AI
"no llm provider". Set llm.provider (see AI planner) and the matching key variable.
The draft fails validation three times. The message shows the last errors. Make the request more specific (name the service and the condition), or use a stronger model, or start from a template.
Still stuck
Run opslens doctor and opslens --version, then open an issue with the output and what you expected.