Skip to main content
El Diario · Chapter 18

Four theories about why it wouldn't start

by Jacobo González JaspeLeer en español

This chapter is short because the day was. Nine commits. Four of them are this:

Dev boot: accept Prisma data-loss warnings for local boot
Fix boot: run prisma db push with accept-data-loss directly
Fix boot: correct schema path for prisma db push
Fix boot: run prisma push from apps/api so schema path resolves

Four attempts to start a server on my own computer. Read them in order and you'll watch a man reasoning out loud in front of a machine that doesn't answer.

The four theories

Theory one: the database is complaining too much. Prisma was warning about possible data loss and I decided that was what blocked the boot. Fix: tell it to accept the warning and carry on. Didn't work.

Theory two: the warning isn't being accepted properly. Maybe the problem is how I'm telling it to accept, not that it accepts. I phrased it another way, more directly. Didn't work.

Theory three: it isn't the database, it can't find the schema. Here I start getting close without knowing it. I corrected the schema path. Didn't work.

Theory four: the path is fine, I'm running it from the wrong place. I ran the same command from apps/api instead of the root, so the relative path would resolve. That worked.

Four commits. A long hour, going by the timestamps. And the real problem was that I was standing in the wrong folder.

Why this deserves a chapter

Because it's the pattern I would repeat for the next eighteen months, and here it is in its smallest, cleanest form.

Look at the theories again. One and two are the same theory. Both say "the problem is the data-loss warning". The only thing I changed between them was how I typed it.

That's what you do when you don't know: you change the surface and hope the substance moves. And because an AI hands you a different version of the same thing instantly, and another, and another, you can spend hours producing variations on a wrong idea with a complete sense of progress. Each attempt gets a commit. The history looks like work. It isn't.

In April I would repeat exactly this, but with letters of the alphabet instead of theories, and it would take me a whole morning to recognise it. That's chapter 30. Here, in February, the same mistake costs me an hour. This is the cheap version.

What I did right without knowing it

One thing saved me that day and it wasn't intelligence: I wrote down every attempt.

If I'd been trying things without committing anything, theory one and theory two would have merged in my head into "I already tried the database thing", and I'd never have seen they were the same. It was reading them written down, in a row, that showed me I'd spent two attempts taking one step.

A commit per attempt looks obsessive. It's the opposite: it's the only way I have of not repeating myself, because I can't rely on my memory for that. Writing down what I just tried is, for me, a prosthetic. And it works just as well whether the thing you're debugging is a server, a course of treatment, or a conversation with the tax office.

The rest of the day

The other five commits from 4 February, so you can see the contrast:

Hub: Control Center + Investors view + docs/visuals UX
Docs: Paco Hub README (workflow + structure)
Investors: support pinned investor pack manifest
Investors: show pinned pack file hint
Visuals: collections + fullscreen viewer; Jacobo page

An investor view. A documentation manifest for investors. A pinned-file hint for investors.

On the same day I couldn't start my own server across four attempts, I built three things for showing it to investors.

I don't write that to laugh at that man. I write it because both things were true at once and still are: you have to build the shop window and you have to fix the boiler, some days you get both, and nobody looking at the window will ever know about the boiler.

This diary exists, basically, to show you the boiler.

el-diariopersonalmistakes