cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error relocating

darkisdude
Newcomer_

Hi,

I would like to start to use dynatrace but I'm totally stuck with our setup.

```

FROM node:20-alpine

COPY --from=xxxxxxx.live.dynatrace.com/linux/oneagent-codemodules-musl:all / /
ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
ENV DT_LOGLEVELCON INFO

```

`docker build -t test .`

`docker run --rm -it test`

Then you have the full error here:

```

Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 16
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 18
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6

```

I'm using a MacBook PRO M3 (so ARM?).

3 REPLIES 3

darkisdude
Newcomer_
FROM node:20-alpine

#COPY --from=lap64308.live.dynatrace.com/linux/oneagent-codemodules-musl:all / /
#ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
#ENV DT_LOGLEVELCON INFO

ARG DT_API_URL="https://{environmentid}.live.dynatrace.com/api"
ARG DT_API_TOKEN="<token redacted>"
ARG DT_ONEAGENT_OPTIONS="flavor=default&include=all"
ENV DT_HOME="/opt/dynatrace/oneagent"
RUN mkdir -p "$DT_HOME" && \
wget -O "$DT_HOME/oneagent.zip" "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_API_TOKEN&$DT_ONEAGENT_OPTIONS" && \
unzip -d "$DT_HOME" "$DT_HOME/oneagent.zip" && \
rm "$DT_HOME/oneagent.zip"

ENTRYPOINT [ "/opt/dynatrace/oneagent/dynatrace-agent64.sh" ]

With the other way to install it

darkisdude
Newcomer_

And the answer: use the classic integration for build runtime (in the mentioned docs) and add the `arch=arm` reference? ARG DT_ONEAGENT_OPTIONS="flavor=musl&arch=arm&include=all"

Featured Posts