Skip to content
Sixteen Pillars.
  • Framework
    • Blast Radius
    • Full Governance by Sixteen Pillars
    • State of the Estate
  • Capabilities
    • Services
  • Thinking
    • Topics
  • Who
  • Studio
  • Let’s talk

Diagnostics & Troubleshooting

This Fixes: CORS Errors on Your API That Aren’t Actually a CORS Bug

November 9, 2026 by Richard King

“Blocked by CORS policy” is almost always a server that said no, and often a 500 in disguise. Here is the correct FastAPI and Express 5 config, and how to tell CORS from a crash.

Categories Delivery & Build Tags API Authentication & Keys, API Design, Application Security, Diagnostics & Troubleshooting, FastAPI & Web Frameworks, Web Servers & Reverse Proxies

This Fixes: A Sequential Scan on a Table That Should Be Indexed

November 9, 2026 by Richard King

A hot query full-scans a table you are certain is indexed. Read the plan, spot the shape that disqualifies the index, and apply the smallest change that flips a Postgres sequential scan to an index scan.

Categories Architecture, Delivery & Build Tags Diagnostics & Troubleshooting, Indexing & Query Performance, PostgreSQL, Scalability & Performance, Schema Design & Migrations

This fixes: BorgBackup ‘Cache is newer than repository’ and lock errors after an interrupted run

November 6, 2026 by Richard King

A killed Borg run leaves a stale lock and a cache that thinks it has seen the future. Clear both safely, fix the clock-skew cause, and keep every archive.

Categories Delivery & Build Tags Backup & Recovery, Business Continuity, Cron & Scheduled Jobs, Diagnostics & Troubleshooting, Linux Administration, systemd

Managing Python Versions With pyenv Without Breaking Your System Python

November 5, 2026 by Richard King

Install pyenv, build several CPython versions and pin them per project with .python-version, keeping the apt- and Homebrew-managed system Python untouched.

Categories Delivery & Build Tags Dependency Management, Developer Environment, Diagnostics & Troubleshooting, Linux Administration, Python, Shell Scripting

This Fixes: nginx 502 Bad Gateway Between the Proxy and Your Upstream

November 5, 2026 by Richard King

A 502 is nginx telling you it reached your app and got nothing usable back. Here is the exact order I diagnose it in: listening check, socket permissions, SELinux, then timeouts.

Categories Delivery & Build Tags Diagnostics & Troubleshooting, Firewall & Networking, Host Hardening, Linux Administration, Log Management, Web Servers & Reverse Proxies

Structured Validation and ProblemDetails in ASP.NET Core: Consistent 400s Across Controllers

November 2, 2026 by Richard King

One error shape for every ASP.NET Core failure: customise the automatic 400, integrate FluentValidation, and map domain exceptions with IExceptionHandler.

Categories Delivery & Build Tags Diagnostics & Troubleshooting

The State of Software-as-a-Medical-Device Regulation in the EU

November 2, 2026 by Richard King

A practitioner’s survey of the EU digital-health regime: MDR/IVDR Rule 11 classification, the AI Act overlap, EUDAMED registration, EHDS data formats and where device cybersecurity sits.

Categories EU Regulation Tags Conformity Assessment, Diagnostics & Troubleshooting, EU AI Act, European Health Data Space, European Union, Healthcare, MDR & EUDAMED, Supply Chain Security

Why Did My Server Run Out of Disk Overnight? (Journald, Docker Logs and Deleted-but-Open Files)

October 21, 2026 by Richard King

The disk hit 100 percent and nothing obvious changed. A practical walk through diagnosing a full root filesystem with du, ncdu, journald and lsof, and the caps that stop it recurring.

Categories Delivery & Build Tags Diagnostics & Troubleshooting, Kubernetes & Containers, Linux Administration, Log Management, systemd

Why Did terraform destroy Take Out the Wrong Resources

October 20, 2026 by Richard King

A Terraform destroy that hit the wrong resources almost always traces to the wrong workspace, shared state or a for_each key change read as delete-and-recreate. Here is how to diagnose it and stop it.

Categories Delivery & Build Tags Agent Guardrails, API Design, Diagnostics & Troubleshooting, Infrastructure as Code

This Fixes: Slow LIKE and ILIKE Queries With pg_trgm

October 15, 2026 by Richard King

A ‘%term%’ search sequential-scans a million rows because a B-tree cannot help a leading wildcard. A pg_trgm GIN trigram index makes ILIKE and fuzzy search fast.

Categories Architecture Tags Budgeting & Cost Control, Diagnostics & Troubleshooting, PostgreSQL
Older posts
Page1 Page2 … Page6 Next →
Sixteen Pillars
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
Storing your preferences — such as language or display settings — so the site works as you left it. These cookies are set automatically and do not require your consent.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. Some storage is set automatically to keep the site functioning — not based on your choices, but on technical requirements. This includes things like load balancing and session continuity.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}

Sixteen Pillars Technology Control Framework

About the framework Full pillar index



The Sixteen Pillars

  1. Asset & Estate Visibility
  2. Architecture Comprehension
  3. Data Trust & Lineage
  4. Dependency Mapping
  5. Decision Rights & Accountability
  6. Change Governance
  7. Investment & Portfolio Control
  8. Supplier & Third-Party Control
  9. Security Posture
  10. Identity & Access Control
  11. Resilience & Continuity
  12. Operational Capability
  13. Regulatory Adaptability
  14. Scalability & Performance Headroom
  15. Technical Debt & Sustainability
  16. Adaptability & Strategic Optionality

Services

  • All services
  • Fractional CTO
  • Technology Control Assessment
  • Technology Due Diligence
  • First 90 Days
  • Architecture Review
  • Pricing
  • Studio — build & rescue

Regulations

  • All regulations
  • DORA
  • MiCA
  • NIS2
  • EU AI Act
  • DORA ICT Third-Party Risk

Sectors

  • All sectors
  • Financial Services
  • Shipping & Maritime
  • iGaming
  • Digital Assets
  • Legal
  • eCommerce
  • Healthcare & Medical
  • Engineering

Company

  • About
  • Approach
  • Writing
  • Topics
  • Thinking
  • Control Matrix
  • Start a conversation
Cookie Policy Accessibility Statement

© Sixteen Pillars 2012 – 2026. All Rights Reserved.