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

Installation failed in Docker + Kubernetes

earisumi
Newcomer

Hi there,

In the environment of Kubernetes, we implemented the following procedure.

https://www.dynatrace.com/support/help/cloud-platf...

Since Java is used, we made the following settings.

Dockerfile FROM openjdk:8-jdk-alpineCOPY ./app.jar app.jar
ARG DT_API_URL="https://<environmentID>.live.dynatrace.com/api"
ARG DT_API_TOKEN="<token>"
ARG DT_ONEAGENT_OPTIONS="flavor=default&include=java"
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" ]
CMD [ "java", "-jar", "app.jar" ]

*EnviromentID and tokens hide values

However, it seems that the setting is not done well, and data could not be acquired.

======================================================
/opt/dynatrace/oneagent/log/process # ls
ruxitagentproc_2018-07-06.log
/opt/dynatrace/oneagent/log/process # more ruxitagentproc_2018-07-06.log
2018-07-06 05:30:49 UTC [ 1] info [general ] version 1.145.224.20180626-102407, 64 bit, exe: "/usr/lib/jvm/java-1.8-openjdk/jre/bin/java"
2018-07-06 05:30:49 UTC [ 1] severe [hooking ] Injection of java agent failed: No java agent found /opt/dynatrace/oneagent/agent/libmusl64
======================================================

Java injection seems to have failed. Please tell me how to improve and what to check.

Regards,

Eisuke Arisumi


2 REPLIES 2

alois_mayr
Dynatrace Advisor
Dynatrace Advisor

Hi - It seems your app is based on an alpine image. Please follow the instruction in https://www.dynatrace.com/support/help/cloud-platf... for "What if my Docker image is based on Alpine Linux?"

Alois


Hi Alois

Thank you for your answer.I will do it.Regards,Eisuke

Featured Posts