algorand / algorand/go-algorand

Incorrect logs when network not started because of incorrect EndpointAddress setting

Aperta
#2,192 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug external contribution good first issue / help wanted Team Carbon-11
Lingua principale
Go
Stelle
1.4k
Fork
537
Merge medio
1g 7h
PR unite (30g)
18

Descrizione

### Subject of the issue

Node can't be started. The log says that it was started.

### Your environment

* Software version: `algod -v`
8590262278
2.5.6.stable [rel/stable] (commit #219b78d9)

* Node status if applicable: `goal node status -d Node`
Cannot contact Algorand node: open Node/algod.net: no such file or directory

* Operating System details.
macOS 11.0.1

### Steps to reproduce

Using a private network, if I enter an invalid endpoint address settings in the node's `config.json`, like this:
```
"EndpointAddress": "http://127.0.0.1:53630"
```
The node doesn't start:
```
Algorand node failed to start: node exited with an error code, check node.log for more details : exit status 1
```

### Expected behaviour

The log should have an error message and not say that the node was started.

### Actual behaviour

The log seemingly has nothing related to this error. It says that the node was successfully started:

> ++++++++++++++++++++++++++++++++++++++++
> Logging Starting
> Telemetry Disabled
> ++++++++++++++++++++++++++++++++++++++++
> {"file":"trace.go","function":"github.com/algorand/go-algorand/agreement.makeTracer","level":"info","line":94,"msg":"agreement: cadaver set to agreement","time":"2021-05-26T10:12:06.817172+02:00"}
> {"details":{"Address":"U2R5R5A4KMB3Y2KL2CV3PU7RMQFLOJZ7PA5MOS4L7Y4B63HKIEO2KWYJ2I","FirstValid":0,"LastValid":3000000},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"6xfU8QnmSUO3qZix","level":"info","line":212,"msg":"/Accounts/PartKeyRegistered","session":"","time":"2021-05-26T10:12:06.825236+02:00"}
> {"details":{"Address":"U2R5R5A4KMB3Y2KL2CV3PU7RMQFLOJZ7PA5MOS4L7Y4B63HKIEO2KWYJ2I"},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"6xfU8QnmSUO3qZix","level":"info","line":212,"msg":"/Accounts/AccountRegistered","session":"","time":"2021-05-26T10:12:06.825344+02:00"}
> {"file":"node.go","function":"github.com/algorand/go-algorand/node.(*AlgorandFullNode).loadParticipationKeys","level":"info","line":760,"msg":"Loaded participation keys from storage: U2R5R5A4KMB3Y2KL2CV3PU7RMQFLOJZ7PA5MOS4L7Y4B63HKIEO2KWYJ2I Wallet2.0.3000000.partkey","name":"","time":"2021-05-26T10:12:06.825404+02:00"}
> {"file":"interface.go","function":"github.com/algorand/go-algorand/network/messagetracer.NewTracer","level":"info","line":53,"msg":"graphtrace factory DISabled","time":"2021-05-26T10:12:06.825758+02:00"}
> {"details":{"Version":"2.5.6","CommitHash":"219b78d9","Branch":"rel/stable","Channel":"stable","InstanceHash":"SEYVW4NIS3Z6AG3IYTQPLAVMJ44CYWKFI5N2SXLI64RRKUK6TM5Q"},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"6xfU8QnmSUO3qZix","level":"info","line":212,"msg":"/ApplicationState/Startup","session":"","time":"2021-05-26T10:12:06.826616+02:00"}
> {"file":"server.go","function":"github.com/algorand/go-algorand/daemon/algod.(*Server).Start","level":"info","line":156,"msg":"Trying to start an Algorand node","time":"2021-05-26T10:12:06.826695+02:00"}
> {"file":"wsNetwork.go","function":"github.com/algorand/go-algorand/network.(*WebsocketNetwork).Start","level":"info","line":760,"msg":"serving genesisID=private-v1 on \"http:\" with RandomID=U8vp9FuCrv9Tzw==","name":"","time":"2021-05-26T10:12:06.826797+02:00"}
> {"details":{"Metrics":{"branch":"rel/stable","channel":"stable","commit-hash":"219b78d9","ledger_accountsinit_count":"1","ledger_accountsinit_micros":"20132","ledger_blockq_getblock_count":"1320","ledger_blockq_getblock_micros":"55675","ledger_blockq_getblockhdr_count":"2","ledger_blockq_getblockhdr_micros":"174","ledger_blockq_init_count":"1","ledger_blockq_init_micros":"54","ledger_initblocksdb_count":"1","ledger_initblocksdb_micros":"139","ledger_verifygenhash_count":"1","ledger_verifygenhash_micros":"71","version":"2.5.6","version-num":"8590262278"}},"file":"telemetry.go","function":"github.com/algorand/go-algorand/logging.(*telemetryState).logTelemetry","instanceName":"6xfU8QnmSUO3qZix","level":"info","line":212,"msg":"/ApplicationState/Heartbeat","session":"","time":"2021-05-26T10:12:06.826827+02:00"}
> {"file":"node.go","function":"github.com/algorand/go-algorand/node.(*AlgorandFullNode).Start","level":"info","line":370,"msg":"Indexer is not available - indexer is not active","name":"","time":"2021-05-26T10:12:06.827206+02:00"}
> {"file":"server.go","function":"github.com/algorand/go-algorand/daemon/algod.(*Server).Start","level":"info","line":159,"msg":"Successfully started an Algorand node.","time":"2021-05-26T10:12:06.827277+02:00"}

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.