JVM experiments drill failed. Run following commands got error in container (Kubernetes Pod):
./blade prepare jvm --pid 1
{"code":63014,"success":false,"error":"`1`: get username failed by the process id, err: user: unknown userid 1000","result":"cdff374fa5e330be"}
./blade create jvm OutOfMemoryError --pid 1 --area HEAP
{"code":63014,"success":false,"error":"`1`: get username failed by the process id, err: user: unknown userid 1000","result":"3f8f49aeac1f5347"}
Describe what you expected to happen
JVM experiments drill succeed.
How to reproduce it (as minimally and precisely as possible)
Dockerfile (do not create user that userid=1000):
FROM eclipse-temurin:8-jdk-centos7
RUN mkdir /opt/app
COPY math-game.jar /opt/app
CMD ["java", "-jar", "/opt/app/math-game.jar"]
Issue Description
Type: bug report
Describe what happened (or what feature you want)
JVM experiments drill failed. Run following commands got error in container (Kubernetes Pod):
Describe what you expected to happen
JVM experiments drill succeed.
How to reproduce it (as minimally and precisely as possible)
kubectl exec
login to container ;Change current dir to somewhere can write. e.g.
/var/tmp
:Tell us your environment
Kubernetes: 1.28.9-aliyun.1 Worker Node: Alibaba Cloud Linux 3.2104 LTS 64-bit
Anything else we need to know?
ChaosBlade use os/user to get current user's username. So I tested following code in this container:
Got a same error: