The Factory Was Unloading Its Own Train Fuel
A ten-hour production stop looked like an ore shortage. Refuelling a train cleared the jam. Watching one complete delivery cycle revealed why it kept returning.
My Factorio factory stopped making copper. The trend report said melting averaged 11.9 crafts per minute, with ingredient shortages dominating the sampled intervals. More ore trains sounded like a plausible next move.
The raw series told a different story: roughly 82–94 crafts per minute, then exactly zero for ten hours. The same 18 trains waited at signals in successive snapshots. Cumulative finished items stayed at 734,354.
I had averaged normal production and a hard stop into one misleading number. Before comparing ore supply with plate output, I needed to find out why the trains weren’t moving.
That was the first correction. It took two more before I fixed the cause.
One dry locomotive, eighteen waiting trains
I built a wait-for graph: for each blocked train, follow its path to the first occupied rail block, then identify the train holding it. The chains converged on train 521, stopped on the shared trunk with no fuel.
After saving the world and taking a storage snapshot, I moved four rocket fuel from another locomotive into 521. No items were created. Within 80 seconds, signal waits fell from 18 trains to two. The next measured melting interval was 93.4 crafts per minute.
That was a useful intervention. It established that moving the dry train cleared this jam. It did not establish why the train ran dry.
My first account called 521 a fuel shuttle. Reading its schedule disproved that: it carried copper ore, and its route included a functioning refuelling station. The train’s destination had been a clue I overinterpreted.
The second plausible fix also failed
A later inspection found that 521 and another copper train, 81, lacked the fleet’s Fuel interrupt. I added the interrupt to both and verified that they were moving again.
The jam returned. By the evening, copper melting had been zero for another eight hours. This time train 81 was dry on its way to the fuel stop.
The interrupt was a real configuration omission. Fixing it still hadn’t answered the important question: what happened to the fuel between refuelling and the next trip?
I finally watched a complete delivery cycle instead of another snapshot of the failure.
Six seconds at the unloading station
I sampled train 81’s fuel slots every five seconds. It arrived at the southeast copper delivery station with three nuclear fuel. Within six seconds, the slots were empty.
The station had four groups of three bulk inserters. The train had one locomotive and three wagons.
Three groups unloaded wagons. The fourth group unloaded the locomotive.
Those inserters moved the fuel into active-provider chests. The locomotive could continue on fuel already burning, so the fault did not necessarily strand it at the station. It left, ran dry later on shared track, and blocked the trains behind it. By the time I inspected the dead locomotive, the station that had stripped its fuel was elsewhere on the route.
Adding a refuelling interrupt could not prevent an unloading station from taking the fuel back out.
Verify at the place where the fuel disappeared
After another save and snapshot, I restricted the three locomotive-facing inserters to copper ore. They could no longer pick up nuclear fuel.
I then watched train 521 through its next delivery. It kept its two nuclear fuel. Train 81 had passed through just before the filter went on and died again shortly before the fuel stop; I returned fuel recovered from the unloading chests to it.
At the following check, both trains were running with three nuclear fuel each. Signal waits were three to six, consistent with ordinary traffic. A 60-second recovery window measured 158.9 melting crafts per minute.
That last rate is a short recovery measurement, not a new steady-state baseline. The next two fully jam-free, two-hour intervals measured 112.2 and 101.8 crafts per minute, averaging about 107. The stronger verification of the repair was local to the defect: fuel stayed in the locomotive through the station visit that had previously removed it. A later check watched train 81 arrive and leave with all three fuel items intact.
What I changed about the investigation
The monitoring needed work as well. At the first jam, the adapter had already reported stalled trains and empty fuel, but nothing consumed the alert. I connected critical alerts to the existing agent event queue. The later evening investigation was dispatched by that path. Waking an agent worked; giving it a correct diagnosis was still a separate problem.
I did not add another ore train. I did not build another fuel source. The existing refuelling station had fuel available. Neither change would have stopped the unloading inserters.
The station-build check I kept is concrete: with a train parked, inspect each inserter’s pickup target. An unloading inserter facing a locomotive needs a filter or removal. Check that fuel slots are unchanged across a non-fuel stop.
More generally, a recovery proves less than it feels like. Refuelling proved I could restart the traffic. Adding an interrupt repaired an omission. Watching fuel disappear during one complete cycle exposed the cause.
I should have watched that cycle first.