Stuck at Tutorial: Docker Compose - upgrade traefik (manifest/v2)

Hey guys,

i am going through the docker compose update tutorial for understanding and stucking right now at the update of the docker compose.

I am at the tutorial on Step " Update your composition using delta " but there is an error after passing the app-gen command:

app-gen --artifact-name "${ARTIFACT_NAME}-v2" \
        --device-type "$DEVICE_TYPE" \
        --platform "$PLATFORM" \
        --application-name "$ARTIFACT_NAME" \
        --image docker.io/library/traefik:v2.9,docker.io/library/traefik:v2.10 \
        --orchestrator docker-compose \
        --manifests-dir ./manifests/v2 \
        --output-path artifact-v2.mender \
        --deep-delta \
        -- \
        --software-name "${ARTIFACT_NAME}" \
        --software-version "v2" \
        --depends "rootfs-image.${ARTIFACT_NAME}.version:v1"

Getting error:

declare -a images_shas=([0]="66c077549480f6828d39797ca3855e6299d0c1e7daf08d67cd62320c07515ff0" [1]="7bf33d2be1db3d2e3269b3f7952c276cbf9c1eaddc95c629257537490f8db2be")
/home/mender/bin/app-gen: line 291: parent2id[null] not set.

Any thoughts about this? Creation manifest/v1 worked like a charme.

I am using debian 12 as my workstation.

Linux mender-dev 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux

Hi @octaconnect,

Thanks for the heads up! I could reproduce it, and the tutorial unfortunately doesn’t point out the required tools on the host. For manifest v1, respectively app-gen artifact creation without deltas, it is:

  • jq
  • tree

For deltas, it is additionally

  • xdelta3
  • docker-compose (if you are using the docker-compose example)

Greetz,
Josef

Hm interesting, on my workstation and the device all packages are installed (jq, tree, xdelta3 and docker compose extension). I am using the extension docker compose (not docker-compose).

Still not working and the same error return.

Hi @octaconnect,

Please try to install docker-compose, and not just the extension variant. I don’t think that the app-gen script is fit for both variants.

Greetz,
Josef