<div dir="ltr"><div>This issue exists for very long time.</div><div><br></div><div>I know that when the builder runs out of disk space there are multiple things which might go wrong (I&#39;ve seen bad archives on premirrors, bad sstate archives caused by this), so this issue isn&#39;t the main problem, but still would be nice to fail faster.</div><div><br></div><div>In last build which was running for some 9 hours, it was first building for maybe 2 hours before it run out of disk space and this morning there is 50MB log just from bitbake output stored on the jenkins master. Repeating following message very quickly</div><div><br></div><div><div># grep -c &quot;Errno 28&quot; consoleText.txt </div><div>42986</div></div><div><br></div><div>ERROR: Running command [[&#39;world&#39;], &#39;build&#39;]</div><div>Traceback (most recent call last):</div><div>  File &quot;/home/jenkins/oe/world/shr-core/bitbake/lib/bb/event.py&quot;, line 211, in fire(event=&lt;bb.event.HeartbeatEvent object at 0x7fcfed3e96a0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7fd00330b198&gt;):</div><div>     </div><div>    &gt;    fire_class_handlers(event, d)</div><div>         if worker_fire:</div><div>  File &quot;/home/jenkins/oe/world/shr-core/bitbake/lib/bb/event.py&quot;, line 134, in fire_class_handlers(event=&lt;bb.event.HeartbeatEvent object at 0x7fcfed3e96a0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7fd00330b198&gt;):</div><div>                         continue</div><div>    &gt;            execute_handler(name, handler, event, d)</div><div>     </div><div>  File &quot;/home/jenkins/oe/world/shr-core/bitbake/lib/bb/event.py&quot;, line 106, in execute_handler(name=&#39;runqueue_stats&#39;, handler=&lt;function runqueue_stats at 0x7fd0020c6158&gt;, event=&lt;bb.event.HeartbeatEvent object at 0x7fcfed3e96a0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7fd00330b198&gt;):</div><div>         try:</div><div>    &gt;        ret = handler(event)</div><div>         except (bb.parse.SkipRecipe, bb.BBHandledException):</div><div>  File &quot;/home/jenkins/oe/world/shr-core/openembedded-core/meta/classes/buildstats.bbclass&quot;, line 212, in runqueue_stats(e=&lt;bb.event.HeartbeatEvent object at 0x7fcfed3e96a0&gt;):</div><div>             done = isinstance(e, bb.event.BuildCompleted)</div><div>    &gt;        system_stats.sample(e, force=done)</div><div>             if done:</div><div>  File &quot;/home/jenkins/oe/world/shr-core/openembedded-core/meta/lib/buildstats.py&quot;, line 148, in SystemStats.sample(event=&lt;bb.event.HeartbeatEvent object at 0x7fcfed3e96a0&gt;, force=False):</div><div>                                      data +</div><div>    &gt;                                 b&#39;\n&#39;)</div><div>                 self.last_proc = now</div><div>OSError: [Errno 28] No space left on device</div><div><br></div><div>It would be better to exit completely when something as bad as Errno 28 happens.</div></div>