Season 7: It Worked on My Laptop · Episode 2 of 8
You play: Junior AI Developer
Kabelo restarted the Code Nexus Assist container on the new staging host to pick up a config change. It came back up looking healthy, and then two things were wrong. The results page, which held 41 saved results an hour earlier, was empty. And the service was logging an error about its database, which it had been reaching without trouble on the old host. Nothing in the code changed. Amara wants two numbers before anyone theorises: how many results there were before the restart, and how many after.
Kabelo Mokoena
Platform and DevOps Engineer
Amara Okafor
ML and Data Engineer
The two symptoms had two causes. The empty results page was the old container's writable layer being deleted by a replacement, because no volume was mounted. The database error was `localhost` being the container itself, with nothing telling the service to look for `db` on a network they share. The service now gets its key and database host through the environment, finds `db` by name on `codenexus-net`, publishes 8080 to its port 8000, and keeps its results on a named volume. The proof is the sequence — a kept failure, a fixed run that writes a result, and a replacement that reports resuming with it — and the volume is understood as persistence across containers, not as a backup.