verifiablesoftware / vsw

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

vsw init -c fails to make connection and related issues #86

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

Ubuntu bionic container. vsw version 0.0.4 Date: April 14 PDT -

1) failure itself

2) In addition: http://3.141.51.96 should be changed to use vswrepo.com to allow DNS based recovery

3) http -> https

root@f6fdf91d9796:/# vsw init -c 2021-04-14 19:04:56 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py Create invitation to: http://3.141.51.96:8061/connections/create-invitation?alias=vsw-repo-agent&auto_accept=true 2021-04-14 19:04:56 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py {'connection_id': '794804a0-3a29-4fbc-9886-d55cf768714d', 'invitation': {'@type': 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation', '@id': '8ebffd48-ad51-444b-815d-2424ec2a8eec', 'recipientKeys': ['9kmsmhE3Qjdxhc59jNhb3kbb4dcfuKMmeVwvPqokBu4'], 'label': 'Repo.Agent', 'serviceEndpoint': 'http://3.141.51.96:8060'}, 'invitation_url': 'http://3.141.51.96:8060?c_i=eyJAdHlwZSI6ICJkaWQ6c292OkJ6Q2JzTlloTXJqSGlxWkRUVUFTSGc7c3BlYy9jb25uZWN0aW9ucy8xLjAvaW52aXRhdGlvbiIsICJAaWQiOiAiOGViZmZkNDgtYWQ1MS00NDRiLTgxNWQtMjQyNGVjMmE4ZWVjIiwgInJlY2lwaWVudEtleXMiOiBbIjlrbXNtaEUzUWpkeGhjNTlqTmhiM2tiYjRkY2Z1S01tZVZ3dlBxb2tCdTQiXSwgImxhYmVsIjogIlJlcG8uQWdlbnQiLCAic2VydmljZUVuZHBvaW50IjogImh0dHA6Ly8zLjE0MS41MS45Njo4MDYwIn0=', 'alias': 'vsw-repo-agent'} 2021-04-14 19:04:56 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-04-14 19:04:57 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py {'my_did': 'EynGbUaR9MfebMqUnpXT8G', 'alias': 'vsw-agent', 'updated_at': '2021-04-14 19:04:57.003933Z', 'their_label': 'Repo.Agent', 'created_at': '2021-04-14 19:04:56.988899Z', 'invitation_key': '9kmsmhE3Qjdxhc59jNhb3kbb4dcfuKMmeVwvPqokBu4', 'request_id': 'f72fbb62-d72f-4a75-9dbc-e539de289c2c', 'connection_id': '617b8996-0990-49db-a228-6933d09a428b', 'invitation_mode': 'once', 'initiator': 'external', 'routing_state': 'none', 'accept': 'auto', 'state': 'request'} 2021-04-14 19:04:58 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:04:59 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:00 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:01 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:02 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:03 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:04 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:05 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:06 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:07 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:08 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:09 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:10 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:11 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:12 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:13 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:14 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:15 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:16 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:17 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:18 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:19 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:20 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:21 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:22 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:23 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:24 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:25 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:26 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:27 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:28 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:29 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:30 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:31 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:32 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:33 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:34 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:35 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:36 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:37 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:38 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:39 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:40 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:41 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:42 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:43 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:44 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:45 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:46 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:47 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:48 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:49 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:50 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:51 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:52 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:53 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:54 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:55 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:56 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:57 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:58 vsw.commands.init INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py waiting state update, current state: request 2021-04-14 19:05:58 vsw.commands.init ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/init.py Sorry, there might be some issue during initializing connection.

wenjing commented 3 years ago

This is caused by two separate problems: 1) the ubuntu:bionic container needs correct port mapping: % docker run -it -p 8020:8020 ubuntu:bionic /bin/bash Port 8020 is the incoming port of the aca-py agent. 2) the localtunnel depends on nodejs, this seems to work for ubuntu:bionic % curl -sL https://deb.nodesource.com/setup_12.x | bash - % apt install -y nodejs