-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I activate the endorser in a docker-compose instance of Traction? #650
Comments
Update -- on the Endorser side, there is no connection. I was misreading the Swagger output. No connection request has been received by the Endorser AFAICT. |
Some progress. Reviewing the Endorser logs exposed the following (see below). Got past that by adding
|
After the previous fix was applied, a problem still exists. When the endorser is trying to respond to the connection request from the Tenant, it is getting a 403. Likely something in the Docker setup.
|
Further progress -- in my setup, "localhost" must be defined as the IP address of the machine running docker. Updated that, and I now can connect to the Endorser. Failing on the "Register Public DID". Looking at the logs for the Endorser, it is trying to register the DID, but failing, getting a VDR Timeout. I've confirmed that the genesis file for the ledger is correct. Sigh...
|
The issue appears to be with BCovrin Test: the ledger is taking too long to respond, and it is causing the VDR timeout error. A similar result is achievable by using the ledger browser and searching for anything, as an example the nym I suspect the problem might be the resources assigned to run the test ledger as it has grown in size exponentially. I will need to loop in @WadeBarnes to assess/increase resources as I do not have access to it anymore (new machine, new keys, etc.). We recently bumped the resources by quite a bit, but it seems like it might not be quite enough. In the meantime, a couple of recommendations/suggestions for your scenario (if you haven't already done so):
|
@swcurran, BCovrin Test was having some issues yesterday. I had to restart a couple nodes over the course of a couple hours. Things are looking better today if you'd like to try again. |
I tried submitting a query to the ledger browser and it succeeded this time, although after a LONG wait. I am, however, getting an error when trying to start-up the agents: it appears that they are unable to fetch the genesis transaction successfully. |
Everything seems to be working fine now - I just tried and both endorser connection and public DID assignment work as expected. |
There is definitely a difference in response time between resolving a DID and querying the ledger via the Ledger Browser. We need to fix up the ledger browser to deal with the volume of entries — e.g. limit the “search” to DIDs and index the transactions by DIDs on the ledger. Or use IndyScan instead. |
Logged the ledger browser stuff in its repo: bcgov/von-network#266 |
I had to restart things again this morning at 7ish. The nodes had lost consensus some time yesterday, so writes weren't happening, and new connections may have been affected. |
Cool — I’ll give it a try. |
Extending this vs. opening a new issue. I updated to the latest Traction, and then tried it, using a new DID that is unique to me setup. I registered the DID on BCovrin Test and confirmed it is there. Then I restarted everything and went through this sequence:
I then reverted to before the most recent merge and restarted -- commit bc4558b. Rebuilt, restarted and repeated the steps and everything worked to the point above. @esune --- should I open a separate issue on that or could it have been something else. With that working, I went into the Tenant and tried to become an issuer (User -> Profile -> Endorser) and the connection to the Endorser could not be established. Don't know what that was -- perhaps my ngrok had been active too long? |
Logs on error with current main branch: Error is AxiosError: Request fails with status 404
|
@swcurran I just checked out the latest main (d3c3be5, rebuilt everything and starting from scratch and was able to connect to the endorser and create a public DID without issues. I would suggest trying starting with a clean slate again. Additionally, if you customized settings in the The stack trace seems to indicate the id of the innkeeper tenant is undefined in the request, and this is causing an error. |
I have Traction running locally using docker compose. I'd like to use the Endorser to be able to write transactions to the BCovrin Network. Here's how far I have gotten so far:
In the Traction Dashboard -> User -> Profile -> Endorser, there is a message
Innkeeper has not approved endorser connections.
In the Innkeeper -> Tenants -> Settings I can activate the Endorser and registering a Public DID.
Back in the Traction Dashboard -> User -> Profile -> Endorser, I can now toggle the "Connect Tenant To Endorser", but after activating it, the status stays at
Connection not Active yet, refresh or come back later. State: request
.I tried looking at the Endorser side, and according to the "Get Connections" endpoint, the Endorser
has one connection and it is activehas no connections.What do I do next? I think the .env settings are all correct, but not sure...what should I be checking?
The text was updated successfully, but these errors were encountered: