netbirdio/netbird · error
create link
Error message
create link: %w
What it means
l.create failed while Add was creating the interface via ifconfig (allocating a new utun with the WireGuard group). If the assigned system name differs from the requested one a rename follows; on this error no usable link exists and Add fails, with Recreate propagating it to callers.
Solutions
- Check ifconfig create syntax support on the host
- Verify the interface group exists
- Retry creation after cleaning stale interfaces
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/iface/freebsd/link.go:71 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/e607807827044374.
Report an issue: GitHub.
Appendix: source
Thrown at client/iface/freebsd/link.go:71
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)
if err != nil {
errDel := l.del(parsedName)
if errDel != nil {
return fmt.Errorf("del on rename link: %w: %w", err, errDel)
}
return fmt.Errorf("rename link: %w", err)
}
return nil
}View on GitHub (pinned to 93e97f4bf1)