IBM-Blockchain-Archive / ibm-container-service

IBM Blockchain Platform for Developers on IBM Container Service
Apache License 2.0
89 stars 73 forks source link

Unable to reach the REST server: ERR_CONNECTION_REFUSED #117

Closed gitjps closed 6 years ago

gitjps commented 6 years ago

I followed the instructions on https://ibm-blockchain.github.io/interacting/.

bx cs workers blockchain : lists Card PeerAdmin@hlfv1

businessNetworkName is empty

$ composer card list --card PeerAdmin@hlfv1
userName:            PeerAdmin
description:         
businessNetworkName: 
identityId:          114aab0e76bf0c78308f89efc4b8c9423e31568da0c340ca187a9b17aa9a4457
roles: 
  - PeerAdmin
  - ChannelAdmin
connectionProfile: 
  name:    hlfv1
  channel: composerchannel
credentials:         Credentials set

Created 2nd card:

./create/create_composer-rest-server.sh --business-network-card perishable-network
...
Composer rest server created successfully

Pinging the 1st card:

$  composer network ping -c PeerAdmin@hlfv1 
Using default API endpoint: {{.Endpoint}}
OK
OK
ID                                                 Public IP         Private IP      Machine Type   State    Status   Zone    Version   
kube-mil01-paa873e781feac4583a788cc62033f1732-w1   159.122.179.121   10.144.180.38   free           normal   Ready    mil01   1.10.5_1519   
MacBook-Pro-3:scripts jps$  composer network ping -c PeerAdmin@hlfv1 
Error: No connection type provided, probably because the connection profile has no 'x-type' property defined.
Command failed

Pinging the 2nd card:

$  composer network ping -c admin@perishable-network
Error: Card not found: admin@perishable-network
Command failed

bx cs workers blockchain : lists Card PeerAdmin@hlfv1 only

composer card list: only PeerAdmin@hlfv1

http://159.122.179.121:31090/explorer/: ERR_CONNECTION_REFUSED

Maybe I used a wrong business network ID perishable-network?

davidkel commented 6 years ago

In the step

cd cs-offerings/scripts/
 ./create/create_composer-rest-server.sh --business-network-card INSERT_BIZCARD_NAME

The business network card name should be admin@perishable-network

So the command looks like

cd cs-offerings/scripts/
 ./create/create_composer-rest-server.sh --business-network-card admin@perishable-network

You need to delete the rest server pod first by doing

./delete/delete_composer-rest-server.sh

and recreate the rest server

gitjps commented 6 years ago

thx, running ok now