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

Reproduce veraison demo #278

Closed
jinbpark opened this issue Mar 7, 2024 · 8 comments
Closed

Reproduce veraison demo #278

jinbpark opened this issue Mar 7, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@jinbpark
Copy link
Collaborator

jinbpark commented Mar 7, 2024

@p-sawicki2 ,

I'm trying to reproduce the result of the veraison example.
I faced the following error when doing run.sh in veraison/provisioning.

Provisioning generated Corim
+ /home/jinbum/ssd/github/islet/examples/veraison/services/deployments/docker/veraison -- cocli corim submit --corim-file=corim.cbor --api-server=http://provisioning-service:8888/endorsement-provisioning/v1/submit '--media-type='\''application/corim-unsigned+cbor; profile=http://arm.com/cca/ssd/1'\'''
Error: submit CoRIM payload failed reason: run failed: submit request failed: Post "http://provisioning-service:8888/endorsement-provisioning/v1/submit": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Do you have any idea on this issue?

@jinbpark jinbpark added the bug Something isn't working label Mar 7, 2024
@p-sawicki2
Copy link
Collaborator

@L0czek Could you check that error?

@jinbpark
Copy link
Collaborator Author

jinbpark commented Mar 7, 2024

Oh, I resolved it myself. I guess it was a my local configuration error. Closed this issue. (not yet successfully reproduced it as a whole though)

@jinbpark jinbpark closed this as completed Mar 7, 2024
@jinbpark jinbpark reopened this Mar 7, 2024
@jinbpark
Copy link
Collaborator Author

jinbpark commented Mar 7, 2024

One more question--

I faced the following error message, when realm-application is executing let conn = ClientConnection::new() in client.rs.

# RUST_LOG=info ./bin/realm-application -r root-ca.crt -u 193.168.10.15:1337

[  161.752816] __vm_enough_memory: pid: 115, comm: realm-applicati, no enough memory for the allocation
[  161.772883] __vm_enough_memory: pid: 115, comm: realm-applicati, no enough memory for the allocation
[  161.793734] __vm_enough_memory: pid: 115, comm: realm-applicati, no enough memory for the allocation
memory allocation of 9903538456 bytes failed
Aborted

One change I made to realm-application is, I used a pre-made RsaPrivateKey instead of generating RsaPrivateKey (because it is too slow..). I think this error has something to do with my change. (but when I tested the pre-made rsa key pair, it went successful in Realm)
Anyway, have you faced this kind of error before??

@p-sawicki2
Copy link
Collaborator

I wonder if it is not the same issue as #274
Could you check what happens if the executable is moved into the /root folder?

@jinbpark
Copy link
Collaborator Author

jinbpark commented Mar 8, 2024

I wonder if it is not the same issue

It was the same issue. I've reproduced well the whole procedure specified in RUN.md. Thanks! (CLOSED this issue)

@jinbpark jinbpark closed this as completed Mar 8, 2024
@darshanp4
Copy link

Oh, I resolved it myself. I guess it was a my local configuration error. Closed this issue. (not yet successfully reproduced it as a whole though)

Hi @jinbpark can you help with your resolution of this issue ,

I am getting below error :

Provisioning generated Corim
+ /home/islet/examples/veraison/services/deployments/docker/veraison -- cocli corim submit --corim-file=corim.cbor --api-server=http://provisioning-service:8888/endorsement-provisioning/v1/submit '--media-type='\''application/corim-unsigned+cbor; profile=http://arm.com/cca/ssd/1'\'''
Error: submit CoRIM payload failed reason: run failed: unexpected HTTP response code 400

@darshanp4
Copy link

@jinbpark gentle remainder!

@zos
Copy link
Collaborator

zos commented Aug 6, 2024

There are currently some different issues with veraison in our demo. For the newest version of veraison I had to make some changes to examples/veraison/bootstrap.sh (services use https by default, policy scheme has changed name) and to veraison itself (I had some problems with go package caching and had to get pocli tool from specified commit). They are here: https://github.com/islet-project/islet/tree/dev/z.abramowska/veraison_bootstrap_fix . But I didn't fix problems with uploading endorsements etc (like the one with cocli).

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

5 participants