netbirdio/netbird · error
del
Error message
del: %w
What it means
Deleting the existing interface (l.del) failed during Recreate after existence was confirmed. Recreate cannot proceed to Add because the old link is still present under the target name, so the error propagates with the netlink/ifconfig cause.
Solutions
- Delete the interface manually with ifconfig <name> destroy
- Check permissions for destroying interfaces
- Retry Recreate
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/iface/freebsd/link.go:60 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of netbirdio/netbird@93e97f4bf1 (2026-08-16).
Data as JSON: /api/errors/e4e1444099051bb3.
Report an issue: GitHub.
Appendix: source
Thrown at client/iface/freebsd/link.go:60
}
if i.Name != name {
return nil, ErrNameDoesNotMatch
}
return &Link{name: i.Name}, nil
}
// Recreate - create new interface, remove current before create if it exists
func (l *Link) Recreate() error {
ok, err := l.isExist()
if err != nil {
return fmt.Errorf("is exist: %w", err)
}
if ok {
if err := l.del(l.name); err != nil {
return fmt.Errorf("del: %w", err)
}
}
return l.Add()
}
// Add creates a new network interface.
func (l *Link) Add() error {
parsedName, err := l.create(wgIFGroup)
if err != nil {
return fmt.Errorf("create link: %w", err)
}
if parsedName == l.name {
return nil
}
parsedName, err = l.rename(parsedName, l.name)View on GitHub (pinned to 93e97f4bf1)