Bug 16165 - upload-error-reports: HTTP Error 400: Bad Request
Summary: upload-error-reports: HTTP Error 400: Bad Request
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.0 M3
Assignee: Mathieu Dubois-Briand
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-02-09 12:07 UTC by Mathieu Dubois-Briand
Modified: 2026-04-14 06:19 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2026-02-09 12:07:33 UTC
I thought I already had opened such a ticket, but can'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 ['/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/upload-error-reports', '/srv/pokybuild/yocto-worker/a-full/build/build', 'https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3169'] failed
program finished with exit code 0

I believe the issue comes from the request we are making to errors.yoctoproject.org.
Comment 1 Mathieu Dubois-Briand 2026-02-09 12:14:28 UTC
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&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&master completed at 2026-02-08 04:54:18+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3177/steps/35/logs/stdio
Comment 2 Mathieu Dubois-Briand 2026-02-09 12:17:23 UTC
Adding a commit in my branch, so send-error-report always shows debug messages. Hopefully there is something interesting in there.
Comment 3 Mathieu Dubois-Briand 2026-02-10 10:19:52 UTC
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
Comment 4 Mathieu Dubois-Briand 2026-02-12 07:59:18 UTC
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&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
Comment 5 Mathieu Dubois-Briand 2026-02-12 08:04:05 UTC
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: {'Content-type': 'application/json', 'User-Agent': 'send-error-report/0.4'}
DEBUG: Request Data: {
    "branch_commit": "mathieu/master-next: unknown",
    "build_sys": "unknown",
    "component": "bitbake",
    "distro": "poky",
    "email": "",
    "error_type": "oe-selftest",
    "failures": [
        {
            "log": "(long log data)",
            "package": "bitbake",
            "task": "oe-selftest -a -t yocto-mirrors -j 15"
        }
    ],
    "link_back": "https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3194",
    "machine": "unset",
    "nativelsb": "unknown",
    "target_sys": "unknown",
    "username": "yp-ab-debian12-vk-8"
}

Server replied with:
ERROR: HTTP Error 400: Bad Request
DEBUG: Response Content: 
<!doctype html>
<html lang="en">
<head>
  <title>Bad Request (400)</title>
</head>
<body>
  <h1>Bad Request (400)</h1><p></p>
</body>
</html>

So someone should probably play a bit with errors.yoctoproject.org to understand  how this request is bad.
Comment 6 Mathieu Dubois-Briand 2026-02-13 14:29:36 UTC
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'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.
Comment 7 Mathieu Dubois-Briand 2026-02-19 08:38:59 UTC
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
Comment 8 Mathieu Dubois-Briand 2026-03-02 08:35:49 UTC
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
Comment 9 Mathieu Dubois-Briand 2026-04-14 06:19:04 UTC
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