hashgraph / hedera-local-node

Run your own local Hedera network for development purposes.
Apache License 2.0
73 stars 58 forks source link

Startup fails to connect to port 5600 #818

Closed Nana-EC closed 3 weeks ago

Nana-EC commented 1 month ago

Description

When following the startup descriptions on how-to-set-up-a-hedera-local-node the step fails with [Hedera-Local-Node] ERROR (StartState) [✘] Something went wrong, while trying to connect to port 5600

In docker I then see that under the hedera-local-node group on 3 (hedera-explorer, havegd and relay-cache)of the 19 containers are running.

This is the full console stack

... % npm run start -- -d

> @hashgraph/hedera-local@2.31.0 start
> npm run build && node ./build/index.js start -d

> @hashgraph/hedera-local@2.31.0 build
> rimraf ./build && tsc

[Hedera-Local-Node] INFO (StateController) [✔︎] Starting start procedure!
[Hedera-Local-Node] INFO (InitState) ⏳ Making sure that Docker is started and it is correct version...
[Hedera-Local-Node] INFO (DockerService) ⏳ Checking docker compose version...
[Hedera-Local-Node] INFO (DockerService) ⏳ Checking docker resources...
[Hedera-Local-Node] INFO (InitState) ⏳ Setting configuration with latest images on host 127.0.0.1 with dev mode turned off using turbo mode in single node configuration...
[Hedera-Local-Node] INFO (InitState) [✔︎] Local Node Working directory set to /Users/nanaessilfie-conduah/Library/Application Support/hedera-local.
[Hedera-Local-Node] INFO (InitState) [✔︎] Hedera JSON-RPC Relay rate limits were disabled.
[Hedera-Local-Node] INFO (InitState) [✔︎] Needed environment variables were set for this configuration.
[Hedera-Local-Node] INFO (InitState) [✔︎] Needed bootsrap properties were set for this configuration.
[Hedera-Local-Node] INFO (InitState) [✔︎] Needed bootsrap properties were set for this configuration.
[Hedera-Local-Node] INFO (InitState) [✔︎] Needed mirror node properties were set for this configuration.
[Hedera-Local-Node] INFO (StartState) ⏳ Starting Hedera Local Node...
[Hedera-Local-Node] INFO (RecoveryState) ⏳ Starting Recovery State...
[Hedera-Local-Node] INFO (RecoveryState) ⏳ Trying to startup again...
[Hedera-Local-Node] INFO (StartState) ⏳ Detecting network...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] ERROR (StartState) [✘] Something went wrong, while trying to connect to port 5600
[Hedera-Local-Node] INFO (CleanUpState) ⏳ Initiating clean up procedure. Trying to revert unneeded changes to files...
[Hedera-Local-Node] INFO (CleanUpState) [✔︎] Clean up of consensus node properties finished.
[Hedera-Local-Node] INFO (CleanUpState) [✔︎] Clean up of mirror node properties finished.

Steps to reproduce

FOllow how-to-set-up-a-hedera-local-node the steps

In a new folder

  1. git clone https://github.com/hashgraph/hedera-local-node.git
  2. cd hedera-local-node
  3. npm install
  4. npm run start -- -d

Additional context

No response

Hedera network

other

Version

v2.31.0

Operating system

macOS

Nana-EC commented 1 month ago

Potentially related. I saw the same behaviour when runnign npm run start -- -d --verbose=trace In this case I saw

...
[Hedera-Local-Node] INFO (InitState) [✔︎] Local Node Working directory set to /Users/<localUserName>/Library/Application Support/hedera-local
...
[Hedera-Local-Node] DEBUG (DockerService) Error response from daemon: Mounts denied:
[Hedera-Local-Node] DEBUG (DockerService) The path /Users/<localUserName>/Library/Application Support/hedera-local/network-logs/node/accountBalances/balance0.0.3 is not shared from the host and is not known to Docker.
[Hedera-Local-Node] DEBUG (DockerService) You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
[Hedera-Local-Node] DEBUG (DockerService) See https://docs.docker.com/desktop/settings/mac/#file-sharing for more info.
[Hedera-Local-Node] INFO (StartState) ⏳ Detecting network...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] INFO (ConnectionService) Mirror Node GRPC not yet available at: 127.0.0.1:5600. Retrying...
[Hedera-Local-Node] ERROR (StartState) [✘] Something went wrong, while trying to connect to port 5600

When I Adding the local store dir to the Virtual file shares (Docker Settings -> Reosurces -> File Sharin) it fixed the problem. However this isn't documented. I'm using Docker desktop 4.35.0