iotexproject / w3bstream

An offchain computing layer for DePIN verifiable data computation, supporting a variety of validity proofs including Zero Knowledge (ZK), Trusted Execution Environments (TEE), and Multi-party Computation (MPC)
https://docs.iotex.io/depin-infra-modules-dim/w3bstream-depin-verification
Apache License 2.0
26 stars 18 forks source link

Fail to execute instance after risc0 server image update #40

Closed simonerom closed 1 year ago

simonerom commented 1 year ago

After the update of the risc0 image in docker-config.yaml from v0.8rc1 to v0.8.stark the proof generation is failing with error _"failed to execute instance: failed to execute risc0 instance: rpc error: code = Canceled desc = stream terminated by RSTSTREAM with error code: CANCEL"

w3bstream-node | [GIN-debug] Listening and serving HTTP on :9000
w3bstream-node | [GIN] 2023/11/14 - 10:58:43 | 200 |    2.438918ms |      172.28.0.1 | POST     "/message"
w3bstream-node | time=2023-11-14T10:58:43.484Z level=DEBUG msg="received your message, handling"
w3bstream-node | time=2023-11-14T10:58:43.485Z level=DEBUG msg="push message into sequencer"
w3bstream-node | time=2023-11-14T10:58:43.489Z level=DEBUG msg="message popped by proofer"
w3bstream-node | time=2023-11-14T10:58:43.722Z level=DEBUG msg="acquire risc0 instance success"
w3bstream-node | time=2023-11-14T10:58:43.801Z level=ERROR msg="failed to execute instance: failed to execute risc0 instance: rpc error: code = Canceled desc = stream terminated by RST_STREAM with error code: CANCEL"

PR https://github.com/machinefi/sprout/pull/32 restores the working image.

huangzhiran commented 1 year ago

v0.8.stark support snark too, but need a BONSAI_KEY env for ris0 docker-compose config

huangzhiran commented 1 year ago

could you share the send message cmd info ?

simonerom commented 1 year ago

I'm sending the message using the command provided in the README file:

wsctl message send -p "test01" -v "0.1" -d "{\"private_input\":\"14\", \"public_input\":\"3,34\", \"receipt_type\":\"Snark\"}"