dapr / dapr/java-sdk

Unable to deploy dapr application using Dockerfile

Aperta
#565 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Java
Stelle
300
Fork
230
Merge medio
5g 1h
PR unite (30g)
5

Descrizione

## Expected Behavior

Successfully able to deploy and run the container

## Actual Behavior

Container is unable to start and generating the below logs:

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 29s default-scheduler Successfully assigned dapr-system/currency-exchange-6c4fdcbb88-wh9mp to gke-k8s-poc-istio-default-pool-35bfdde6-m30w
Normal Pulled 28s kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Successfully pulled image "naichowdhury/daprcurrencyexchange:0.0.2" in 508.1759ms
Normal Pulled 27s kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Successfully pulled image "naichowdhury/daprcurrencyexchange:0.0.2" in 516.241312ms
Normal Pulling 12s (x3 over 28s) kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Pulling image "naichowdhury/daprcurrencyexchange:0.0.2"
Normal Created 12s (x3 over 28s) kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Created container currency-exchange
Normal Pulled 12s kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Successfully pulled image "naichowdhury/daprcurrencyexchange:0.0.2" in 509.781022ms
Warning Failed 11s (x3 over 28s) kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Error: failed to start container "currency-exchange": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"dapr\": executable file not found in $PATH": unknown
Warning BackOff 7s (x3 over 26s) kubelet, gke-k8s-poc-istio-default-pool-35bfdde6-m30w Back-off restarting failed container

## Steps to Reproduce the Problem

Using the attached docker file and deployment file to deploy my application in my GKE cluster where already dapr is installed:

[Dockerfile.txt](https://github.com/dapr/java-sdk/files/6636413/Dockerfile.txt)
[deployment.txt](https://github.com/dapr/java-sdk/files/6636415/deployment.txt)

Note:

Have installed dapr in both the remote machine and my local machine (since am using the google cloud sdk shell to run the deployment files from my local)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Leggi prima i file allegati Dockerfile.txt e deployment.txt, quindi riproduci il deployment nell’ambiente GKE indicato e verifica come viene avviato il container. Confronta il comando di avvio con gli eseguibili disponibili e verifica che il container distribuito si avvii correttamente senza l’errore missing-dapr segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, google-cloud, java, kubernetes
Ambito
cloud, devops, infrastructure
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
40/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.