apm-agent-php icon indicating copy to clipboard operation
apm-agent-php copied to clipboard

BAD SIGNATURE when installing on Alpine Linux

Open gnd opened this issue 3 months ago • 6 comments

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 !

gnd avatar Apr 10 '24 09:04 gnd

I have the same situation

apetrov1-godaddy avatar Apr 11 '24 11:04 apetrov1-godaddy

Hey @gnd @apetrov1-godaddy

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

intuibase avatar Apr 11 '24 11:04 intuibase

same issue with agent version 1.10.0

zyv4yk avatar Apr 11 '24 14:04 zyv4yk

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

zyv4yk avatar Apr 16 '24 09:04 zyv4yk

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

gnd avatar Apr 17 '24 15:04 gnd

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.

zyv4yk avatar Apr 18 '24 08:04 zyv4yk