Distrobuilder error, Error while downloading source: Failed to get latest build: Unable to find latest build

Hi everybody,
I have no experience with the distrobuilder, recently I have tried in fedora/40 incus vm and get the following error.

[root@testfedora test]# distrobuilder build-incus ../fedora.yaml
INFO   [2024-06-28T13:12:16Z] Downloading source
Error: Error while downloading source: Failed to get latest build: Unable to find latest build
ERROR  [2024-06-28T13:12:17Z] Failed running distrobuilder                  err="Error while downloading source: Failed to get latest build: Unable to find latest build"
INFO   [2024-06-28T13:12:17Z] Removing cache directory

I have downloaded fedora.yaml file from https://github.com/lxc/lxc-ci/blob/main/images/fedora.yaml
Thanks for the feedback.
Regards.

Our production YAMLs are partial and depend on additional flags being passed through the command line. You typically need to provide image.release, image.architecture and image.variant.

In this case, you should try -o image.architecture=x86_64 -o image.release=40 -o image.variant=default

Thanks for the quick response. :+1:

To find such parameters, you would

  1. Visit https://jenkins.linuxcontainers.org/
  2. Click on image-fedora for your case.
  3. From the Permalinks click on Last successful build.
  4. From the Configuration matrix select a distro version and architecture.
  5. Finally, click on Console Output.

Sample output

+ distrobuilder --cache-dir /root/build/cache/ --timeout 1800 build-dir image.yaml rootfs -o image.serial=20240627_20:33 -o image.architecture=x86_64 -o image.release=40 -o image.variant=cloud
1 Like

Thanks Simos for the additional info.
Regards.