Skip to content

docker-compose RAW image URL reports 404 #127

Closed
@genzj

Description

@genzj

systemd-sysupdate failed and seeing following log in journalctl -xe -u systemd-sysupdate.service

Mar 26 19:59:37 localhost systemd-sysupdate[617743]: \ Acquiring https://extensions.flatcar.org/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw → /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw...
Mar 26 19:59:37 localhost systemd-sysupdate[617745]: Pulling 'https://extensions.flatcar.org/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw', saving as '/opt/extensions/docker-compose/.#sysupdatedocker-compose-2.34.0-x86-64.raw8547f5c30572d594'.
Mar 26 19:59:38 localhost systemd-sysupdate[617745]: HTTP request to https://extensions.flatcar.org/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw failed with code 404.
Mar 26 19:59:38 localhost systemd-sysupdate[617745]: Failed to retrieve image file.

A working URL is https://extensions.flatcar.org/extensions/docker-compose-2.34.0-x86-64.raw, which does not include the docker-compose/ portion before the image name.

It appears to be related to the Caddy file change in #124. The pulling URL matches the following rule and is redirected to https://github.com/flatcar/sysext-bakery/releases/download/docker-compose/docker-compose-2.34.0-x86-64.raw, but it lacks the version in /docker-compose/ portion.

# Sysupdate or extension image with explicit release sub-path.
# /<release>/<extension-conf-or-raw>
# ==> https://[...]/releases/download/<release>/<extension-conf-or-raw>
# Match groups: 1 - release, 2 - filename, 3 - suffix
@expl path_regexp expl ^.*/extensions/([^/]+)/([^/]+).(conf|raw)$
redir @expl {vars.base_dest_url}/{re.expl.1}/{re.expl.2}.{re.expl.3}

The expected redir target should be https://github.com/flatcar/sysext-bakery/releases/download/docker-compose-2.34.0/docker-compose-2.34.0-x86-64.raw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions