verifiablesoftware / vsw

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

vsw init -c fails #97

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

this is new to v0.0.5. I tried to check the repo's log, but it returns "Cannot GET /apiDoc/" root@24c801be4202:/# root@24c801be4202:/# vsw list -c +Connection Records----+---------------+------------+-------+ | their_label | my_did | connection_id | created_at | state | +-------------+--------+---------------+------------+-------+ root@24c801be4202:/# root@24c801be4202:/# root@24c801be4202:/# root@24c801be4202:/# vsw init -c 2021-05-04 16:35:43 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py Create invitation to: http://3.141.51.96:7061/connections/create-invitation?alias=vsw-repo-agent&auto_accept=true 2021-05-04 16:35:43 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py {'connection_id': '696a80ef-e4c0-43a9-9adc-bf2fd51fefdc', 'invitation': {'@type': 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation', '@id': '63e7f70b-5cc7-4e52-807f-6f35191a38a0', 'serviceEndpoint': 'http://3.141.51.96:7060', 'label': 'Repo.Agent', 'recipientKeys': ['DAXcSueLKUa4MGV6KX28t6X1a4M3x2L1oZPAensKbZey']}, 'invitation_url': 'http://3.141.51.96:7060?c_i=eyJAdHlwZSI6ICJkaWQ6c292OkJ6Q2JzTlloTXJqSGlxWkRUVUFTSGc7c3BlYy9jb25uZWN0aW9ucy8xLjAvaW52aXRhdGlvbiIsICJAaWQiOiAiNjNlN2Y3MGItNWNjNy00ZTUyLTgwN2YtNmYzNTE5MWEzOGEwIiwgInNlcnZpY2VFbmRwb2ludCI6ICJodHRwOi8vMy4xNDEuNTEuOTY6NzA2MCIsICJsYWJlbCI6ICJSZXBvLkFnZW50IiwgInJlY2lwaWVudEtleXMiOiBbIkRBWGNTdWVMS1VhNE1HVjZLWDI4dDZYMWE0TTN4Mkwxb1pQQWVuc0tiWmV5Il19', 'alias': 'vsw-repo-agent'} 2021-05-04 16:35:43 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py Receive invitation http://127.0.0.1:8021/connections/receive-invitation?alias=vsw-agent 2021-05-04 16:35:43 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py {'invitation_key': 'DAXcSueLKUa4MGV6KX28t6X1a4M3x2L1oZPAensKbZey', 'connection_id': '1b6f228f-52a6-45d6-9ff0-69ac25b30b61', 'request_id': 'b8315b52-f23c-4d9a-81ac-b11f7b9d1ac3', 'state': 'request', 'created_at': '2021-05-04 16:35:43.828872Z', 'my_did': '3FEdK3ZUEoEKNB7Q3wHfJk', 'invitation_mode': 'once', 'routing_state': 'none', 'their_label': 'Repo.Agent', 'initiator': 'external', 'accept': 'auto', 'alias': 'vsw-agent', 'updated_at': '2021-05-04 16:35:43.842526Z'} 2021-05-04 16:35:44 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:45 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:46 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:47 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:48 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:49 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:50 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:51 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:52 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:53 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:54 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:55 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:56 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:57 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:35:58 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:00 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:01 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:02 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:03 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:04 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:05 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:06 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:07 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:08 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:09 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:10 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:11 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:12 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-05-04 16:36:13 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request ^C2021-05-04 16:36:14 vsw.commands.init ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py connection vsw-repo failed root@24c801be4202:/# vsw list -c +Connection Records--------------------+--------------------------------------+-----------------------------+---------+ | their_label | my_did | connection_id | created_at | state | +-------------+------------------------+--------------------------------------+-----------------------------+---------+ | Repo.Agent | 3FEdK3ZUEoEKNB7Q3wHfJk | 1b6f228f-52a6-45d6-9ff0-69ac25b30b61 | 2021-05-04 16:35:43.828872Z | request | +-------------+------------------------+--------------------------------------+-----------------------------+---------+ root@24c801be4202:/#

wenjing commented 3 years ago

this was due to port # mismatch with the repo solved in 0.0.7