OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

Searchable, versioned procedures with prerequisites, verification, concrete output, and rollback.

Guides
243
Favorites
0
243 launch guides · 2601 reviewed steps
17 of 243 guides

Incident Response & Troubleshooting · Security

Fix certificate verify failed and unable to get local issuer certificate

“certificate verify failed” and “unable to get local issuer certificate” are trust-validation failures, not instructions to turn TLS checks off. Compare the actual client, endpoint, served chain, hostname, time and trust store, then repair the demonstrated server or client boundary.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepsUbuntu Server

Incident Response & Troubleshooting · System Administration

Fix Too many open files on Linux: process limits, leaks and systemd

“Too many open files” can mean a process hit its descriptor limit, the host exhausted its file table, or a library reported another resource problem. Identify the failing PID and errno, compare live limits with descriptor use, and repair the correct launch boundary without hiding a leak behind unlimited settings.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepsUbuntu Server

Web & Proxy · Incident Response & Troubleshooting · Security

Fix NGINX 403 Forbidden: permissions, index rules, access policy and upstreams

NGINX 403 Forbidden is a response, not a diagnosis. Identify which layer refused the request, then distinguish location selection, missing directory indexes, filesystem traversal, mandatory access policy, authorization and upstream responses.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate7 stepsNGINX

Containers & Kubernetes · Observability & Monitoring · Incident Response & Troubleshooting

Fix Kubernetes Metrics API not available: APIService, TLS and metrics-server

Trace Metrics API not available from kubectl top through API aggregation, Service endpoints, metrics-server and kubelet access. Repair the failing layer without disabling TLS verification or replacing a managed add-on blindly.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepskubectl client

Databases & Data · Incident Response & Troubleshooting

Fix PostgreSQL relation does not exist: database, schema and search_path

Trace PostgreSQL SQLSTATE 42P01 from the failing application connection to the exact database, schema and identifier. Distinguish missing migrations from name-resolution and privilege problems, then prove a narrow correction without creating a guessed table or exposing application data.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate7 stepsPostgreSQL

Software Engineering · Incident Response & Troubleshooting

Fix Git cannot lock ref and empty object file errors

Separate a busy Git writer, a stale lock, a conflicting branch name and damaged object storage before attempting a repair. Work through concrete evidence, preserve unpublished work, and verify a separate replacement checkout without deleting the original repository.
Save to collectionCreate a collection in the sidebar first.
caution50 minintermediate8 stepsGit

Containers & Kubernetes · Incident Response & Troubleshooting

Fix Docker container name is already in use safely

Resolve Docker container name is already in use conflicts by identifying the existing container and owner, preserving writable and mounted data, and choosing restart, rename, scoped removal, or corrected Compose project naming without deleting the wrong workload.
Save to collectionCreate a collection in the sidebar first.
danger30 minintermediate12 stepsDocker Engine

Containers & Kubernetes · Incident Response & Troubleshooting

Fix Docker failed to resolve reference and manifest unknown

Diagnose Docker failed to resolve reference and manifest unknown errors by proving the exact image name, registry path, authentication boundary, tag or digest, daemon network path, and target platform before retrying a pull or deployment.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate12 stepsDocker Engine

Incident Response & Troubleshooting · Services & Applications · System Administration

Diagnose Windows service Error 1053, Error 1067, and Error 1069

Windows service Error 1053 means the service did not answer the Service Control Manager in time, Error 1067 means the service process terminated unexpectedly, and Error 1069 means Windows could not log on with the configured service identity. This guide separates those failure paths, preserves event and configuration evidence, and applies the smallest reversible repair.
Save to collectionCreate a collection in the sidebar first.
caution55 minintermediate11 stepsWindows Server

Databases & Data · Identity & Access · Incident Response & Troubleshooting

Fix PostgreSQL permission denied for schema public or table

Diagnose and repair PostgreSQL permission errors without granting broad roles or changing object ownership. This guide separates database connection, schema USAGE and CREATE, table privileges, sequence access, role inheritance, default privileges, and row-level security so an application receives only the rights it actually needs.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate10 stepsPostgreSQL

DevOps & CI/CD · Identity & Access · Incident Response & Troubleshooting · Security

Fix Ansible Missing sudo password and Host key verification failed

Ansible Missing sudo password and Host key verification failed are separate trust-boundary failures that can appear in the same run. Host key verification happens before remote login and protects the server identity; SSH authentication proves the automation identity; become authentication authorizes privilege escalation after login. This Guide separates those layers, starts with read-only evidence, verifies changed host keys out of band, and restores interactive or noninteractive become without disabling security controls.
Save to collectionCreate a collection in the sidebar first.
caution60 minintermediate12 stepsAnsible control node

Cloud & Infrastructure · DevOps & CI/CD · Incident Response & Troubleshooting

Fix Terraform Error: Provider configuration not present safely

Terraform Error: Provider configuration not present means state still associates one or more managed resource instances with a provider configuration address that the current root module can no longer supply. The missing object may be a deleted child-module provider block, a removed alias, an absent module call, or a changed provider source. Repair the execution context before planning any infrastructure change.
Save to collectionCreate a collection in the sidebar first.
danger75 minadvanced11 stepsTerraform CLI

Cloud & Infrastructure · DevOps & CI/CD · Incident Response & Troubleshooting

Recover safely from Terraform Error acquiring the state lock

Terraform Error acquiring the state lock means the configured backend refused a potentially state-writing operation because another lock exists or the lock service is unavailable. The safe response is to identify the exact backend, workspace, lock owner, and active run before considering force-unlock.
Save to collectionCreate a collection in the sidebar first.
danger50 minadvanced11 stepsTerraform CLI

DevOps & CI/CD · Security

Fix npm UNABLE_TO_GET_ISSUER_CERT_LOCALLY and SELF_SIGNED_CERT_IN_CHAIN safely

npm reports UNABLE_TO_GET_ISSUER_CERT_LOCALLY or SELF_SIGNED_CERT_IN_CHAIN when Node.js cannot build a trusted certificate path for the configured registry or an HTTPS-intercepting proxy. This guide restores an explicit trust chain without disabling TLS verification.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate10 stepsNode.js

Packages & Updates · Incident Response & Troubleshooting · System Administration

Fix Sub-process /usr/bin/dpkg returned an error code (1) safely

Sub-process /usr/bin/dpkg returned an error code (1) is a final summary, not the root cause. The decisive message normally appears earlier in the transaction. This guide preserves that first failure, checks package-manager ownership, locks, disk and filesystem health, audits dpkg state, then completes configuration or performs a targeted rollback without deleting lock files or forcing unrelated removals.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate9 stepsUbuntu Server

Packages & Updates · Software Engineering

Fix error: externally-managed-environment on Ubuntu safely

The error: externally-managed-environment means pip has refused to modify an Ubuntu-managed Python installation. This guide shows how to identify the interpreter you are using, preserve operating-system package ownership, and choose the correct safe route: apt for Ubuntu packages, a project virtual environment for libraries, pipx for command-line applications, or an isolated container for disposable work.
Save to collectionCreate a collection in the sidebar first.
caution25 minbeginner8 stepsUbuntu

AI/ML · Services & Applications · Software Engineering

Build a production Telegram webhook assistant

Build a Telegram Bot API assistant with an HTTPS webhook and secret-token header, durable `update_id` idempotency, per-chat state, bounded attachment retrieval through `getFile`, input and output moderation, per-chat abuse controls, `retry_after` handling, throttled message edits, encrypted queued text, human-approved consequential actions, and zero-downtime deployment.
Save to collectionCreate a collection in the sidebar first.
caution290 minadvanced14 stepsNode.js