hyperledger / hyperledger/fabric

Instructions in "Running chaincode in development mode" tutorial lead to "bind: address already in use" error

Open
#3,136 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

The [tutorial](/docs/source/peer-chaincode-devmode.md) claims that no changes need to be made to [sampleconfig/core.yaml](/sampleconfig/core.yaml).

However, following the instructions leads to an error when starting the peer:
```shell
user@host:~/fabric$ FABRIC_LOGGING_SPEC=chaincode=debug CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 peer node start --peer-chaincodedev=true
...
Error: failed to initialize operations subsystem: listen tcp 127.0.0.1:9443: bind: address already in use
```

Per [this StackOverflow post](https://stackoverflow.com/questions/65387254/port-error-when-setting-up-dev-mode-of-hyperledger-fabric), this error can be fixed by changing the port the operations subsystem listens on.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.