verifiablesoftware / vsw

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

vsw publish stuck in proposal_sent state #93

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

Testing this scenario:

After that, the publish command seems stuck infinitely in proposal_sent state.

root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw exit Exited vsw root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw setup -n wallet1 Please enter wallet key: 2021-04-20 01:01:11 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-04-20 01:01:11 vsw.commands.setup INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/setup.py seed:d0ae8178bf494856a8abd39db1b235a6 root@2a14b1d637bd:/# Public DID: SGfvqmW1y9vBxpjqWR1KcB Verkey: EmqkouUzSrboTGEFwtYw71WzT7fMHV2bTfijywUAWyFV

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

Listening...

root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw list -w +Wallet Records-------------------+----------------------------------------------+ | public | did | verkey | +--------+------------------------+----------------------------------------------+ | True | SGfvqmW1y9vBxpjqWR1KcB | EmqkouUzSrboTGEFwtYw71WzT7fMHV2bTfijywUAWyFV | | False | UQGbJ3n5j2v7pQ5Jcumt2P | FwCvNv7eepTae5fex6BGhnTXtCm3D5YckP2HYdNv5v8S | +--------+------------------------+----------------------------------------------+ root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw list -c +Connection Records--------------------+--------------------------------------+-----------------------------+--------+ | their_label | my_did | connection_id | created_at | state | +-------------+------------------------+--------------------------------------+-----------------------------+--------+ | Repo.Agent | UQGbJ3n5j2v7pQ5Jcumt2P | 35666161-dcd9-41f6-ae7c-06c85671f8ad | 2021-04-16 05:20:09.838509Z | active | +-------------+------------------------+--------------------------------------+-----------------------------+--------+ root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw list -cd {'credential_definition_ids': ['SGfvqmW1y9vBxpjqWR1KcB:3:CL:3519:default']} root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# root@2a14b1d637bd:/# vsw publish Please enter software name: vsw Please enter software version: 0.0.3 Please enter software did: 12345678 Please enter software package url: https://files.pythonhosted.org/packages/10/32/fdd9f764160699ea93d7a81641f40c6232071a2d7746b918dc8fa3f86250/vsw-0.0.3.tar.gz 2021-04-20 01:02:44 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py executing publish, please waiting for response digest: z2d9pM8uz5CPu3tZ7xmyyNPVVWyMLzNLdXSRuHfhd5EiVB1VVey2hR3UaGQ9PhAx1Wh4yuMPc6zsE1LiJDNVdxSy5N 2021-04-20 01:02:45 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py credential_exchange_id: 1e1fe770-13e3-4114-9b13-48b7002fcd2b waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent waiting state update, current state: proposal_sent ^C ==> Exit publish! root@2a14b1d637bd:/#

wenjing commented 3 years ago

See also issue #90

wenjing commented 3 years ago

This should be fixed already