Run tampermonkey script only on one site

Summary This incident involved a Tampermonkey userscript that was intended to run only on YouTube, but instead executed on every website. The root cause was an incorrect or overly broad @match pattern that unintentionally matched all domains. Root Cause The issue stemmed from the following pattern: @match https://*.youtube.com/* While it looks correct, the real problem … Read more

How to override package.json properties with Electron Builder

Summary Overriding package.json properties in Electron Builder from the command line is a common requirement for managing different build configurations (e.g., test vs. production). While Electron Builder provides mechanisms like –config and extraMetadata, their usage is often unclear, leading to errors like Invalid configuration object. This postmortem explores the root cause, real-world impact, and solutions … Read more

Blazor WASM Hosted on IIS: BaseUri + relative API endpoints fail after Azure DevOps token replacement

Summary Blazor WebAssembly Hosted app deployed to IIS fails to resolve API endpoints after Azure DevOps token replacement. The issue arises from incorrect configuration of BaseUri and relative endpoints, leading to 404/500 errors despite successful token replacement. Root Cause Incorrect BaseUri format: Missing scheme (https://) and inconsistent trailing slashes. Misconfigured HttpClient.BaseAddress: Not set or incorrectly … Read more

Azure Application Gateway in front of an external Azure Container Apps environment

Summary The 404 errors occur because Azure Container Apps (ACA) with internal ingress only accepts traffic originating from within its own ACA-managed environment, not from other subnets in the same VNET. An Application Gateway placed in a different subnet cannot reach those internal endpoints, even though they share the same VNET. Root Cause The failure … Read more

How do I manually back up a supabase database via CLI?

Summary This postmortem analyzes a failure to manually back up a Supabase‑hosted PostgreSQL database using pg_dump on macOS. The core issue was incorrect connection strings and attempting to use the connection pooler instead of the primary database host, which prevents pg_dump from connecting. The result was repeated hostname translation errors and authentication failures. Root Cause … Read more

Monitoring a folder with subfolders for newly added files using python

Summary A file‑monitoring pipeline failed to detect newly added files in a dated folder hierarchy because the implementation relied on periodic polling and naive directory scans. The system missed events, processed files late, and occasionally reprocessed old files. The core issue was the absence of a real-time filesystem watcher capable of tracking deep subfolder structures. … Read more

Index name in Oracle

Summary This incident stemmed from an Oracle metadata lookup that failed to detect an existing index because the wrong column was queried. As a result, the application attempted to recreate an index that already existed, causing repeated failures. The underlying issue is a misunderstanding of how Oracle names and exposes indexes—especially system‑generated ones. Root Cause … Read more

Next.js webpack error on first run (port 3000) but works on second run (port 3001)

Summary Issue: Next.js 14 project fails on the first run (port 3000) with a webpack error but works on the second run (port 3001). Root Cause: A race condition in webpack’s module resolution caused by concurrent server starts. Impact: Delayed development workflow and confusion for engineers. Fix: Prevent concurrent server starts or clear webpack cache … Read more