-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node Connection Issues in Polykey-CLI & PK Agent Termination Issues #183
Comments
Also here is the stdrr from polykey agent start -v while I was experiencing the agent termination problem |
The first problem is very consistent with you not being able to form a connection between each other.
All signs point to symmetric NAT being the issue. You need to rule that out before I can look into it being a problem. We'll need to implement relaying before I had a look and getting Your 3rd problem |
Looking through the logs, looks like the hook for shutting down never triggered. The log cuts out mid line like the process was terminated. That must've been when you had to manually kill it. This is really odd, we handle most signals to trigger stopping the agent. The only thing that should really kill it like this is a This might be a mac specific problem. |
@tegefaulkes I will complete the demo again with @sujaycarkey next time he's on a more laxed wifi so we can try again. You're probably right. For referential information, do we have any backlog tickets addressing long-term plans for eventually trying to solve the issue of very restrictive NAT's? On the topic of the the termination bugs, I will create a separate ticket to keep a handle of this and will try to recreate the bug and document the stderr. I think given your investigation, it's safe to close this ticket but if the follow-up demo with @sujaycarkey fails then i can reopen. |
You should just use linear search too to find answers quicker. |
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 thepolykey 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
Sujay
Additional context
### Pablo's demo terminal
## Sujay's Demo Terminal
Sujay's Demo Terminal
Notify maintainers
@tegefaulkes
@amydevs
@brynblack
The text was updated successfully, but these errors were encountered: