Hyperledger Composer multi-user mode: ECONNREFUSED

2019-08-17 12:09发布

问题:

I've been following Caroline's blog to setup a multi-user composer rest server. So, I have two servers viz. Admin Server and the User Server.

As mentioned in the tutorial I:

  1. Started the Admin Server with no authentication and single user mode. I started this server with Admin's card.
  2. Started the User Server with JWT authentication in multi-user mode. I started this server with Admin's card as well.
  3. Created a User participant and generated a card for user from the admin server.
  4. Exchanged the first JWT token for this user on the User Server. So now the user has an access token.
  5. Using this access-token I imported the user's card generated in #3 into the User Server.
  6. Checked the Wallet status using user's access-token and was able to see the card to be set as default. i.e. default:true

This seems to have worked fine. However, now I'm trying to ping the network using User Server and User's access token. And it results in:

Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

I tried setting this card to be default again but with no luck. When I list the identities issued from the admin server, I'm able to see this identity. But the status of this identity is "ISSUED". While the status of admin identity is "ACTIVATED". Is this an issue?

Or am I missing out on any of the important step here?