zerotier / zeronsd

A DNS server for ZeroTier users
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
498 stars 57 forks source link

Errors on start now(?) #103

Closed laduke closed 3 years ago

laduke commented 3 years ago

I've created some new networks to test some stuff, and am seeing errors like so:

export ZEROTIER_CENTRAL_TOKEN=`cat ~/zeronsd/.token2`

[travis@tankage ~]$ sudo -E zeronsd start 6ab565387a57a4f1
INFO - Welcome to ZeroNS!
ERROR - error in response: status code 404 Not Found
[travis@tankage ~]$ sudo -E zeronsd start a84ac5c10a744c9d
INFO - Welcome to ZeroNS!
ERROR - error in serde: invalid value: integer `3232285886`, expected i32 at line 32 column 20

curl 'https://my.zerotier.com/api/network/6ab565387a57a4f1' -H "Authorization: bearer ${ZEROTIER_CENTRAL_TOKEN}" succeeds

and zeronsd is still working fine on my main, older network. Maybe the API changed subltly, recently. hrm

laduke commented 3 years ago

example members

[
  {
    "id": "a84ac5c10a744c9d-11aa11aa11",
    "type": "Member",
    "clock": 1630083409005,
    "networkId": "a84ac5c10a744c9d",
    "nodeId": "11aa11aa11",
    "controllerId": "a84ac5c10a",
    "hidden": false,
    "name": "me",
    "online": true,
    "description": "",
    "config": {
      "activeBridge": false,
      "address": "11aa11aa11",
      "authorized": true,
      "capabilities": [],
      "creationTime": 1628912972070,
      "id": "11aa11aa11",
      "identity": "11aa11aa11:0:5674597abe76629f36d36d83bc5f3e14a2ce9831594e970916be625ad1fa74591f5a99745d6dcc254c66179be61280987f8506659c1cf2831c45d40fb182b759",
      "ipAssignments": ["192.168.196.22"],
      "lastAuthorizedTime": 1628912972068,
      "lastDeauthorizedTime": 0,
      "noAutoAssignIps": false,
      "nwid": "a84ac5c10a744c9d",
      "objtype": "member",
      "remoteTraceLevel": 0,
      "remoteTraceTarget": "          ",
      "revision": 5,
      "tags": [],
      "vMajor": 1,
      "vMinor": 7,
      "vRev": 0,
      "vProto": 12,
      "ssoExempt": false
    },
    "lastOnline": 1630083342149,
    "physicalAddress": null,
    "physicalLocation": null,
    "clientVersion": "1.7.0",
    "protocolVersion": 12,
    "supportsRulesEngine": true
  },
  {
    "id": "a84ac5c10a744c9d-aabbaabbaa",
    "type": "Member",
    "clock": 1630083409005,
    "networkId": "a84ac5c10a744c9d",
    "nodeId": "aabbaabbaa",
    "controllerId": "a84ac5c10a",
    "hidden": false,
    "name": "you",
    "online": true,
    "description": "",
    "config": {
      "activeBridge": false,
      "address": "aabbaabbaa",
      "authorized": true,
      "capabilities": [],
      "creationTime": 1630080607825,
      "id": "aabbaabbaa",
      "identity": "aabbaabbaa:0:fc4988d42759035d7cafe89374ff58812d48b96afe89d162dd08ef2dac18297a0c52d6d9647b3737c8ffdb3daec4430e6c25cfbb334255951c4d977967930f94",
      "ipAssignments": ["192.168.196.190"],
      "lastAuthorizedTime": 1620952543431,
      "lastDeauthorizedTime": 0,
      "noAutoAssignIps": false,
      "nwid": "a84ac5c10a744c9d",
      "objtype": "member",
      "remoteTraceLevel": 0,
      "remoteTraceTarget": "          ",
      "revision": 26,
      "tags": [],
      "vMajor": 1,
      "vMinor": 7,
      "vRev": 0,
      "vProto": 12,
      "ssoExempt": false
    },
    "lastOnline": 1630083342149,
    "physicalAddress": null,
    "physicalLocation": null,
    "clientVersion": "1.7.0",
    "protocolVersion": 12,
    "supportsRulesEngine": true
  }
]

example network

{
  "id": "a84ac5c10a744c9d",
  "type": "Network",
  "clock": 1630083517673,
  "config": {
    "authTokens": null,
    "creationTime": 1620946125748,
    "capabilities": [],
    "enableBroadcast": true,
    "id": "a84ac5c10a744c9d",
    "ipAssignmentPools": [
      { "ipRangeStart": "192.168.196.1", "ipRangeEnd": "192.168.196.254" }
    ],
    "lastModified": 1630083333337,
    "mtu": 2800,
    "multicastLimit": 32,
    "name": "tlcentral",
    "private": true,
    "remoteTraceLevel": 0,
    "remoteTraceTarget": null,
    "routes": [{ "target": "192.168.196.0/24" }],
    "rules": [
      {
        "mask": "1000000000000000",
        "not": true,
        "or": false,
        "type": "MATCH_CHARACTERISTICS"
      },
      { "type": "ACTION_DROP" },
      { "type": "ACTION_ACCEPT" }
    ],
    "tags": [],
    "v4AssignMode": { "zt": true },
    "v6AssignMode": { "6plane": true, "rfc4193": false, "zt": false },
    "dns": { "domain": "", "servers": null },
    "ssoEnabled": false
  },
  "description": "",
  "rulesSource": "drop not chr ipauth;\n\naccept;\n",
  "permissions": {
    "2015c70c-51d8-40cd-920f-4fdaa87c31f3": {
      "a": true,
      "d": true,
      "m": true,
      "r": true
    }
  },
  "ownerId": "2015c70c-51d8-40cd-920f-4fdaa87c31f3",
  "onlineMemberCount": 2,
  "authorizedMemberCount": 2,
  "totalMemberCount": 2,
  "capabilitiesByName": {},
  "tagsByName": {},
  "ui": {
    "membersHelpCollapsed": true,
    "rulesHelpCollapsed": true,
    "settingsHelpCollapsed": true,
    "v4EasyMode": true
  }
}
erikh commented 3 years ago

Almost certainly int64 typing issues

Sent from ProtonMail mobile

-------- Original Message -------- On Aug 27, 2021, 10:45 AM, Travis LaDuke wrote:

example members

[ {

"

id

"

:

"

a84ac5c10a744c9d-11aa11aa11

"

,

"

type

"

:

"

Member

"

,

"

clock

"

:

1630083409005

,

"

networkId

"

:

"

a84ac5c10a744c9d

"

,

"

nodeId

"

:

"

11aa11aa11

"

,

"

controllerId

"

:

"

a84ac5c10a

"

,

"

hidden

"

:

false

,

"

name

"

:

"

me

"

,

"

online

"

:

true

,

"

description

"

:

"

"

,

"

config

"

: {

"

activeBridge

"

:

false

,

"

address

"

:

"

11aa11aa11

"

,

"

authorized

"

:

true

,

"

capabilities

"

: [],

"

creationTime

"

:

1628912972070

,

"

id

"

:

"

11aa11aa11

"

,

"

identity

"

:

"

11aa11aa11:0:5674597abe76629f36d36d83bc5f3e14a2ce9831594e970916be625ad1fa74591f5a99745d6dcc254c66179be61280987f8506659c1cf2831c45d40fb182b759

"

,

"

ipAssignments

"

: [

"

192.168.196.22

"

],

"

lastAuthorizedTime

"

:

1628912972068

,

"

lastDeauthorizedTime

"

:

0

,

"

noAutoAssignIps

"

:

false

,

"

nwid

"

:

"

a84ac5c10a744c9d

"

,

"

objtype

"

:

"

member

"

,

"

remoteTraceLevel

"

:

0

,

"

remoteTraceTarget

"

:

"

"

,

"

revision

"

:

5

,

"

tags

"

: [],

"

vMajor

"

:

1

,

"

vMinor

"

:

7

,

"

vRev

"

:

0

,

"

vProto

"

:

12

,

"

ssoExempt

"

:

false

},

"

lastOnline

"

:

1630083342149

,

"

physicalAddress

"

:

null

,

"

physicalLocation

"

:

null

,

"

clientVersion

"

:

"

1.7.0

"

,

"

protocolVersion

"

:

12

,

"

supportsRulesEngine

"

:

true

}, {

"

id

"

:

"

a84ac5c10a744c9d-aabbaabbaa

"

,

"

type

"

:

"

Member

"

,

"

clock

"

:

1630083409005

,

"

networkId

"

:

"

a84ac5c10a744c9d

"

,

"

nodeId

"

:

"

aabbaabbaa

"

,

"

controllerId

"

:

"

a84ac5c10a

"

,

"

hidden

"

:

false

,

"

name

"

:

"

you

"

,

"

online

"

:

true

,

"

description

"

:

"

"

,

"

config

"

: {

"

activeBridge

"

:

false

,

"

address

"

:

"

aabbaabbaa

"

,

"

authorized

"

:

true

,

"

capabilities

"

: [],

"

creationTime

"

:

1630080607825

,

"

id

"

:

"

aabbaabbaa

"

,

"

identity

"

:

"

aabbaabbaa:0:fc4988d42759035d7cafe89374ff58812d48b96afe89d162dd08ef2dac18297a0c52d6d9647b3737c8ffdb3daec4430e6c25cfbb334255951c4d977967930f94

"

,

"

ipAssignments

"

: [

"

192.168.196.190

"

],

"

lastAuthorizedTime

"

:

1620952543431

,

"

lastDeauthorizedTime

"

:

0

,

"

noAutoAssignIps

"

:

false

,

"

nwid

"

:

"

a84ac5c10a744c9d

"

,

"

objtype

"

:

"

member

"

,

"

remoteTraceLevel

"

:

0

,

"

remoteTraceTarget

"

:

"

"

,

"

revision

"

:

26

,

"

tags

"

: [],

"

vMajor

"

:

1

,

"

vMinor

"

:

7

,

"

vRev

"

:

0

,

"

vProto

"

:

12

,

"

ssoExempt

"

:

false

},

"

lastOnline

"

:

1630083342149

,

"

physicalAddress

"

:

null

,

"

physicalLocation

"

:

null

,

"

clientVersion

"

:

"

1.7.0

"

,

"

protocolVersion

"

:

12

,

"

supportsRulesEngine

"

:

true

} ]

example network

{

"

id

"

:

"

a84ac5c10a744c9d

"

,

"

type

"

:

"

Network

"

,

"

clock

"

:

1630083517673

,

"

config

"

: {

"

authTokens

"

:

null

,

"

creationTime

"

:

1620946125748

,

"

capabilities

"

: [],

"

enableBroadcast

"

:

true

,

"

id

"

:

"

a84ac5c10a744c9d

"

,

"

ipAssignmentPools

"

: [ {

"

ipRangeStart

"

:

"

192.168.196.1

"

,

"

ipRangeEnd

"

:

"

192.168.196.254

"

} ],

"

lastModified

"

:

1630083333337

,

"

mtu

"

:

2800

,

"

multicastLimit

"

:

32

,

"

name

"

:

"

tlcentral

"

,

"

private

"

:

true

,

"

remoteTraceLevel

"

:

0

,

"

remoteTraceTarget

"

:

null

,

"

routes

"

: [{

"

target

"

:

"

192.168.196.0/24

"

}],

"

rules

"

: [ {

"

mask

"

:

"

1000000000000000

"

,

"

not

"

:

true

,

"

or

"

:

false

,

"

type

"

:

"

MATCH_CHARACTERISTICS

"

}, {

"

type

"

:

"

ACTION_DROP

"

}, {

"

type

"

:

"

ACTION_ACCEPT

"

} ],

"

tags

"

: [],

"

v4AssignMode

"

: {

"

zt

"

:

true

},

"

v6AssignMode

"

: {

"

6plane

"

:

true

,

"

rfc4193

"

:

false

,

"

zt

"

:

false

},

"

dns

"

: {

"

domain

"

:

"

"

,

"

servers

"

:

null

},

"

ssoEnabled

"

:

false

},

"

description

"

:

"

"

,

"

rulesSource

"

:

"

drop not chr ipauth;

\n\n

accept;

\n

"

,

"

permissions

"

: {

"

2015c70c-51d8-40cd-920f-4fdaa87c31f3

"

: {

"

a

"

:

true

,

"

d

"

:

true

,

"

m

"

:

true

,

"

r

"

:

true

} },

"

ownerId

"

:

"

2015c70c-51d8-40cd-920f-4fdaa87c31f3

"

,

"

onlineMemberCount

"

:

2

,

"

authorizedMemberCount

"

:

2

,

"

totalMemberCount

"

:

2

,

"

capabilitiesByName

"

: {},

"

tagsByName

"

: {},

"

ui

"

: {

"

membersHelpCollapsed

"

:

true

,

"

rulesHelpCollapsed

"

:

true

,

"

settingsHelpCollapsed

"

:

true

,

"

v4EasyMode

"

:

true

} }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.