Open yinfangchen opened 2 months ago
I'm currently experiencing the same issue. Steps to reproduce:
helm install hotelreservation DeathStarBench/hotelReservation/helm-chart/hotelreservation \
--namespace hotelreservation \
--create-namespace
kubectl describe pod -l app=frontend-hotelreservation -n hotelreservation
K8s Version:
Client Version: v1.29.6
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.3+k3s1
Access the frontend pod, run which frontend
to find the executable path inside the pod, and then update the frontend deployment file with this path under command:
. Thats how I solved my issue.
Access the frontend pod, run
which frontend
to find the executable path inside the pod, and then update the frontend deployment file with this path undercommand:
. Thats how I solved my issue.
This solved my case as well, now all the pods are running! Thanks @abmuslim!
I got the same error, have you solve this error @yinfangchen
I got the same error, have you solve this error @yinfangchen
The container's startup path is /workspace, and the container startup command in the geo-deployment.yaml file is ./geo, which results in a "file not found" error. The Go-compiled executable files are located in the GOPATH/bin directory, which in my case is /go/bin. Therefore, I changed ./geo to /go/bin/geo. Additionally, I noticed that the container.image in the cloned geo-deployment.yaml file is not the service image that was built in the previous steps, so I changed it directly to the service image geo that was built earlier.
Service deployed successfully
I got the following error from the events when deploying the hotel-reservation:
Normal Created 1s (x2 over 3s) kubelet Created container hotel-reserv-frontend │ Warning Failed 1s (x2 over 3s) kubelet Error: failed to start container "hotel-reserv-frontend": Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./frontend": stat ./frontend: no such file or directory: unknown
This error appears in every service: fontend, geo, profile, rate, recommendation, reservation, search, user.