gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.16k stars 535 forks source link

[Bug]: msg":"delete rule failed","error":"no such file or directory" #2959

Open QBANIN opened 3 weeks ago

QBANIN commented 3 weeks ago

Contact Details

No response

What happened?

I have several machines running 0.24.0 netclient in docker. On all of them I'm getting this error message in the logs exactly every 5 minutes.

{"time":"2024-06-01T22:53:57.22916426Z","level":"ERROR","source":"wireguard_linux.go 539}","msg":"delete rule failed","error":"no such file or directory"}
{"time":"2024-06-01T22:53:57.229194591Z","level":"ERROR","source":"wireguard_linux.go 540}","msg":"please remove the rule manually","rule: ":"ip rule 2000: from 192.168.55.110/32 table 254"}
{"time":"2024-06-01T22:58:57.416773256Z","level":"ERROR","source":"wireguard_linux.go 494}","msg":"remove default gateway failed","error":"no such process"}
{"time":"2024-06-01T22:58:57.416875374Z","level":"ERROR","source":"wireguard_linux.go 495}","msg":"please remove the gateway route manually"}
{"time":"2024-06-01T22:58:57.41691105Z","level":"ERROR","source":"wireguard_linux.go 496}","msg":"gateway route: ","!BADKEY":"{Ifindex: 0 Dst: <nil> Src: 0.0.0.0 Gw: <nil> Flags: [] Table: 111}"}
{"time":"2024-06-01T22:58:57.416969594Z","level":"ERROR","source":"wireguard_linux.go 510}","msg":"delete rule failed","error":"no such file or directory"}
{"time":"2024-06-01T22:58:57.416994407Z","level":"ERROR","source":"wireguard_linux.go 511}","msg":"please remove the rule manually"}
{"time":"2024-06-01T22:58:57.417015827Z","level":"ERROR","source":"wireguard_linux.go 512}","msg":"rule: ","!BADKEY":"ip rule 3000: from 0.0.0.0/0 table 111"}
{"time":"2024-06-01T22:58:57.41709227Z","level":"ERROR","source":"wireguard_linux.go 521}","msg":"delete rule failed","error":"no such file or directory"}
{"time":"2024-06-01T22:58:57.417120129Z","level":"ERROR","source":"wireguard_linux.go 522}","msg":"please remove the rule manually","rule: ":"ip rule 2500: from 0.0.0.0/0 table 254"}

What does it mean?

Version

v0.24.0

What OS are you using?

Linux

Relevant log output

No response

Contributing guidelines

Davam1r commented 3 weeks ago

I am getting this as well on v0.24.1

yabinma commented 3 weeks ago

There is a known issue, if there is network route change, netclient tries to update the route/rule as well, but the rules are not there anymore. The issue has been fixed and it will be included in next release.