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

Micro-services fight for signing credentials #58

Open
8e8b2c opened this issue Aug 1, 2024 · 1 comment
Open

Micro-services fight for signing credentials #58

8e8b2c opened this issue Aug 1, 2024 · 1 comment

Comments

@8e8b2c
Copy link
Collaborator

8e8b2c commented Aug 1, 2024

Launching the various services that attach to the authority agent in unison sometimes fails thus:

webhook-1               | Connecting to holochain admin websocket
webhook-1               | Authorising holochain signing credentials
webhook-1               | internal_error: Attempted to commit a bundle to the source chain, but the source chain head has moved since the bundle began. Bundle head: Some(ActionHash(uhCkk8fmCFQ7vBdiPLz55POx89glTz18QQRje1IeyhzEMQai_nyrN)), Current head: Some(HeadInfo { action: ActionHash(uhCkkitzgg5Vwt70TzOq5OtsGCejNXhaCUm8VIr3j1pTath3qTpeu), seq: 5, timestamp: Timestamp(2024-08-01T08:51:23.665075Z) })
webhook-1               |     at catchError (file:///home/node/node_modules/@holochain/client/lib/api/common.js:37:23)
external-id-attestor-1  | internal_error: Attempted to commit a bundle to the source chain, but the source chain head has moved since the bundle began. Bundle head: Some(ActionHash(uhCkk8fmCFQ7vBdiPLz55POx89glTz18QQRje1IeyhzEMQai_nyrN)), Current head: Some(HeadInfo { action: ActionHash(uhCkkitzgg5Vwt70TzOq5OtsGCejNXhaCUm8VIr3j1pTath3qTpeu), seq: 5, timestamp: Timestamp(2024-08-01T08:51:23.665075Z) })
webhook-1               |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
external-id-attestor-1  |     at catchError (file:///home/node/node_modules/@holochain/client/lib/api/common.js:37:23)
webhook-1               |     at async AdminWebsocket.grantZomeCallCapability (file:///home/node/node_modules/@holochain/client/lib/api/common.js:13:22)
external-id-attestor-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
webhook-1               |     at async AdminWebsocket.grantSigningKey (file:///home/node/node_modules/@holochain/client/lib/api/admin/websocket.js:143:9)
external-id-attestor-1  |     at async AdminWebsocket.grantZomeCallCapability (file:///home/node/node_modules/@holochain/client/lib/api/common.js:13:22)
webhook-1               |     at async AdminWebsocket.authorizeSigningCredentials (file:///home/node/node_modules/@holochain/client/lib/api/admin/websocket.js:168:27)
external-id-attestor-1  |     at async AdminWebsocket.grantSigningKey (file:///home/node/node_modules/@holochain/client/lib/api/admin/websocket.js:143:9)
external-id-attestor-1  |     at async AdminWebsocket.authorizeSigningCredentials (file:///home/node/node_modules/@holochain/client/lib/api/admin/websocket.js:168:27)
external-id-attestor-1  |     at async runExternalIdAttestorFromEnv (file:///home/node/node_modules/@holoom/authority/dist/index.node.js:144:5)

The micro-services need some retry or coordination strategy to address this, else manual restarts are required.

More generally, it would be useful to solve this problem for all commit types that happen not just on launch but in operation too.

@8e8b2c
Copy link
Collaborator Author

8e8b2c commented Aug 7, 2024

Marking as low priority since we're likely to head in a direction where different agents take on different authority responsibilities, and therefore there will likely only be a single micro-service per agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant