Running test-network on an ARM SBC Chaincode issue


sbhaskar@...
 

Have been able to build the docker images for arm64 (see here - https://www.polarsparc.com/xhtml/Hyperledger-ARM-Build.html) and successfully setup the network (see here https://www.polarsparc.com/xhtml/Hyperledger-ARM-Test.html) ... the problem is the chaincode - was ale to deploy and commit to the peers ... but the chaincode docker container exits ... from the docker logs find the following:

2022/09/21 23:27:08 Error starting asset-transfer-basic chaincode: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org2.example.com on 192.168.1.1:53: no such host"
panic: Error starting asset-transfer-basic chaincode: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org2.example.com on 192.168.1.1:53: no such host"

goroutine 1 [running]:
log.Panicf({0x931e5b?, 0x4000092b80?}, {0x4000577f48?, 0x436058?, 0x80af80?})
    /usr/local/go/src/log/log.go:392 +0x6c
main.main()
    /chaincode/input/src/assetTransfer.go:21 +0xcc

Have tried the 'host.docker.internal' for the CORE_PEER_CHAINCODEADDRESS and nothing seems to help ...

Any ideas or suggestions ??


sbhaskar@...
 

Figured the issue - the NetworkMode in the peer config yaml and the docker compose environment variables CORE_VM_ENDPOINT and CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE had to be set with the correct values.