<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>blitz.cloud blog</title>
    <link>https://blitz.cloud/blog/</link>
    <atom:link href="https://blitz.cloud/blog/feed.xml" rel="self" type="application/rss+xml"/>
    <description>What we learn running blitz.cloud, a hosting platform in the EU: engineering stories with our own numbers, and what shipped.</description>
    <language>en</language>
    <lastBuildDate>Sat, 21 Nov 2026 08:00:00 GMT</lastBuildDate>
    <item>
      <title>Our sleeping apps took 43 seconds to wake. The network policy engine was why</title>
      <link>https://blitz.cloud/blog/slow-wakes-were-network-policies/</link>
      <guid isPermaLink="true">https://blitz.cloud/blog/slow-wakes-were-network-policies/</guid>
      <pubDate>Sat, 21 Nov 2026 08:00:00 GMT</pubDate>
      <dc:creator>Simon Gloël</dc:creator>
      <description>Apps with a database woke in 43 seconds at the median, and kube-router's 111-second policy syncs were most of it. How we measured it, tested Canal and Cilium on a copy of production, and switched.</description>
      <content:encoded><![CDATA[<p>Free apps on our platform go to sleep when nobody visits them for a while, and the next visitor wakes them up. That&#39;s how we can offer a free plan at all. It&#39;s also a promise: the person opening the page is waiting, and every second of that wait is ours.</p>
<p>I set a target of every wake under 10 seconds. On 6 November we measured how far away we were.</p>
<h2 id="the-baseline"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#the-baseline">The baseline</a></h2>
<p>Over 14 days there were 17,496 wakes started by a visit. The median took 30 seconds. The 90th percentile took 138 seconds. Only 25% finished within 10 seconds.</p>
<p>The split by what a wake had to do was more useful than the total:</p>
<div class="table-wrap"><table><thead><tr><th>The wake</th><th>p50</th><th>Within 10 s</th></tr></thead><tbody><tr><td>No database, no files, same server as before</td><td>5.8 s</td><td>60%</td></tr><tr><td>Keeps files, same server</td><td>18.6 s</td><td>34%</td></tr><tr><td>No database, landed on another server</td><td>35.3 s</td><td>25%</td></tr><tr><td>Linked database, same server</td><td>43.0 s</td><td>2%</td></tr><tr><td>Linked database and files, same server</td><td>50.0 s</td><td>1%</td></tr></tbody></table></div>
<p>The simple case was already fine. Anything with a database was terrible: 2% of those wakes made it under 10 seconds. A database boots in about 10 seconds, so the database itself couldn&#39;t explain 43.</p>
<h2 id="where-the-time-went"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#where-the-time-went">Where the time went</a></h2>
<p>We watched 12 wakes live and followed the pod events and phase times. The trigger was fast, the pod existed before we had even written the wake row. Seven of the 12 had to download their image again, between 3 and 34 seconds, because workers ran at 63 to 83% disk and the kubelet throws away the least recently used images first, which is exactly a sleeping app&#39;s image. That&#39;s a real problem, but a separate one.</p>
<p>The big one was an init container called <code>wait-for-database</code>. Its job is to hold the app until the database answers. Over the day it took 32 seconds at the median and hit its 300-second cap at the 90th percentile.</p>
<p>The database was up. It just refused the new pod.</p>
<p>We run k3s, and k3s ships kube-router as its NetworkPolicy engine. Every account gets its own namespace with a fence around it, so we had about 6,500 NetworkPolicies, and 88% of them were in namespaces with no running pod at all, sleeping accounts. kube-router does a full sync: whenever any pod starts or stops anywhere, every server rebuilds every policy. Until the database&#39;s server had finished that rebuild, the new app pod&#39;s address simply wasn&#39;t on the allow list.</p>
<p>That sync averaged 111 seconds across the fleet, between 78 and 233 seconds per server. In October it had been 37 to 54 seconds. It grows with every account we add, so this was only going to get worse.</p>
<p>Two more things fell out of it. The k3s agent, where kube-router runs, used 1.3 to 1.8 of every worker&#39;s 4 cores, 21.5 cores across the fleet. And the same sync delay works the other way round: a probe showed a brand-new pod is not fenced itself for about 93 to 107 seconds, until its own server syncs. A slow policy engine is not only a performance problem.</p>
<p>No kube-router setting fixes this. Syncs are always full, and k3s hard-codes the options it starts kube-router with.</p>
<h2 id="two-fixes-that-weren-t-enough"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#two-fixes-that-weren-t-enough">Two fixes that weren&#39;t enough</a></h2>
<p>This wasn&#39;t the first time kube-router showed up. In October we had already seen new pods refused by their own database on another server for about a minute. Back then each server held 3,650 policies, and only 142 of 1,704 namespaces had a pod. The fix was to take the policies away from namespaces without pods for an hour and write them back before the next pod starts. It worked, and then sign-ups pushed the count up again.</p>
<p>In November the first change was the same idea one step further: accounts whose apps are all asleep lose two allow policies until their next pod. That took about 2,700 policies out of every sync. It helps, but every sync still covers every server&#39;s policies, and the count keeps growing with every account. We needed an engine that only programs the pods on its own server and applies small changes instead of rebuilding everything.</p>
<h2 id="testing-on-a-copy-of-production"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#testing-on-a-copy-of-production">Testing on a copy of production</a></h2>
<p>I didn&#39;t want to pick between Calico and Cilium from blog posts. So we built a throwaway test cluster: three small cloud servers with the same k3s version and the same gVisor runtime as production, loaded with production&#39;s 2,832 namespaces and 6,544 policies, and a pod created and one deleted every 15 seconds on each worker to imitate real churn. A fresh pod timed how long until it could reach a database pod in its namespace on the other worker, and how long it could still reach something its fence should block.</p>
<div class="table-wrap"><table><thead><tr><th></th><th>kube-router</th><th>Canal</th><th>Cilium</th></tr></thead><tbody><tr><td>New pod reaches its database</td><td>50-64 s</td><td>0-10 ms</td><td>10-20 ms</td></tr><tr><td>New pod unfenced for</td><td>63-70 s</td><td>0</td><td>0</td></tr><tr><td>k3s agent CPU per worker</td><td>1.06-1.13 cores</td><td>0.07-0.14</td><td>0.04-0.10</td></tr><tr><td>Memory used per worker</td><td>1.2-1.3 GB</td><td>0.8-0.9 GB</td><td>1.1 GB</td></tr></tbody></table></div>
<p>Both alternatives were in a different league. Seconds to milliseconds. Our isolation checks (own database open, other accounts closed, port 25 closed, cloud metadata closed, DNS open) passed on both.</p>
<p>We picked Canal, which is Calico&#39;s policy engine Felix on top of flannel&#39;s VXLAN. The reason was boring and practical: it keeps flannel&#39;s tunnel on the same port, so pods started before the switch keep talking across servers the whole time. With Cilium&#39;s own tunnel, every running pod would have needed a restart before it could reach the others again. Canal also used about 250 MB less memory per server. Cilium is the more capable system. For the problem we had, Canal was the smaller and more reversible step.</p>
<h2 id="the-switch"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#the-switch">The switch</a></h2>
<p>We wrote the migration as a script with one step per phase and rehearsed it on the test cluster:</p>
<pre><code class="language-bash">./migrate.sh status     # before: kube-router rules on every node
./migrate.sh bookings   # copy pod IP bookings, enable proxy_arp
./migrate.sh flip       # restart k3s without its network policy controller
./migrate.sh canal      # wait until every canal pod is Ready
./migrate.sh flush      # remove kube-router&#39;s leftover rules
./migrate.sh roll       # restart workloads node by node, then verify
</code></pre>
<p>The rehearsal found three traps, and I&#39;m glad it did.</p>
<p>First, flannel and Calico book pod addresses in different folders. Without copying the bookings across, Canal handed out the address of a pod that was still running. On the test cluster CoreDNS got the metrics server&#39;s address.</p>
<p>Second, old pods sit on the <code>cni0</code> bridge and think the whole /24 is their local link, so they ask for a new pod&#39;s address by ARP, and nobody answers. This one line fixed it:</p>
<pre><code class="language-bash">sysctl -w net.ipv4.conf.cni0.proxy_arp=1
</code></pre>
<p>Third, kube-router&#39;s rules stay behind when it stops. Each old pod kept a frozen list of allowed sources and refused new pods. Three of those leftover rules accepted any packet carrying kube-router&#39;s mark, which would have let marked traffic past Calico. <code>flush</code> removes all of them.</p>
<p>We ran it in production on 7 November, starting around 01:00 UTC. It didn&#39;t go perfectly. Calico&#39;s node agent asked for 250m CPU, and some of our servers were already at 97% of their CPU requested. Three servers went NotReady for 10 to 30 minutes, and about 60 pods with account disks were down from 01:04 to 01:29. We lowered the request to 50m and carried on. The platform&#39;s own URLs answered every one of 1,210 checks between 00:55 and 02:56.</p>
<h2 id="after"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#after">After</a></h2>
<p>In the days after the switch, timed wakes on the free plan looked like this: no database p50 8.1 seconds, with files 10.5 seconds, with a database 18.1 seconds. That&#39;s a slightly different cut than the baseline table, free-plan wakes only, so compare with care. But database wakes went from 43 to 18 seconds at the median, and the policy wait is gone. What&#39;s left is the database booting, the app booting and image downloads.</p>
<p>So no, we&#39;re not at &quot;every wake under 10 seconds&quot;. The target stays.</p>
<h2 id="what-i-d-do-differently"><a class="anchor" href="https://blitz.cloud/blog/slow-wakes-were-network-policies/#what-i-d-do-differently">What I&#39;d do differently</a></h2>
<p>Replace the thing instead of tuning around it. We saw kube-router&#39;s sync delay in October and made it smaller by removing policies. That bought us a few weeks. A component whose work grows with every customer you sign up needs replacing, and the second workaround was the moment to say so.</p>
<p>Check per-node CPU requests before rolling out any DaemonSet. Those 25 minutes with disk pods down came from one number in a manifest, not from the migration itself.</p>
<p>And build the test cluster. It took about 15 minutes to create and found three traps that would each have caused an outage in production.</p>
<p>If you want to know how sleeping and waking works for your own apps, the <a href="https://blitz.cloud/docs/limits/">limits page</a> has the details.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Running strangers' containers in gVisor. Six things that broke</title>
      <link>https://blitz.cloud/blog/what-gvisor-broke/</link>
      <guid isPermaLink="true">https://blitz.cloud/blog/what-gvisor-broke/</guid>
      <pubDate>Sat, 21 Nov 2026 08:00:00 GMT</pubDate>
      <dc:creator>Simon Gloël</dc:creator>
      <description>Every app on our platform runs in a gVisor sandbox. Nix builds, Jellyfin, dpkg, build speed, process spawning and a database port all broke on it. What each failure looked like and what we changed.</description>
      <content:encoded><![CDATA[<p>When you host containers for people you don&#39;t know, a container is not a security boundary. Anyone can sign up and run anything, and Linux containers share the kernel of the server they run on. So from the start, every app on our platform has run under gVisor, Google&#39;s sandbox that puts its own user-space kernel between the app and the real one.</p>
<p>I still think that was the right call. It&#39;s also why root inside a container is fine for us: root inside the sandbox is not root on the server. But gVisor is not Linux, and some software notices. Here are the six things that broke for us, roughly in the order we found them.</p>
<h2 id="1-nix-can-t-build-without-a-terminal"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#1-nix-can-t-build-without-a-terminal">1. Nix can&#39;t build without a terminal</a></h2>
<p>On our first open day in September, 12 of 12 builds failed. Half of the apps that failed that day were images that expected to run as root, which we didn&#39;t allow yet. Another part was our first build path for projects without a Dockerfile: Nixpacks, which builds with nix.</p>
<p>Every Nixpacks build died right at the first local derivation, after all downloads had finished:</p>
<pre><code class="language-text">while waiting for the build environment ... reading a line: Input/output error
</code></pre>
<p>nix&#39;s builder child wants a pseudo-terminal, and the sandbox didn&#39;t give it one. We reproduced it in 40 seconds with a throwaway pod running the Nixpacks image under the gVisor runtime class and a one-line <code>nix-build</code>. Setting <code>sandbox = false</code>, <code>filter-syscalls = false</code> or an empty <code>build-users-group</code> changed nothing. 8 of 8 Nixpacks builds we had ever run had failed.</p>
<p>We stopped using Nixpacks the same day. For a while a build without a Dockerfile simply asked for one. Today it gets one written for it, from a standard recipe for common stacks or by a model.</p>
<p>The lesson I took: don&#39;t tweak settings for hours when the tool fundamentally needs something the sandbox doesn&#39;t have. Find out what it needs, check whether gVisor has it, and move on if it doesn&#39;t.</p>
<h2 id="2-jellyfin-and-the-netlink-groups"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#2-jellyfin-and-the-netlink-groups">2. Jellyfin and the netlink groups</a></h2>
<p>No Jellyfin install on our platform ever worked until 26 September. It stopped at startup with:</p>
<pre><code class="language-text">NetworkInformationException (95): Operation not supported
</code></pre>
<p>.NET watches for network changes through a netlink socket bound to the link, address and route multicast groups. gVisor supports only the link group. The bind fails, and Jellyfin gives up.</p>
<p>The worse part: Jellyfin then keeps serving its own startup page for ten minutes. Our store check only asked whether the port answered, so Jellyfin passed it. A port-only health check calls a dead app &quot;online&quot;.</p>
<p>We didn&#39;t want to maintain a patched image. Jellyfin only subscribes while its <code>DetectNetworkChange</code> setting is true, and it reads startup settings from environment variables with a <code>JELLYFIN_</code> prefix. A container&#39;s addresses never change while it runs, so turning the watch off costs nothing. Our reconciler now sets this on any Jellyfin image, unless the owner set it themselves:</p>
<pre><code class="language-text">JELLYFIN_DetectNetworkChange=false
</code></pre>
<p>With that, Jellyfin was healthy after 1:37. If you run another .NET app and hit error 95, look for a setting that skips the network change subscription first.</p>
<h2 id="3-dpkg-can-t-make-a-backup-link"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#3-dpkg-can-t-make-a-backup-link">3. dpkg can&#39;t make a backup link</a></h2>
<p>Some builds failed inside <code>apt-get</code> with this:</p>
<pre><code class="language-text">unable to make backup link ... No such device
</code></pre>
<p>16 builds across 4 apps, and none of those apps had ever built successfully. Upgrading libc6, or installing nginx on Debian trixie, triggered it.</p>
<p>The cause was a stack of two things. Rootless BuildKit can&#39;t mount a kernel overlay inside gVisor, so it stacks image layers with fuse-overlayfs instead. dpkg hard-links a file from a lower layer as a backup before replacing it, and under gVisor that hard link across fuse-overlayfs fails. A link between plain files works fine.</p>
<p>So an app that hits the error gets plain layers from then on (<code>--oci-worker-snapshotter=native</code>). Plain layers cost disk and time on every step, which is why only apps that met the error get them. If it still fails with plain layers, the build tells you to start from a newer base image.</p>
<h2 id="4-builds-were-eight-times-slower"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#4-builds-were-eight-times-slower">4. Builds were eight times slower</a></h2>
<p>This one isn&#39;t a bug, just the price. A test recipe took 159 to 190 seconds to build under gVisor and 20 seconds under plain runc, on the same idle build server. Most of the difference was downloads and the image export.</p>
<p>We first suspected gVisor&#39;s network stack, because small requests took about 240 ms against 110 ms under runc. Switching the build pod to host networking changed nothing. The cost was the sandbox&#39;s own syscall and page fault overhead on these virtual machines. gVisor&#39;s KVM platform would help, but our build servers have no <code>/dev/kvm</code>.</p>
<p>On 3 October we moved builds off gVisor. Build pods now run under runc with seccomp and AppArmor profiles we wrote ourselves. We started from containerd&#39;s default seccomp profile and added one rule at a time until the test recipe built. Upstream BuildKit&#39;s Kubernetes example just sets both to <code>Unconfined</code>, which we didn&#39;t want. The probe on both build servers came out at 20 to 23 seconds against 159, and the hostile <code>RUN</code> lines we tried behaved the same in both sandboxes.</p>
<p>The trade is real. A build step&#39;s syscalls now reach the server&#39;s kernel, filtered, instead of gVisor&#39;s. We accept it because build servers run nothing but builds, and every app that actually runs stays on gVisor.</p>
<h2 id="5-posix-spawn-and-einval"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#5-posix-spawn-and-einval">5. posix_spawn and EINVAL</a></h2>
<p>While builds still ran under gVisor, a pnpm monorepo failed when one tool started another:</p>
<pre><code class="language-text">Failed to spawn process: underlying os error: Invalid argument (os error 22)
</code></pre>
<p>Node reports the same thing as <code>spawn &lt;cmd&gt; EINVAL</code>. gVisor refused the vfork-style clone a large parent process makes when it starts a child. It&#39;s deterministic, so retrying is pointless. The build now says plainly that this is our sandbox&#39;s limit and not the project&#39;s fault, and the runc build sandbox from point 4 is the actual fix.</p>
<h2 id="6-a-port-that-never-comes-back"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#6-a-port-that-never-comes-back">6. A port that never comes back</a></h2>
<p>This was the nastiest, because it looked like the database&#39;s fault.</p>
<p>A database crashed once, restarted, and then failed to start forever with <code>Address already in use</code> on its own port. We watched one pod go through 174 restarts.</p>
<p>A container restart inside a pod keeps the pod&#39;s gVisor sandbox and its network stack. Older gVisor releases kept the port of a closed socket bound to <code>0.0.0.0</code> reserved inside that stack after the process closed it. So the restarted database could never bind its port again, and only deleting the pod, which makes a new sandbox, cleared it. The upstream bug is <a href="https://github.com/google/gvisor/issues/16102" rel="noopener" target="_blank">google/gvisor#16102</a>, fixed in November and first released in 20261109.0.</p>
<p>We bumped our pinned gVisor version. We also taught the database reconciler to recognise the pattern: a single-container pod that was Ready once in its current sandbox, stopped being Ready, and now logs a bind failure on its own port gets deleted, so it starts with a fresh sandbox. When any of those conditions doesn&#39;t hold, it does nothing, because then something else might really hold the port.</p>
<h2 id="one-nice-surprise"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#one-nice-surprise">One nice surprise</a></h2>
<p>Ports below 1024 bind fine as a non-root user under gVisor. We tested <code>nginx</code> on port 80 as uid 1000 with every capability dropped, and it just worked. gVisor doesn&#39;t even have the <code>ip_unprivileged_port_start</code> file. I had expected the opposite.</p>
<h2 id="would-i-pick-gvisor-again"><a class="anchor" href="https://blitz.cloud/blog/what-gvisor-broke/#would-i-pick-gvisor-again">Would I pick gVisor again?</a></h2>
<p>Yes. For a platform where anyone can sign up and run any image, the second kernel is the fence I trust most. blitz.cloud runs every app in its own sandbox and I don&#39;t see that changing.</p>
<p>What I&#39;d do differently is test earlier. Before opening, take the 30 most popular images people will try and run them under the sandbox with a check that asks the app itself whether it&#39;s healthy, not just whether the port answers. Most of the failures above would have shown up in an afternoon. Instead, our first users found them.</p>
<p>If you deploy a Docker image with us, the <a href="https://blitz.cloud/docs/deploy-docker-image/">docs on deploying an image</a> explain what the sandbox means for root and ports.</p>
]]></content:encoded>
    </item>
    <item>
      <title>We read 1,452 failed builds by hand. About 85% were our fault</title>
      <link>https://blitz.cloud/blog/we-read-1452-failed-builds/</link>
      <guid isPermaLink="true">https://blitz.cloud/blog/we-read-1452-failed-builds/</guid>
      <pubDate>Sat, 21 Nov 2026 08:00:00 GMT</pubDate>
      <dc:creator>Simon Gloël</dc:creator>
      <description>One week of failed builds on our hosting platform, read one by one. Most of them were caused by our own registry, our retries and our error messages, not by the code people pushed.</description>
      <content:encoded><![CDATA[<p>My goal for builds is simple. Every build either goes green, or it fails because of something in your project, and then it tells you what to change. A build that fails because of us should not happen at all.</p>
<p>In late September I wasn&#39;t sure we were anywhere near that. The dashboards showed a lot of red, and every time I opened a failed build log it looked like the customer&#39;s fault. A missing dependency, a broken Dockerfile, something like that. So on 25 September we stopped guessing and read every single failed build from the previous seven days.</p>
<h2 id="the-numbers"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#the-numbers">The numbers</a></h2>
<p>2,304 builds in seven days, across 150 apps. 1,452 of them failed.</p>
<p>We went through them app by app: the log, the Dockerfile, the error summary we had shown the owner. For each failure we asked one question. Whose fault is this?</p>
<p>About 85% were ours.</p>
<p>That number hurt. I run blitz.cloud, and I had been telling myself that builds fail because people push broken code. People do push broken code. But most of the red came from our side.</p>
<h2 id="what-actually-broke"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#what-actually-broke">What actually broke</a></h2>
<p>The biggest causes, largest first.</p>
<h3 id="the-registry-disk-was-full"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#the-registry-disk-was-full">The registry disk was full</a></h3>
<p>From 21 to 24 September the disk under our container registry was full. 646 builds across 70 apps failed at the push step. On 22 and 23 September only 21 of 680 builds succeeded. We grew the disk by hand twice in that window and it filled up again each time.</p>
<h3 id="the-registry-or-its-token-endpoint-didn-t-answer"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#the-registry-or-its-token-endpoint-didn-t-answer">The registry or its token endpoint didn&#39;t answer</a></h3>
<p>About 350 more builds failed with 503s, 500s, EOFs, <code>blob upload unknown</code> and TLS timeouts. Most of those came in the overnight wave at 04:00, when we rebuild a lot of apps at once. This ended only when we moved the registry onto the platform&#39;s own servers on the afternoon of 25 September.</p>
<h3 id="our-ai-spending-cap-turned-itself-on-by-mistake"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#our-ai-spending-cap-turned-itself-on-by-mistake">Our AI spending cap turned itself on by mistake</a></h3>
<p>Builds for projects without a Dockerfile get one written by a model. We had a monthly spending cap on those calls. The cap counted calls on a flat subscription at list price, even though they cost us nothing extra, so it decided we were over budget and switched AI off for everyone from 20 September in the evening until 25 September. 123 builds across 37 apps failed because nobody wrote their recipe.</p>
<h3 id="github-refused-us-at-04-00"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#github-refused-us-at-04-00">GitHub refused us at 04:00</a></h3>
<p>We read public repositories anonymously. In the overnight wave GitHub started refusing those reads and clones, and our code turned the refusal into &quot;no Dockerfile&quot; or &quot;could not read this project&#39;s files&quot;. 44 builds. The owners were told their project was broken when GitHub had simply said &quot;slow down&quot;.</p>
<h3 id="our-retry-was-useless"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#our-retry-was-useless">Our retry was useless</a></h3>
<p>We did have one automatic retry. It started 0.05 seconds after the failure, right into the same outage. 268 of 324 retries failed the same way as the first try.</p>
<h3 id="the-fix-couldn-t-deploy"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#the-fix-couldn-t-deploy">The fix couldn&#39;t deploy</a></h3>
<p>We had a fix for the registry ready, and it waited 34 hours to go live. Our CI pipeline has a job for an unrelated service that pushes its image to our own registry, and the deploy job depended on it. The registry was broken, so that push failed, so the deploy never ran. We had made our own repair path depend on the thing that needed repairing.</p>
<h2 id="the-error-message-that-lied"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#the-error-message-that-lied">The error message that lied</a></h2>
<p>This one is my favourite, in a bad way.</p>
<p>245 builds had told their owners &quot;Installing this project&#39;s dependencies failed&quot;. About 220 of those had no dependency error at all.</p>
<p>The classifier looked for patterns like <code>pip install</code> anywhere in the log. BuildKit prints a header line for every step, and that line contains the command:</p>
<pre><code class="language-text">#11 [6/8] RUN pip install --no-cache-dir -r requirements.txt &amp;&amp; pip check
</code></pre>
<p>So any Python build that died for any reason after that step, a registry 503 during the push for example, got matched as a dependency failure. Here is the shape of the bug, simplified:</p>
<pre><code class="language-java">// before: any line mentioning pip counts as a dependency failure
if (log.contains(&quot;pip install&quot;)) return DEPENDENCIES_FAILED;
</code></pre>
<p>The fix was to never read project patterns against BuildKit&#39;s own step headers, and to check for failures on our side first, before any project pattern gets a chance.</p>
<p>One owner deleted a working Dockerfile because of this message. They did exactly what we told them to do. That&#39;s the cost of a confident wrong error message, and I think it&#39;s worse than a vague one.</p>
<h2 id="what-we-changed"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#what-we-changed">What we changed</a></h2>
<p>Most of it shipped the same evening.</p>
<ul>
<li>Failures on our side are recognised before any project pattern, and the message says it&#39;s us.</li>
<li>Our failures are retried three times with real gaps in between, so the retry doesn&#39;t run straight into the same outage:</li>
</ul>
<pre><code class="language-java">static final List&lt;Duration&gt; RERUN_DELAYS = List.of(
        Duration.ofMinutes(2), Duration.ofMinutes(10), Duration.ofMinutes(30));
</code></pre>
<ul>
<li>A failed push is retried inside the build pod, and a build keeps one push token across its retries.</li>
<li>GitHub refusals are retried and never read as a missing file. Public projects are read from raw.githubusercontent.com, and cloned with the owner&#39;s token when there is one.</li>
<li>The overnight rebuild is spread over 90 minutes instead of starting everything at 04:00, and it no longer rebuilds a commit that failed for the project&#39;s own reason.</li>
<li>Bursts of pushes settle into one build.</li>
<li>The AI cap counts only calls that cost money, the admin overview says when it refuses, and builds that waited for AI are built again once it answers.</li>
<li>The deploy no longer waits for that unrelated CI job.</li>
</ul>
<p>We also found four empty <code>link</code> files inside the registry storage. An empty link file makes the registry answer 500 for that layer, forever. One app had failed 27 times on a single one. We repaired those by hand.</p>
<p>Later the registry moved to object storage, so a full disk under it is not a thing anymore.</p>
<h2 id="did-it-work"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#did-it-work">Did it work?</a></h2>
<p>Partly. When we measured again on 18 October, 29% of final build failures were ours. That&#39;s a different cut than the September number, because it counts builds that stayed failed after the retries, so don&#39;t read it as &quot;85 down to 29&quot;. But it&#39;s the number I watch now, and it&#39;s still not zero.</p>
<p>The difference is that I know what that 29% is made of, because the cause is now stored on the build row instead of being guessed from the log every time someone looks.</p>
<h2 id="what-i-d-do-differently"><a class="anchor" href="https://blitz.cloud/blog/we-read-1452-failed-builds/#what-i-d-do-differently">What I&#39;d do differently</a></h2>
<p>Store the cause from day one. We had a classifier, but its answer only lived in a message shown to the user. Nobody could count how often it was wrong. Once the class is a column, the question &quot;how many failures were ours this week&quot; is a query instead of a day of reading logs.</p>
<p>Build canaries. A small set of known-good public projects, one per stack, built every night and after every deploy. If a canary fails, that&#39;s our problem by definition, and we see it before a customer does.</p>
<p>Never let your repair path depend on the broken thing. The 34 hours still annoy me more than the full disk.</p>
<p>And read the failures yourself every now and then. Not a dashboard, the actual logs. I would never have found the pip header bug from a chart. It looked like a perfectly plausible error until you read the log right above it.</p>
<p>If you deploy from GitHub with us, the <a href="https://blitz.cloud/docs/deploy-from-github/">deploy from GitHub docs</a> explain what a failed build tells you and what to do about it.</p>
]]></content:encoded>
    </item>
    <item>
      <title>What's new on blitz.cloud this week</title>
      <link>https://blitz.cloud/blog/whats-new-october-19-2026/</link>
      <guid isPermaLink="true">https://blitz.cloud/blog/whats-new-october-19-2026/</guid>
      <pubDate>Mon, 19 Oct 2026 08:00:00 GMT</pubDate>
      <dc:creator>BlitzWorks</dc:creator>
      <description>The App Store grew this week, GitHub Actions builds are live, and six more changes landed between 13 and 19 October 2026.</description>
      <content:encoded><![CDATA[<p>The App Store grew by 52 apps this week, from 44 to 96. Eight more now show real screenshots instead of a placeholder image, and a logo bug that left the old app&#39;s letter showing through a new one is fixed. The store now points you toward apps that other people tend to use together with the ones you already run, in case something useful is missing. <a href="https://blitz.cloud/docs/app-store/">App Store</a></p>
<p>If your code lives on GitHub, you can now build it with your own GitHub Actions workflow instead of blitz.cloud&#39;s. <a href="https://blitz.cloud/docs/deploy-from-github/">Deploy from GitHub</a></p>
<p>When you cancel your plan, the option appears to keep your busiest app running on Pro instead of shutting down with everything else. For a card-free trial in its last two days, the page now shows one plain choice: keep it or let it lapse, instead of a payment form.</p>
<p>An app that runs out of memory gets a bigger size on its own, so it stops crashing while you&#39;re away. A crashed multi-service app&#39;s Settings link now opens at the part that broke instead of the top of the page.</p>
<p>We also published pages showing what Immich, OpenClaw, Paperless-ngx and Uptime Kuma cost to run on blitz.cloud, and the domains page now suggests names based on the apps you already have.</p>
<p>See the full list on the <a href="https://blitz.cloud/changelog/">changelog</a>, or check <a href="https://blitz.cloud/whats-live/">what&#39;s live</a> today.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
