hyperledger-labs / microfab

Microfab is a containerized Hyperledger Fabric runtime for use in development environments
Apache License 2.0
76 stars 22 forks source link

Relmain/docs #134

Closed mbwhite closed 1 year ago

JohanIskandar commented 1 year ago

Hello @mbwhite,

Thank you for updating the doc. However, there is still an issue when executing chaincode install

$peer lifecycle chaincode install $(pwd)/asset-transfer-basic-typescript.tgz

Error: failed to retrieve endorser client for install: endorser client failed to connect to org1peer-api.127-0-0-1.nip.io:8080: failed to create new connection: context deadline exceeded

Could you please let me know what causes the problem and to fix this. Thanks.

regards,

Johan

mbwhite commented 1 year ago

Hello @JohanIskandar

Sorry this didn't work for you, the version of the the microfab image - was it the ghcr.io listed in the tutorial ( and not the old ibmcom image?

One issue could well be that nip.io service that is used; it's not unknown for some networks/DNS to refused to resolve this name. Could you try..

ping server.127-0-0-1.nip.io
# or
dig server.127-0-0-01.nip.io

And see if they work please. As a reference I get...

ping server.127-0-0-1.nip.io
PING server.127-0-0-1.nip.io (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.488 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.035 ms
^C
--- server.127-0-0-1.nip.io ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1024ms
rtt min/avg/max/mdev = 0.035/0.261/0.488/0.226 ms
➜  ~ dig server.127-0-0-1.nip.io

; <<>> DiG 9.16.1-Ubuntu <<>> server.127-0-0-1.nip.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 681
;; flags: qr rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;server.127-0-0-1.nip.io.       IN      A

;; ANSWER SECTION:
server.127-0-0-1.nip.io. 0      IN      A       127.0.0.1

;; Query time: 0 msec
;; SERVER: 172.22.192.1#53(172.22.192.1)
;; WHEN: Wed Jan 25 09:04:53 GMT 2023
;; MSG SIZE  rcvd: 80