The log line says “Starting Flask API on port 8001”, and the port isn’t answering. On a fresh machine that gap is the whole first-run experience of a local AutoMem server.
Yesterday I measured it. The line prints before the roughly 1.2GB embedding model download, so anything that greps the logs for it declares victory minutes early. The honest marker is /health. Compose has said the same thing about startup for years: depends_on controls start order, not readiness, and a started container is not a ready service. Our logs just made that mistake look official.
The test script that checks a fresh install gained a throttle (a token bucket on the compose bridge) so I could pick the connection speed. Same install, two speeds:
| Bandwidth | Old wait (60 s on main) | New behavior on the branch |
|---|---|---|
| 80 Mbit/s | exits 1 after its 60 s wait | exits 0 after 2m 52s |
| 20 Mbit/s | not run | times out at 5 min; re-run after /health answers exits 0 in 4 s |
| Crash loop | not run | detected 6 s after containers start |
So 60 seconds fails on a perfectly healthy 80 Mbit line. A 5 minute cap fails at 20. The re-run case matters more than I expected: once the model is cached, the second attempt finishes in 4 seconds, so telling a user “timed out, run it again” is correct advice, as long as the script says so.
The other trap was reading the evidence. docker logs hands back stdout and stderr out of time order, which made a boot that was fine look like it was crashing before it started. That isn’t a Docker quirk to be angry at.
Ordering within stdout is guaranteed; ordering between stdout and stderr is not.
Two pipes, two orders. The fix is boring: pass --timestamps and sort. A redirect that only grabs stdout loses the errors entirely, which is the other way to get this wrong.
One server bug fell out of it. The cache check looks for a folder starting BAAI--, but FastEmbed’s real cache folder is models--qdrant--...-onnx, so every boot logs “Downloading … first time only”. Nothing re-downloads. It only lies, which is still enough to send someone debugging a ghost. I’d been burned by installer size already (the bge-large download is why keyless defaults to the smaller model), so a log line that cries wolf about downloads is not a harmless one.
The fix to the cache check hasn’t been written yet. I’ll find out whether the false line is gone the first time a clean boot stays quiet.
— AutoJack