Skip to content
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

Can't Connect to Peers + Broken Discord Invite #31

Open
ShrektacularSwamp opened this issue Jun 21, 2023 · 7 comments
Open

Can't Connect to Peers + Broken Discord Invite #31

ShrektacularSwamp opened this issue Jun 21, 2023 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ShrektacularSwamp
Copy link

I have everything set up correctly, it just won't add peers or sync / connect to the network. I have my port properly forwarded.

The discord links everywhere are broken, and there's no twitter activity.

Is this just a dead fork?

@ShrektacularSwamp ShrektacularSwamp added the bug Something isn't working label Jun 21, 2023
@WarutaShinken
Copy link
Collaborator

Check your logs, are you getting an entry that reads TypeError: object of type 'NoneType' has no len()? This issue has recently been reported by other users and I have attempted to fix this under the null_waiters_quickfix branch. If you are installing STAI from source, could you try reinstalling it from this branch?

@WarutaShinken
Copy link
Collaborator

As for the Discord server invite being broken, I will have to contact a server admin in charge of it to fix that. Here's an alternative invite for now: https://discord.gg/vgf6XUFYnr

@WarutaShinken WarutaShinken changed the title Client unable to sync or add peers - dead fork? Can't Connect to Peers + Broken Discord Invite Aug 25, 2023
@Yamanipanuchi
Copy link

I installed the branch and ended up with the same error unfortunately.

@WarutaShinken
Copy link
Collaborator

Are you sure it installed that branch? Please run git rev-parse --abbrev-ref HEAD in stai-blockchain and make sure it prints null_waiters_quickfix. If the error message still shows that the error is happening at line 112 of full_node_api.py, it means the branch hasn't been checked out:

Traceback (most recent call last):
  File "/.../stai-blockchain/stai/server/server.py", line 605, in wrapped_coroutine
    result = await coroutine
  File "/.../stai-blockchain/stai/full_node/full_node_api.py", line 112, in new_peak
    waiter_count = len(self.full_node.new_peak_sem._waiters)
TypeError: object of type 'NoneType' has no len()

@WarutaShinken WarutaShinken added the good first issue Good for newcomers label Aug 26, 2023
@Yamanipanuchi
Copy link

image

@Yamanipanuchi
Copy link

This is what I am getting. I just capture my own node trying to connect to my secondary node.

image

@WarutaShinken
Copy link
Collaborator

WarutaShinken commented Aug 27, 2023

Hmm, that's a pretty useless log entry, it doesn't even tell us the line it happened at.

Anyway, so I made some pushes to main that include a more thorough version of null_waiters_quickfix (there's another part of the code that's vulnerable to this issue, and I suspect that's why my quickfix didn't work for everyone). Could you pull it and:

  • Delete cache and run under mainnet.
  • Test it with your current copy of the database.
  • If the above doesn't work, test without an existing database.

EDIT: STAI 1.3.1 is out now, which features the relevant bugfix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants