Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
QBANIN opened this issue Jun 1, 2024 · 2 comments
Open
1 task done

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

QBANIN opened this issue Jun 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@QBANIN
Copy link

QBANIN commented Jun 1, 2024

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

  • Yes, I did.
@QBANIN QBANIN added the bug Something isn't working label Jun 1, 2024
@Davam1r
Copy link

Davam1r commented Jun 2, 2024

I am getting this as well on v0.24.1

@yabinma
Copy link
Collaborator

yabinma commented Jun 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants