verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

Agent hangs in 0.0.11 #105

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

I think this is related to the solution to #98 but I will file separately.

I installed 0.0.11, and "pip3 install python_daemon".

When executing "vsw setup -n walletname" which starts the agent and it hangs.

vsw version 0.0.11 root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# pip3 install python_daemon Collecting python_daemon Downloading https://files.pythonhosted.org/packages/b1/cc/2ab0d910548de45eaaa50d0372387951d9005c356a44c6858db12dc6b2b7/python_daemon-2.3.0-py2.py3-none-any.whl Collecting lockfile>=0.10 (from python_daemon) Downloading https://files.pythonhosted.org/packages/c8/22/9460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362/lockfile-0.12.2-py2.py3-none-any.whl Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from python_daemon) Requirement already satisfied: docutils in /usr/local/lib/python3.6/dist-packages (from python_daemon) Installing collected packages: lockfile, python-daemon Successfully installed lockfile-0.12.2 python-daemon-2.3.0 root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# vsw setup -n wallet1 -p Please enter wallet key: 2021-05-27 19:15:59 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py seed:50a032e984d740bbb0bc2b060eeb8b4c 2021-05-27 19:15:59 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py genesis_file: /usr/local/lib/python3.6/dist-packages/vsw/conf/genesis.txt 2021-05-27 19:15:59 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py seed:50a032e984d740bbb0bc2b060eeb8b4c Created new wallet Wallet type: indy Wallet name: wallet1 Created new public DID: 5z3nj4zyHB5hjpAPhDoEDY Verkey: 3iYP1bFdY1Tp1AthcR7cq2yZzRLvLgThZp4KKVXEZUDr 2021-05-27 19:16:05 vsw.commands.setup ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py Error during provisioning 2021-05-27 19:16:05 vsw.commands.setup ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py please check if your public DID and verkey is registered in the ledger! root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# cat workspace/setendorser

curl --header "Content-Type: application/json" --request POST --data '{"network":"buildernet","did":"$1","verkey":"$2","paymentaddr":""}' https://selfserve.sovrin.org/nym

root@2ece639c7e3a:/# curl --header "Content-Type: application/json" --request POST --data '{"network":"buildernet","did":"5z3nj4zyHB5hjpAPhDoEDY","verkey":"3iYP1bFdY1Tp1AthcR7cq2yZzRLvLgThZp4KKVXEZUDr","paymentaddr":""}' https://selfserve.sovrin.org/nym {"statusCode": 200, "headers": {"Access-Control-Allow-Origin": "*"}, "body": "{\"statusCode\": 200, \"5z3nj4zyHB5hjpAPhDoEDY\": {\"status\": \"Success\", \"statusCode\": 200, \"reason\": \"Successfully wrote NYM identified by 5z3nj4zyHB5hjpAPhDoEDY to the ledger with role ENDORSER\"}}"}root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# root@2ece639c7e3a:/# vsw setup -n wallet1
Please enter wallet key: 2021-05-27 19:16:53 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py seed:50a032e984d740bbb0bc2b060eeb8b4c 2021-05-27 19:16:53 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py genesis_file: /usr/local/lib/python3.6/dist-packages/vsw/conf/genesis.txt 2021-05-27 19:16:53 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py seed:50a032e984d740bbb0bc2b060eeb8b4c Public DID: 5z3nj4zyHB5hjpAPhDoEDY Verkey: 3iYP1bFdY1Tp1AthcR7cq2yZzRLvLgThZp4KKVXEZUDr

:::::::::::::::::::::::::::::::::::::::::::::: :: vsw-agent :: :: :: :: :: :: Inbound Transports: :: :: :: :: - http://127.0.0.1:8020 :: :: :: :: Outbound Transports: :: :: :: :: - http :: :: - https :: :: :: :: Public DID Information: :: :: :: :: - DID: 5z3nj4zyHB5hjpAPhDoEDY :: :: :: :: Administration API: :: :: :: :: - http://127.0.0.1:8021 :: :: :: :: ver: 0.0.2 :: ::::::::::::::::::::::::::::::::::::::::::::::

Listening...

wenjing commented 3 years ago

Verified fix in 0.0.14