Arisumi E. avatar image
Arisumi E. asked ·

Installation failed in Docker + Kubernetes

Hi there,

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

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>"
ARG DT_API_TOKEN="<token>"
ARG DT_ONEAGENT_OPTIONS="flavor=default∈clude=java"
ENV DT_HOME="/opt/dynatrace/oneagent" RUN mkdir -p "$DT_HOME" && \ wget -O "$DT_HOME/" "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_API_TOKEN&$DT_ONEAGENT_OPTIONS" && \ unzip -d "$DT_HOME" "$DT_HOME/" && \ rm "$DT_HOME/" ENTRYPOINT [ "/opt/dynatrace/oneagent/" ]
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, 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.


Eisuke Arisumi

10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Alois M. avatar image
Alois M. answered ·

Hi - It seems your app is based on an alpine image. Please follow the instruction in for "What if my Docker image is based on Alpine Linux?"


1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hi Alois

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

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions diagnostic tools session replay permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX timestamp action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android