elastic / apm-agent-php

Apache License 2.0
254 stars 69 forks source link

BAD SIGNATURE when installing on Alpine Linux #1149

Open gnd opened 7 months ago

gnd commented 7 months ago

Hello,

recently our Docker builds started to fail when trying to install APM agent from the APK package. The reason they fail is:

ERROR: apm-agent-php-1.13.0: BAD signature

This is the case with Alpine 3.17, Alpine 3.18 and Alpine 3.19 and with APM agent versions 1.12 and 1.13.

You can reproduce this by trying to build this Dockerfile:

FROM docker.io/alpine:3.19 as base

RUN apk update && apk upgrade 
RUN apk add ca-certificates wget && wget -q https://github.com/elastic/apm-agent-php/releases/download/v1.13.0/apm-agent-php_1.13.0_x86_64.apk
RUN apk add --allow-untrusted apm-agent-php_1.13.0_x86_64.apk

Thanks for checking this out !

apetrov1-godaddy commented 7 months ago

I have the same situation

intuibase commented 7 months ago

Hey @gnd @apetrov1-godaddy

Thank you for bug report and Dockerfile, it fails for me as well.

zyv4yk commented 7 months ago

same issue with agent version 1.10.0

zyv4yk commented 7 months ago

maybe similar to this issue: https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/11000#note_394799

gnd commented 7 months ago

The issue with the BAD SIGNATURE seems to be solved by reverting some changes in apk (see in the aforementioned Alpine Gitlab).

zyv4yk commented 7 months ago

yep, recheck with agent 1.10, this issue was solved in apk but still needs to be fixed before the release of apk-tools v3 as said in the apk-tool warning

Support for packages without datahash will be dropped in apk-tools 3.