0xmoei / allora-testnet

86 stars 76 forks source link

WASM app crashed #3

Open pandpij15 opened 1 month ago

pandpij15 commented 1 month ago

The checking metod:

curl --location 'http://localhost:6000/api/v1/functions/execute' \
--header 'Content-Type: application/json' \
--data '{
    "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
    "method": "allora-inference-function.wasm",
    "parameters": null,
    "topic": "1",
    "config": {
        "env_vars": [
            {
                "name": "BLS_REQUEST_PATH",
                "value": "/api"
            },
            {
                "name": "ALLORA_ARG_PARAMS",
                "value": "ETH"
            }
        ],
        "number_of_nodes": -1,
        "timeout": 2
    }
}'

Error message: {"code":"200","request_id":"913e4391-29a7-47f3-a07d-ddc95a0fd6d8","results":[{"result":{"stdout":"","stderr":"WASM app crashed, please check the runtime.log file\n","exit_code":101},"peers":["12D3KooWMvFjZCXew9hbawa7fDzmrXvTCunGNu3GvEyro5hRvB3j"],"frequency":100}],"cluster":{"peers":["12D3KooWMvFjZCXew9hbawa7fDzmrXvTCunGNu3GvEyro5hRvB3j"]}}

Logs:

2024-07-01T11:54:23Z INF processing execution request component=executor function=bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm request=913e4391-29a7-47f3-a07d-ddc95a0fd6d8
2024-07-01T11:54:23Z DBG command ready for execution cmd="/app/runtime/bls-runtime /data/workspace/bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm/allora-inference-function.wasm --fs-root-path /data/workspace/t/913e4391-29a7-47f3-a07d-ddc95a0fd6d8/fs --drivers-root-path /app/runtime/extensions --" component=executor env_vars_set=22 function=bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm request=913e4391-29a7-47f3-a07d-ddc95a0fd6d8
2024-07-01T11:54:24Z INF execution complete code=500 component=node function=bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm request=913e4391-29a7-47f3-a07d-ddc95a0fd6d8

How can I fix?

pandpij15 commented 1 month ago

Also checking this way:

root@184730:~/basic-coin-prediction-node# curl --location 'http://localhost:6000/api/v1/functions/execute' \
--header 'Content-Type: application/json' \
--data '{
    "function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
    "method": "allora-inference-function.wasm",
    "parameters": null,
    "topic": "1",
    "config": {
        "env_vars": [
            {
                "name": "BLS_REQUEST_PATH",
                "value": "/api"
            },
            {
                "name": "ALLORA_ARG_PARAMS",
                "value": "ETH"
            }
        ],
        "number_of_nodes": -1,
        "timeout": 2
    }
}'
{"code":"408","request_id":"fcfe3f8a-d442-404f-b2bb-b459c930512a","cluster":{}}

I also changed to --topic=allora-topic-1-worker in composer. It doesnt work