gridcoin-community / Gridcoin-Research

Gridcoin-Research
MIT License
585 stars 172 forks source link

No fullnode inbound connections? #89

Closed grctest closed 8 years ago

grctest commented 8 years ago

Recently my nodes all fell down to like 30 peers each, approx 1/10th the equivalent of a month ago, so I had a look through my firewall configs (all nodes have their 9332 port exposed to the network, so should be full nodes).

A very interesting thing to note is that all peers showing via the 'getpeerinfo' command show: "inbound": false,

Not a single full node has "inbound": true, despite the 9332 port being open/accessible to inbound connections. Could this be causing users issues with connectivity?

Up to date 'getpeerinfo' dumps for my full nodes: (no inbound, only outbound) https://grcnode.co.uk/Stats/Servers/GER/GER-Peers.json https://grcnode.co.uk/Stats/Servers/NYC/NYC-Peers.json https://grcnode.co.uk/Stats/Servers/SF/SF-Peers.json https://grcnode.co.uk/Stats/Servers/AMS/AMS-Peers.json

How I've configured my nodes: https://github.com/grctest/GridcoinAutoNode/blob/master/GridcoinAutoNode.sh

Daniel Blanco does have 'inbound:true' getpeerinfo entries: https://cryptocointalk.com/topic/46883-new-full-nodes/

How Daniel setup his nodes: https://www.loganmarchione.com/2016/03/setup-gridcoin-research-client-on-ubuntu/#Join_the_Gridcoin_team

The only difference I can spot is that Daniel doesn't have listen=1 enabled, and I've got grcnode.co.uk querying the clients.. I'll mess around with the config to see if anything changes. I'll try another VPS provider.

grctest commented 8 years ago

After commenting out the following lines:

#maxoutboundconnections=250
#maxinboundconnections=500

I'm now seeing multiple inbound connections:

grc getpeerinfo | grep inbound
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : false,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : false,
        "inbound" : false,
        "inbound" : false,
        "inbound" : false,
        "inbound" : false,
        "inbound" : false,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : false,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,
        "inbound" : true,

I'll be disabling these max connection entries, they seem to be the source of my full node issues. Hopefully users will sync faster now :D