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

Internal Server Error when attempting to initialize a confidential VM that received an invalid secret #668

Open
hoh opened this issue Aug 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hoh
Copy link
Member

hoh commented Aug 14, 2024

Describe the bug

An error 500 with the message 'Internal Server Error' is displayed when I attempt to initialize a confidential VM with confidential-init-session, after this command has been used with an invalid secret.

To Reproduce

  1. Initialize a valid CocoVM with an invalid secret using:
aleph instance confidential-start 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh
  1. (Optional) Confirm that the VM does not boot correctly from its logs:
aleph instance logs 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh
  1. Call the function again.
aleph instance confidential-start 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh

This raises:

ValueError: HTTP error during operation confidential/inject_secret: 500, message='Internal Server Error', 
url=URL('https://dchq.staging.aleph.sh/control/machine/79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d/confidential/inject_secret')
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f5c91a81be0>
ERROR:asyncio:Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f5c91020bf0>, 86003.521419744)]']

Expected behavior
Instructions on what to do to resolve the situation.

@hoh hoh added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants