title: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED
body: <p>I am trying to run the Hyperledger fabric Tuna app and getting the below error when running the <code>regiseterAdmin.js</code> </p>
  
  <pre><code>  Store path:/home/chaindev/.hfc-key-store
  Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]
      at ClientRequest.&lt;anonymous&gt; (/home/chaindev/fabricProjects/src/github.com/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-ca-client/lib/FabricCAClientImpl.js:711:12)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at Socket.socketErrorListener (_http_client.js:387:9)
      at emitOne (events.js:116:13)
      at Socket.emit (events.js:211:7)
      at emitErrorNT (internal/streams/destroy.js:64:8)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)
  Failed to enroll admin: Error: Failed to enroll admin
  </code></pre>