-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Describe the bug
Node Mainnet Connection Issues
During a demonstration with @sujaycarkey, attempts to share vaults between nodes failed due to connectivity issues, even though both nodes appeared active on the network (as shown in the terminal outputs). However, upon further inspection, both user's nodes were failing to appear in the output from polykey nodes connections list and in the polykey nodes ping command output.
We were able to complete identities discover correctly and trust each other's nodes (as shown in the output) but were unable to share a vault, consistently receiving an ErrorRPCTimedOut: RPC has timed out output from both ends. This would make sense if both nodes fail to connect to the mainnet (but the output from Polykey agent status did not indicate as such).
Another consideration to make is that while it is possible that one of our NAT types was Symmetric (i was connected to house wifi and @sujaycarkey was connected to a library uni wifi)m I find it highly unlikely that both of us had symmetric NAT types.
Minor Termination-Related Issues that are Glitchy
Additionally, commands intended to stop the Polykey agent did not terminate the process as expected, requiring manual intervention. This issue seems to persist with two terminals being open (one in the foreground). It is unclear which terminal first ran polykey agent stop, but the process was stuck in "Polykey agent stopping" and could only be shut down with manual intervention, forcing the process to stop via the system activity monitor of my Mac. I've already experienced this issue a few times.
To Reproduce
- ...
- ...
- ...
Expected behavior
-
Nodes should show up in the connections list
-
PK agent should be terminated seamlessly and not be "stuck" Why does it get stuck?
Screenshots
Platform (please complete the following information)
Pablo
- Device: [Mac]
- OS: [Mac OS ]
- Version [see output]
Sujay
- Device: [Linux]
- OS: [ Mint ]
- Version [see output]
Additional context
### Pablo's demo terminal
rulerpablo@Pablos-MacBook-Air ~ % polykey agent status 12:33:27
status LIVE
pid 71881
nodeId vgijtpv0h8m1eajeir77g73muq88n5kj0413t6fjdqsv9kt8dq4pg
clientHost ::1
clientPort 55681
agentHost ::
agentPort 51457
upTime 50
startTime 1716318101
connectionsActive 2
nodesTotal 7
version 1.2.3-alpha.4-1-1
sourceVersion 1.2.3-alpha.4
stateVersion 1
networkVersion 1
versionMetadata
version 0.3.1
commitHash "09b655f012d17de5302d01fbc4c3e835ddf5dc81\n"
libVersion 1.2.3-alpha.4-1-1
libSourceVersion 1.2.3-alpha.4
libStateVersion 1
libNetworkVersion 1
rulerpablo@Pablos-MacBook-Air ~ % polykey vaults list 13:02:31
my-software-project zD8XRJw2SoRoUW5e2mBR9tJ
myvault zD3cWJLBDEMWcbwNbjuUevo
myvault-1 zErezdpLocYs1VRZPV3wcqS
rulerpablo@Pablos-MacBook-Air ~ % polykey secrets list my-software-project
AWS_ACCESS_KEY_ID
AWS_DEFAULT_REGION
AWS_SECRET_ACCESS_KEY
rulerpablo@Pablos-MacBook-Air ~ % polykey secrets get my-software-project:/AWS_ACCESS_KEY_ID
AKIAIOSFODNN7EXAMPLE% rulerpablo@Pablos-MacBook-Air ~ % polykey identities authenticate github.com
Navigate to the URL in order to authenticate
Use any additional additional properties to complete authentication
url https://github.com/login/device
userCode BEE3-DFC9
Authenticated digital identity provider github.com
identityId CryptoTotalWar
rulerpablo@Pablos-MacBook-Air ~ % polykey identities claim github.com:CryptoTotalWar
claimId 1565088a929cdb0c15cf647ae38dbf60
url https://gist.github.com/CryptoTotalWar/1565088a929cdb0c15cf647ae38dbf60
rulerpablo@Pablos-MacBook-Air ~ % polykey identities discover github.com:sujaycarkey
rulerpablo@Pablos-MacBook-Air ~ % polykey identities list 13:17:11
gestalt
actionsList
identities
github.com:CryptoTotalWar
nodeIds
vgijtpv0h8m1eajeir77g73muq88n5kj0413t6fjdqsv9kt8dq4pg
gestalt
actionsList scan,notify
identities
github.com:asuarezop
nodeIds
v6o42hql07qr9bh25nosjrr46jloipd0ipbb42j0j98ktfndft3p0
gestalt
actionsList
identities
github.com:sujaycarkey
nodeIds
v4c11qv5fpq2fm3ropmma2sglfc9349jspqb1iutl3f7en1ckv500
rulerpablo@Pablos-MacBook-Air ~ % polykey identities trust github.com:sujaycarkey
rulerpablo@Pablos-MacBook-Air ~ % polykey identities list 13:18:21
gestalt
actionsList
identities
github.com:CryptoTotalWar
nodeIds
vgijtpv0h8m1eajeir77g73muq88n5kj0413t6fjdqsv9kt8dq4pg
gestalt
actionsList scan,notify
identities
github.com:asuarezop
nodeIds
v6o42hql07qr9bh25nosjrr46jloipd0ipbb42j0j98ktfndft3p0
gestalt
actionsList notify
identities
github.com:sujaycarkey
nodeIds
v4c11qv5fpq2fm3ropmma2sglfc9349jspqb1iutl3f7en1ckv500
rulerpablo@Pablos-MacBook-Air ~ % polykey vaults share my-software-project v4c11qv5fpq2fm3ropmma2sglfc9349jspqb1iutl3f7en1ckv500
ErrorRPCTimedOut: RPC has timed out
rulerpablo@Pablos-MacBook-Air ~ % polykey vaults share my-software-project v4c11qv5fpq2fm3ropmma2sglfc9349jspqb1iutl3f7en1ckv500
ErrorRPCTimedOut: RPC has timed out
rulerpablo@Pablos-MacBook-Air ~ % polykey nodes connections 13:20:56
host hostname nodeIdEncoded port timeout usageCount
13.239.117.143 N/A vncm2mkk41vgp2fmplqiu1je7b2l3v6fhgltlqf5f3f85923ve0j0 1314 109870 0
3.145.86.40 N/A v6p14qcvvftnnscuavsehu37t22vfvnhse054pbkb3ehemmjsrdh0 1314 44011 0
rulerpablo@Pablos-MacBook-Air ~ % polykey agent status 13:22:23
status LIVE
pid 71881
nodeId vgijtpv0h8m1eajeir77g73muq88n5kj0413t6fjdqsv9kt8dq4pg
clientHost ::1
clientPort 55681
agentHost ::
agentPort 51457
upTime 1262
startTime 1716318101
connectionsActive 2
nodesTotal 7
version 1.2.3-alpha.4-1-1
sourceVersion 1.2.3-alpha.4
stateVersion 1
networkVersion 1
versionMetadata
version 0.3.1
commitHash "09b655f012d17de5302d01fbc4c3e835ddf5dc81\n"
libVersion 1.2.3-alpha.4-1-1
libSourceVersion 1.2.3-alpha.4
libStateVersion 1
libNetworkVersion 1
rulerpablo@Pablos-MacBook-Air ~ % polykey nodes ping v4c11qv5fpq2fm3ropmma2sglfc9349jspqb1iutl3f7en1ckv500
success false
ErrorPolykeyCLINodePingFailed: No response received
rulerpablo@Pablos-MacBook-Air ~ % polykey agent stop 13:24:15
Agent is already stopping
rulerpablo@Pablos-MacBook-Air ~ % polykey agent stop 15:24:18
Agent is already stopping
rulerpablo@Pablos-MacBook-Air ~ % polykey agent stop 15:24:43
Agent is already stopping


