Skip to content
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

In local Traction setup, can't connect to the second Endorser (the bcovrin-dev one) #1031

Closed
loneil opened this issue Feb 28, 2024 · 9 comments
Assignees
Labels
Local Dev Running Traction locally and development

Comments

@loneil
Copy link
Contributor

loneil commented Feb 28, 2024

To reproduce

  • Start up local Traction with docker compose up
  • Create a tenant through Tenant UI
  • Go to Profile and try to connect to bcovrin-dev ledger

Connection stays in request state

In traction-agent logs can see a connection error

2024-02-28 10:48:48 2024-02-28 18:48:48,702 aries_cloudagent.transport.outbound.manager ERROR >>> Error when posting to: http://host.docker.internal:8001; Error: (<class 'aiohttp.client_exceptions.ClientConnectorError'>, ClientConnectorError(ConnectionKey(host='host.docker.internal', port=8001, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('192.168.65.254', 8001)")), <traceback object at 0x7f40665cd800>); Re-queue failed message ...

Connecting to BCOVRIN-TEST endorser is working fine.

Context about local endorsers:
Docker compose env starts up 2 endorsers for testing out ledger switching and things. (I don't like the naming of these and the env vals...)

"Endorser":
ACAPY_GENESIS_URL=http://test.bcovrin.vonx.io/genesis

"Endorser 1":
ACAPY_GENESIS_URL_1=http://dev.bcovrin.vonx.io/genesis

@swcurran
Copy link
Contributor

Side note — we’re going to get rid of all but BCovrin Test, so if you see any docs or anything that refers to BCovrin-dev, please eliminate it. BCovrin Dev, BCovrin Prod, Greenlight, etc. will be eliminated Real Soon Now.

@loneil
Copy link
Contributor Author

loneil commented Feb 28, 2024

Oh! good to know, thanks.

So if we want to maintain 2 local endorsers on ledgers we'd need to replace with another one

@swcurran
Copy link
Contributor

Yes — I would think Candy Dev might be OK.

@loneil
Copy link
Contributor Author

loneil commented Feb 28, 2024

Reference: bcgov/DITP#82

@loneil loneil added the Local Dev Running Traction locally and development label Feb 29, 2024
@loneil loneil self-assigned this Mar 20, 2024
@loneil loneil moved this to In Progress in CDT Enterprise Apps Mar 20, 2024
@esune
Copy link
Member

esune commented Mar 20, 2024

Can we close this now that BCovrin Dev has been decommissioned?

@loneil
Copy link
Contributor Author

loneil commented Mar 20, 2024

I'll need to tweak some things to alias them differently I think here.

@esune
Copy link
Member

esune commented Mar 20, 2024

Just peeking at the error again, not sure what port 8001 refers to since it doesn't seem to be anywhere in the codebase? Wondering if the error is a webhook delivery and the issue with BCovrin Dev is that it was NOT set to auto-endorse transactions?

@loneil
Copy link
Contributor Author

loneil commented Mar 27, 2024

@esune this is working now with changes from #1050
If that setup is all good we can close this

@loneil loneil moved this from In Progress to In Review in CDT Enterprise Apps Mar 27, 2024
@esune
Copy link
Member

esune commented Mar 27, 2024

Changes look good! Approved the PR, closed as resolved by #1050

@esune esune closed this as completed Mar 27, 2024
@loneil loneil moved this from In Review to Complete in CDT Enterprise Apps Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Local Dev Running Traction locally and development
Projects
Archived in project
Development

No branches or pull requests

3 participants