<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16243</bug_id>
          
          <creation_ts>2026-04-12 01:53:16 +0000</creation_ts>
          <short_desc>Exception Maximum PB reference count exceeded.</short_desc>
          <delta_ts>2026-05-19 18:32:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>6.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Halstead">mhalstead</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105047</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-04-12 01:53:16 +0000</bug_when>
    <thetext>After 5 days or fedora43-vk-2 worker is exhausting the MAX_BROKER_REFS=1024 limit.

We see exceptions like,

https://autobuilder.yoctoproject.org/valkyrie/#/builders/25/builds/3583
https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/3595
https://autobuilder.yoctoproject.org/valkyrie/#/builders/10/builds/3525
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3481
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1390

I&apos;m not sure why it is that work specifically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105048</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-04-12 01:56:34 +0000</bug_when>
    <thetext>I&apos;ve added a cronjob that runs every three hours. It will restart any idle worker resetting the MAX_BROKER_REFS.

Ideally we&apos;d track down why we are leaking refs and stop that.

Alternatively we could look into switching from pb to msgpack which does not have limits like this. 

Let&apos;s watch and see how this approach works out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105495</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-05-19 17:07:07 +0000</bug_when>
    <thetext>BROKER_REF exhaustion appears to be fixed.

The restart job was causing a race between restarts and the job schedulers. I’ve moved it so that it starts 8 minutes after the hour, which should immediately resolve most of the issues.

We’re also going to update the restart script so that it pauses idle workers, waits 5 minutes, then checks state before taking further action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105496</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-05-19 18:32:32 +0000</bug_when>
    <thetext>Script changes are up at https://git.yoctoproject.org/yocto-autobuilder-helper/diff/scripts/restart-if-idle.sh and this problem should be worked around indefinitely.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>