<?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>16165</bug_id>
          
          <creation_ts>2026-02-09 12:07:33 +0000</creation_ts>
          <short_desc>upload-error-reports: HTTP Error 400: Bad Request</short_desc>
          <delta_ts>2026-04-14 06:19:04 +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>unspecified</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.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Mathieu Dubois-Briand">mathieu.dubois-briand</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</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>104199</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-09 12:07:33 +0000</bug_when>
    <thetext>I thought I already had opened such a ticket, but can&apos;t find it.

Poky - The Yocto Project testing distribution
ERROR: HTTP Error 400: Bad Request
Preparing to send errors to: https://errors.yoctoproject.org
Truncating log to allow for upload
ERROR: Command [&apos;/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/upload-error-reports&apos;, &apos;/srv/pokybuild/yocto-worker/a-full/build/build&apos;, &apos;https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3169&apos;] failed
program finished with exit code 0

I believe the issue comes from the request we are making to errors.yoctoproject.org.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104203</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-09 12:14:28 +0000</bug_when>
    <thetext>a-full alma9-vk-2 mathieu/master-next completed at 2026-02-05 17:43:30+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3169/steps/35/logs/stdio

a-full debian12-vk-9 master-next&amp;master completed at 2026-02-06 01:38:46+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3170/steps/35/logs/stdio

a-full ubuntu2504-vk-1 mathieu/master-next completed at 2026-02-06 05:07:20+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3171/steps/35/logs/stdio

a-full rocky8-vk-1 mathieu/master-next completed at 2026-02-07 23:32:21+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3176/steps/37/logs/stdio

a-full fedora39-vk-1 master-next&amp;master completed at 2026-02-08 04:54:18+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3177/steps/35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104205</commentid>
    <comment_count>2</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-09 12:17:23 +0000</bug_when>
    <thetext>Adding a commit in my branch, so send-error-report always shows debug messages. Hopefully there is something interesting in there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104212</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-10 10:19:52 +0000</bug_when>
    <thetext>a-full fedora40-vk-4 mathieu/master-next completed at 2026-02-09 17:35:43+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3184/steps/35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104235</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-12 07:59:18 +0000</bug_when>
    <thetext>a-full rocky8-vk-1 mathieu/master-next completed at 2026-02-11 00:28:37+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3188/steps/37/logs/stdio

a-full debian12-vk-8 mathieu/master-next completed at 2026-02-11 16:01:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3194/steps/35/logs/stdio

a-full debian12-vk-7 mathieu/master-next-test&amp;mathieu/master-next completed at 2026-02-11 00:48:37+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3191/steps/35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104238</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-12 08:04:05 +0000</bug_when>
    <thetext>So the log request can be found in the last failures.

So for build #3194, log is here: https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/5306498/raw_inline

The request to errors.yoctoproject.org failed.

We submitted (shortened):
DEBUG: Request URL: https://errors.yoctoproject.org/ClientPost/
DEBUG: Request Headers: {&apos;Content-type&apos;: &apos;application/json&apos;, &apos;User-Agent&apos;: &apos;send-error-report/0.4&apos;}
DEBUG: Request Data: {
    &quot;branch_commit&quot;: &quot;mathieu/master-next: unknown&quot;,
    &quot;build_sys&quot;: &quot;unknown&quot;,
    &quot;component&quot;: &quot;bitbake&quot;,
    &quot;distro&quot;: &quot;poky&quot;,
    &quot;email&quot;: &quot;&quot;,
    &quot;error_type&quot;: &quot;oe-selftest&quot;,
    &quot;failures&quot;: [
        {
            &quot;log&quot;: &quot;(long log data)&quot;,
            &quot;package&quot;: &quot;bitbake&quot;,
            &quot;task&quot;: &quot;oe-selftest -a -t yocto-mirrors -j 15&quot;
        }
    ],
    &quot;link_back&quot;: &quot;https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3194&quot;,
    &quot;machine&quot;: &quot;unset&quot;,
    &quot;nativelsb&quot;: &quot;unknown&quot;,
    &quot;target_sys&quot;: &quot;unknown&quot;,
    &quot;username&quot;: &quot;yp-ab-debian12-vk-8&quot;
}

Server replied with:
ERROR: HTTP Error 400: Bad Request
DEBUG: Response Content: 
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;title&gt;Bad Request (400)&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;h1&gt;Bad Request (400)&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

So someone should probably play a bit with errors.yoctoproject.org to understand  how this request is bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104299</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-13 14:29:36 +0000</bug_when>
    <thetext>So the issue is simply that the error log is pretty big with all sstate cache mirror errors we have in the latest builds. As a consequence, the request we submit to the errors.yoctoproject.org server is above 5MB and gets rejected.

Sending a series to increase this size to 10MB and add a better error.
https://lists.yoctoproject.org/g/yocto-patches/message/3236
https://lists.yoctoproject.org/g/yocto-patches/message/3234

I&apos;m tempted to also find a way to shrink the logs, but we must be sure to not remove any useful data by accident. 10 MB should be a reasonable compromise for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104347</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-19 08:38:59 +0000</bug_when>
    <thetext>a-full ubuntu2404-vk-3 mathieu/master-next completed at 2026-02-18 23:43:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3240/steps/35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104465</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-02 08:35:49 +0000</bug_when>
    <thetext>a-full fedora42-vk-1 mathieu/master-next completed at 2026-02-27 22:37:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3300/steps/35/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105062</commentid>
    <comment_count>9</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-14 06:19:04 +0000</bug_when>
    <thetext>Maximum log size has been increased, and the error message has been made a bit more descriptive.

https://git.yoctoproject.org/error-report-web/commit/?id=3f98820ff32652be9dfc4d098cf3fe908e18b321
https://git.yoctoproject.org/error-report-web/commit/?id=b6e3b35a105e8c08fceca861931be872480c0d36</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>