0

I have follow Hyperledger Composer here and all step is done.
But when i restart my PC and try to connect to Hyperledger Composer via command 'composer-rest-server' have error like this:
enter image description here

Discovering types from business network definition ...
Connection fails: Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
It will be retried for the next request.
Exception: Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
at _checkRuntimeVersions.then.catch (/home/linux-user/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:713:34)
at <'anonymous'>

Please help! Thank You.

MAhipal Singh
  • 4,745
  • 1
  • 42
  • 57
Dara Sok
  • 59
  • 1
  • 8

2 Answers2

0

See this answer for restarting the underlying Fabric before starting the REST Server.

R Thatcher
  • 5,550
  • 1
  • 7
  • 15
0

When you restart your system, you also shut down all running docker containers. Restart containers(your blockchain network) before launching composer rest server.