luscis / openlan

Cloudify VPN written in Golang, and simple deployment via Kubernetes
http://vpn.luscis.cn
GNU General Public License v3.0
55 stars 24 forks source link

has carsh when get routes from confd #16

Closed danieldin95 closed 1 year ago

danieldin95 commented 1 year ago

switch_1        | panic: runtime error: invalid memory address or nil pointer dereference
switch_1        | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa451e6]
switch_1        | goroutine 305 [running]:
switch_1        | github.com/luscis/openlan/pkg/database.(*OvSDB).WhereList(0x0, 0xb0c140, 0xc000200198, 0xadd420, 0xc000200120, 0x2, 0x2)
switch_1        |   /root/daniel/openlan/pkg/database/client.go:60 +0x26
switch_1        | github.com/luscis/openlan/pkg/switch.GetRoutes(0xc000200120, 0xc0002e7498, 0x6, 0x8, 0xc000770638)
switch_1        |   /root/daniel/openlan/pkg/switch/confd.go:107 +0x198
switch_1        | github.com/luscis/openlan/pkg/switch.(*MemberLink).Add(0xc000677c88, 0xc0001bd570)
switch_1        |   /root/daniel/openlan/pkg/switch/confd.go:318 +0x439
switch_1        | github.com/luscis/openlan/pkg/switch.(*ConfD).AddLink(0xc000240040, 0xc0001bd570)
switch_1        |   /root/daniel/openlan/pkg/switch/confd.go:135 +0x1fa
switch_1        | github.com/luscis/openlan/pkg/switch.(*ConfD).Add(0xc000240040, 0xc09a1f, 0xc, 0xb38d80, 0xc0001bd570)
switch_1        |   /root/daniel/openlan/pkg/switch/confd.go:57 +0x5cd
switch_1        | github.com/ovn-org/libovsdb/cache.(*EventHandlerFuncs).OnAdd(0xc0002000d8, 0xc09a1f, 0xc, 0xb38d80, 0xc0001bd570)
switch_1        |   /root/daniel/openlan/vendor/github.com/ovn-org/libovsdb/cache/cache.go:434 +0x62
switch_1        | github.com/ovn-org/libovsdb/cache.(*eventProcessor).Run(0xc000a019b0, 0xc0000ba120)
switch_1        |   /root/daniel/openlan/vendor/github.com/ovn-org/libovsdb/cache/cache.go:844 +0x215
switch_1        | github.com/ovn-org/libovsdb/cache.(*TableCache).Run.func1(0xc000443410, 0xc0002f0480, 0xc0000ba120)
switch_1        |   /root/daniel/openlan/vendor/github.com/ovn-org/libovsdb/cache/cache.go:734 +0x65
switch_1        | created by github.com/ovn-org/libovsdb/cache.(*TableCache).Run
switch_1        |   /root/daniel/openlan/vendor/github.com/ovn-org/libovsdb/cache/cache.go:732 +0x85
switch_1        | + /usr/bin/env find /var/openlan/point -type f -delete
switch_1        | + /usr/bin/env find /var/openlan/openvpn -name '*.status' -delete
switch_1        | + '[' '!' -e /etc/openlan/switch/switch.json ']'
switch_1        | + '[' '!' -e /etc/openlan/switch/network/example.json ']'
switch_1        | + exec /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20
ovs-vswitchd_1  | 2023-04-05T01:08:08Z|00004|bfd(monitor34)|INFO|vx-10064086: BFD state change: up->down "Control Detection Time Expired"->"Control Detection Time Expired".
ovs-vswitchd_1  |   Forwarding: true
ovs-vswitchd_1  |   Detect Multiplier: 3```