Node 8.7.2 P2P configuration problem

Anyone else having problems with P2P on 8.7.2?
Getting this error on startup:

Is your topology file formatted correctly? Expecting P2P Topology file format. The port and valency fields should be numerical. If you specified the correct topology file make sure that you correctly setup EnableP2P configuration flag. 
Error in $: key "localRoots" not found 

CallStack (from HasCallStack):   
error, called at src/Cardano/Node/Configuration/TopologyP2P.hs:267:23 in cardano-node-8.7.2-Ijb5Onk4yiu454V6szWgTp:Cardano.Node.Configuration.TopologyP2P

If i remove the localRoots section it will boot up fine. So strange. Did the formatting change?

I haven’t change my topology file and this appears to match the default document format.

{
  "LocalRoots": {
    "groups": [
      {
        "localRoots": {
          "accessPoints": [
            {
              "address": "192.168.42.8",
              "port": 3000
            }
          ],
          "advertise": false
        },
        "valency": 1
      }
    ]
  },
  "PublicRoots": [
    {
      "publicRoots" : {
        "accessPoints": [
          {
            "address": "relays-new.cardano-mainnet.iohk.io",
            "port": 3001
          },
		  {
            "address": "rockyrelay1.ddns.net",
            "port": 3001
          },
		  {
            "address": "relays.stakepool247.eu",
            "port": 3001
          }
        ],
        "advertise": false
      },
      "valency": 3
    }
  ],
  "useLedgerAfterSlot": 0
}

Update:

Found an example here:
https://book.world.dev.cardano.org/env-mainnet.html

Here is my new working top topology file:


{
  "localRoots": [
    {
      "accessPoints": [
		{
			"address": "192.168.42.8",
			"port": 3000
		}],
      "advertise": false,
      "valency": 1
    }
  ],
  "publicRoots": [
    {
      "accessPoints": [
          {
            "address": "relays-new.cardano-mainnet.iohk.io",
            "port": 3001
          },
		  {
            "address": "rockyrelay1.ddns.net",
            "port": 3001
          },
		  {
            "address": "relays.stakepool247.eu",
            "port": 3001
          }
      ],
	"advertise": false,
	"valency": 3
    }
  ],
  "useLedgerAfterSlot": 110332824
}

Changes to the new topology file format were announced at the time of the 1.35.6 release.

1 Like

8.7.2 has a new topology

https://book.world.dev.cardano.org/env-mainnet.html

{
  "localRoots": [
    {
      "accessPoints": [],
      "advertise": false,
      "valency": 1
    }
  ],
  "publicRoots": [
    {
      "accessPoints": [
        {
          "address": "backbone.cardano-mainnet.iohk.io",
          "port": 3001
        },
        {
          "address": "backbone.cardano.iog.io",
          "port": 3001
        },
        {
          "address": "backbone.mainnet.emurgornd.com",
          "port": 3001
        }
      ],
      "advertise": false
    }
  ],
  "useLedgerAfterSlot": 110332824
}

The publicRoots accessPoints need to include the three relays starting with backbone.