Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/source/deploy_chaincode.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ Issue the [peer lifecycle chaincode install](commands/peerlifecycle.html#peer-li
peer lifecycle chaincode install basic.tar.gz
```

If the install fails with a `chaincode install failed with status: 500` error that includes
`could not build chaincode`, verify the Docker Engine server version with `docker version`.
Docker Engine v29 introduced a compatibility issue that caused broken-pipe failures during
peer-side chaincode builds in older Fabric releases. Upgrade to a Fabric release that includes
the Docker Engine v29+ fix, such as Fabric v3.1.4 or a current v2.5.x patch release.

If the command is successful, the peer will generate and return the package identifier. This package ID will be used to approve the chaincode in the next step. You should see output similar to the following:

```
Expand Down
10 changes: 10 additions & 0 deletions docs/source/test_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,16 @@ If you have any problems with the tutorial, review the following:
docker rm -f $(docker ps -aq)
docker rmi -f $(docker images -q)
```
- If you see the following error during chaincode installation:
```
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: write unix @->/run/docker.sock: write: broken pipe
```

check the Docker Engine **server** version with `docker version`. This symptom is associated
with Docker Engine v29 and older Fabric releases. Upgrade to a Fabric release that includes
the Docker Engine v29+ compatibility fix, such as Fabric v3.1.4 or a current v2.5.x patch
release.

- If you are running Docker Desktop on macOS and experience the following error during chaincode installation:
```
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer0.org1.example.com-basic_1.0-4ec191e793b27e953ff2ede5a8bcc63152cecb1e4c3f301a26e22692c61967ad-42f57faac8360472e47cbbbf3940e81bba83439702d085878d148089a1b213ca/json": dial unix /host/var/run/docker.sock: connect: no such file or directory
Expand Down