nspcc-dev / neofs-aio

NeoFS All-in-One single node deployment helper
5 stars 9 forks source link

resolve issue #16

Closed amrosdevops closed 2 years ago

amrosdevops commented 2 years ago

I have a problem to get result of this resolver request , all docker images are up and running from wındows wsl

docker exec -it morph neo-go contract testinvokefunction -r http://localhost:30333 \
curl -s --data '{ "id": 1, "jsonrpc": "2.0", "method": "getcontractstate", "params": [1] }' http://localhost:30333/ | jq -r '.result.hash' \
resolve string:${1} int:16 | jq -r '.stack[0].value | if type=="array" then .[0].value else . end' | base64 -d

I don't get any result the problem is when I run make prepare.ir it reach to resolver and throw error parse error: Invalid numeric literal at line 1, column 10

alexvanin commented 2 years ago

I think new docker-compose file from #18 should help. Make sure that you have both jq and expect installed in your WSL.

$ docker-compose -f docker-compose.cross.yml up -d
[+] Running 6/6
 ⠿ Network neofs-aio_default  Created                                                                              0.8s
 ⠿ Container morph            Healthy                                                                              4.2s
 ⠿ Container ir               Healthy                                                                              7.8s
 ⠿ Container sn               Started                                                                              9.3s
 ⠿ Container http_gw          Started                                                                             10.6s
 ⠿ Container nginx_gw         Started                                                                             11.9s

$ make prepare.ir
Changing ContainerFee configration value to 0
Enter account NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP password >
Network fee: 0.0120558
System fee: 0.0966192
Total fee: 0.108675
Relay transaction (y|N)> y
Sent invocation transaction ae8cd3f250219ebb47f1599cd543e92ecde03de9ac3089597ed0b626d9ec2820
Updating NeoFS epoch to 1
Enter account NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP password >
Network fee: 0.0118458
System fee: 0.7625779
Total fee: 0.7744237
Relay transaction (y|N)> y
Sent invocation transaction 66b0466895b0c33ef13096234f6f51944cbeac6fc6ba2bf46ad14241304bf1e6

$ ./neofs-cli-amd64 -r localhost:8080 -w http/node-wallet.json container create --policy "REP 1" --basic-acl public-read --await
Enter password >
container ID: 7Ghmdpxedz7AiwZ4ncvQfm6uoBxb8zE6acsnfz4k8iSh
awaiting...
container has been persisted on sidechain

$ curl -F 'file=@cat.png;filename=cat.png' http://localhost:8081/upload/7Ghmdpxedz7AiwZ4ncvQfm6uoBxb8zE6acsnfz4k8iSh
{
        "object_id": "E6HBMZwacgf9U5PNfuKoiF31qhdU8fv41DJmDjBGzDBF",
        "container_id": "7Ghmdpxedz7AiwZ4ncvQfm6uoBxb8zE6acsnfz4k8iSh"
}
alexvanin commented 2 years ago

@amrosdevops If you have any issues after #18, reopen please. It should work fine right now on Windows with WSL2.