Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] : curl: (22) The requested URL returned error #8

Open
MyronRodrigues-StreetDrone opened this issue Jan 26, 2024 · 2 comments · May be fixed by #9
Open

[Error] : curl: (22) The requested URL returned error #8

MyronRodrigues-StreetDrone opened this issue Jan 26, 2024 · 2 comments · May be fixed by #9

Comments

@MyronRodrigues-StreetDrone
Copy link

MyronRodrigues-StreetDrone commented Jan 26, 2024

Curl fails on the link with a 404 error

ENV VERSION="4.1.5%2Brev1"
ENV BALENA_MACHINE_NAME="generic-amd64"
curl -fsSL "https://files.balena-cloud.com/images/${BALENA_MACHINE_NAME}/${VERSION}/kernel_source.tar.gz"

The only one that works is 2.115.8%2Brev1

Ive tried other newer and older versions too from 5.x.x to 3.x.x

@tyler-romero
Copy link

Same for

ENV VERSION="6.0.24%2Brev1"
ENV BALENA_MACHINE_NAME="generic-amd64"

And the one that worked in the post above doesnt seem to work anymore:

> curl -fsSL "https://files.balena-cloud.com/images/generic-amd64/2.155.8%2Brev1/kernel_source.tar.gz"
curl: (22) The requested URL returned error: 404

@TomEelbode
Copy link

In short: the filename has changed from kernel-modules-headers.tar.gz to kernel_modules_headers.tar.gz (_ instead of -).

How to fix:
Change the command in the Dockerfile to:

# Download the kernel source then prepare kernel source to build a module.
RUN \
    curl -fsSL "https://files.balena-cloud.com/images/${BALENA_MACHINE_NAME}/${VERSION}/kernel_modules_headers.tar.gz" \
        | tar xz --strip-components=2 && \
    make -C build modules_prepare -j"$(nproc)"

This worked for me with balenaOS 6.0.24+rev1 and machine_name generic-amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants