Frustrating episodes of embedded node not syncing!

Embedded node fails to sync. It has happened several times in past.
Resyncing from scratch solved the issue most of the time.
sometimes its the antivirus.
I have added file scan exclusion, firewall exclusion, port exclusions.

its stuck again now. I have deleted nom, consensus, network. Its not synching. I have checked antivirus exclusions except the ports(i forgot what all ports to check)

Help me sort out this

Thank you

The problem is the peer-to-peer connection of the embedded node. You can edit the config.json as follows:

"Net": {
        "MinPeers": 8,
        "MaxPeers": 16,
        "MaxPendingPeers": 8,
        "MinConnectedPeers": 8
    }

What we should do to improve the embedding node syncing performance:

  1. Upgrade the p2p networking layer of znnd. libp2p is a good candidate.
  2. Increase the public node count in the network. I’ve proposed several methods to incentivize public full nodes for a healthy p2p network.
3 Likes

Where can i find the config.json file?

macOS Users

  1. Close Syrius.
  2. Open Finder.
  3. Press ⌘ + shift + H to go directly to your Home folder.
  4. Now press ⌘ + shift + period (.) to make the hidden Library folder visible.
  5. Navigate to the Library/znn folder.

Windows Users

  1. Close Syrius
  2. Open the Windows Explorer and navigate to the following path:
    C:\Users\<username>\AppData\Roaming\znn

Note: Replace <username> with your actual Windows username.

I actually tried this when we had the fork. I added many nodes to the network and it did not improve sync speeds. As I understand it, we have an issue with the download scheduler with the current implementation. So adding nodes today does not seem to help.

Hopefully that will change when we upgrade to libp2p.

No such file in that folder

you can create it.

If you are not able to sync a single block, something is blocking access. I would start there. Likely a local firewall issue.

1 Like

I have launched 5 new nodes all over the world in hopes that will help with syncs.

@aliencoder Should the config.json look like this instead?

{ 
    "Net": { 
        "MinPeers": 8, 
        "MaxPeers": 16, 
        "MaxPendingPeers": 8, 
        "MinConnectedPeers": 8 
    } 
}

1.Create a text file
2 add these line
3. save as config.json

in the folder as mentioned ny @0x3639

That’s it?

I did that as mentioned, but syrius closes immediatly on launching, even znnd does the same.

deleting config.json file solved the issue.

Now i added lines mentioned by @0x3639 , I can launch the wallet and znnd. But still not syncing. Peers found is 0

Sumamu mentioned this

{
“Net”: {
“MinPeers”: 4,
“MaxPeers”: 8,
“MaxPendingPeers”: 8,
“MinConnectedPeers”: 8
}
}

this sounds like a firewall issue or a virus scanner blocking the app.

Fuck the Norton. It was fine with kaspersky.

It’s causing issues every now and then. At this point I don’t know what else do. I have added scanning, program, firewall exclusions. Ports 35990 to 35999 are also added to exclusions

disable Norton and try again. It’s possible Norton removed important files needed to run the program.

you can also try to install virtualbox and install windows on that without Norton and run Syrius from there.

Are you using a VPN?

yes, it keeps crashing when I add the config.json

it’s probably not formatted correctly or missing a { or }

I used exactly this. So the same problem that NeoShredder has

{
“Net”: {
“MinPeers”: 4,
“MaxPeers”: 8,
“MaxPendingPeers”: 8,
“MinConnectedPeers”: 8
}
}

No VPN

Tried that, not working. i can connect using public nodes. Znnd alone is also not working.
Downloaded 0.1.0 version again. Not syncing with antivirus off

Never tried that. Lemme see how to do it