thegridman / coherence-k8s-example

0 stars 1 forks source link

Java Path issue running on Kubernetes #5

Open viju2008 opened 3 years ago

viju2008 commented 3 years ago

I ran the storage-service yaml on Oracle OKE and it gave the following Error. I am not sure why it is checking for Coherence 12.2.1.4.0

kubectl logs student-storage-1 -n coherence-demo-ns

INFO: Command: java java -cp /coherence-operator/utils/lib/:/app/resources:/app/classes:/app/classpath/:/app/libs/*:/coherence-operator/utils/lib/coherence-utils.jar:/coherence-operator/utils/config com.oracle.coherence.k8s.CoherenceVersion 12.2.1.4.0 ERROR: Coherence version check failed exec: "java": executable file not found in $PATH ERROR: exec: "java": executable file not found in $PATH

ubuntu@acsokecluster2:~/cohexample$ kubectl get pods -n coherence-demo-ns NAME READY STATUS RESTARTS AGE coherence-operator-5cdbd78888-vnn7h 1/1 Running 0 32m student-storage-0 0/1 CrashLoopBackOff 8 20m student-storage-1 0/1 CrashLoopBackOff 8 20m student-storage-2 0/1 Error 5 3m53s students-application-59bd8d6577-8j94m 1/1 Running 0 14m

When i run using Docker commands it works

viju2008 commented 3 years ago

Hello Jonathan, It may be possible that this issue has come since i have not been able to upgrade the operator to 3.1.0