Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Multi App Run - Stop processing and exit when there is error in daprd startup

Aperta
#1,257 5 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Individua il comando Multi App Run e il relativo percorso di avvio e gestione degli errori di daprd. Riproduci il fallimento segnalato nel caricamento del componente usando la configurazione mancante dei broker Kafka, quindi verifica che l’errore compaia nella console, che le app successive non vengano elaborate e che il processo termini.

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

Descrizione

kind/bug pinned

Expected Behavior

It should provide details of the error, stop processing further apps and exit the process.

Actual Behavior

When there is error in daprd startup, for example loading of components etc then there is no error logs on the console and it console logs gives indication of all successful steps.

⚠  This is a preview feature and subject to change in future releases.
ℹ️  Validating config and starting app "addapp"
ℹ️  Started Dapr with app id "addapp". HTTP Port: 3503. gRPC Port: 61181
ℹ️  Writing log files to directory : /Users/pravin/work/quickstarts/tutorials/distributed-calculator/go/.dapr/logs
ℹ️  Validating config and starting app "subtractapp"
Listening on port 4000!
ℹ️  Started Dapr with app id "subtractapp". HTTP Port: 3502. gRPC Port: 61215
ℹ️  Writing log files to directory : /Users/pravin/work/quickstarts/tutorials/distributed-calculator/node/.dapr/logs
ℹ️  Validating config and starting app "multiplyapp"

This does take extra time because behind the scene below is happening (actual daprd logs in log file)-

time="2023-03-09T15:11:17.224749+05:30" level=fatal msg="process component pubsub error: [INIT_COMPONENT_FAILURE]: initialization error occurred for pubsub (pubsub.kafka/v1): kafka error: missing 'brokers' attribute" app_id=addapp instance=Pravins-MacBook-Pro.local scope=dapr.runtime type=log ver=1.10.2
The daprd process exited with error code: exit status 1
Could not update sidecar metadata for cliPID: PUT http://127.0.0.1:3503/v1.0/metadata/cliPID giving up after 5 attempt(s): Put "http://127.0.0.1:3503/v1.0/metadata/cliPID": dial tcp 127.0.0.1:3503: connect: connection refused
Could not update sidecar metadata for runFile: PUT http://127.0.0.1:3503/v1.0/metadata/runTemplatePath giving up after 5 attempt(s): Put "http://127.0.0.1:3503/v1.0/metadata/runTemplatePath": dial tcp 127.0.0.1:3503: connect: connection refused
Updating metadata for app command: go run app.go
Could not update sidecar metadata for appCommand: PUT http://127.0.0.1:3503/v1.0/metadata/appCommand giving up after 5 attempt(s): Put "http://127.0.0.1:3503/v1.0/metadata/appCommand": dial tcp 127.0.0.1:3503: connect: connection refused
Updating metadata for appPID: 46924
Could not update sidecar metadata for appPID: PUT http://127.0.0.1:3503/v1.0/metadata/appPID giving up after 5 attempt(s): Put "http://127.0.0.1:3503/v1.0/metadata/appPID": dial tcp 127.0.0.1:3503: connect: connection refused
You're up and running! Dapr logs will appear here.

Steps to Reproduce the Problem

Release Note

RELEASE NOTE: FIX Improve console logs of daprd in error scenarios for Multi App Run

Lingua principale
Go
Stelle
353
Fork
220
Merge medio
6g 16h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dapr/cli

Tutte le issue di dapr/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.