{"record":{"id":"124bb19dcfcadfc0","repo":"netbirdio/netbird","slug":"create-containers-w-124bb1","errorCode":null,"errorMessage":"create containers: %w","messagePattern":"create containers: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/firewall/nftables/router_linux.go","lineNumber":122,"sourceCode":"\n\tvar err error\n\tr.filterTable, err = r.loadFilterTable()\n\tif err != nil {\n\t\tlog.Debugf(\"ip filter table not found: %v\", err)\n\t}\n\n\treturn r, nil\n}\n\nfunc (r *router) init(workTable *nftables.Table) error {\n\tr.workTable = workTable\n\n\tif err := r.removeAcceptFilterRules(); err != nil {\n\t\tlog.Errorf(\"failed to clean up rules from filter table: %s\", err)\n\t}\n\n\tif err := r.createContainers(); err != nil {\n\t\treturn fmt.Errorf(\"create containers: %w\", err)\n\t}\n\n\tif err := r.setupDataPlaneMark(); err != nil {\n\t\tlog.Errorf(\"failed to set up data plane mark: %v\", err)\n\t}\n\n\treturn nil\n}\n\n// Reset cleans existing nftables filter table rules from the system\nfunc (r *router) Reset() error {\n\t// clear without deleting the ipsets, the nf table will be deleted by the caller\n\tr.ipsetCounter.Clear()\n\n\tvar merr *multierror.Error\n\n\tif err := r.removeAcceptFilterRules(); err != nil {\n\t\tmerr = multierror.Append(merr, fmt.Errorf(\"remove accept filter rules: %w\", err))","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/firewall/nftables/router_linux.go#L104-L140","documentation":"The router failed to create its nftables containers (chains and sets in the work table) during init. Container creation is the router's first structural step; failure (netlink error, permission, table already populated) aborts init after a logged attempt to clean stale accept rules, leaving no routing dataplane in place.","triggerScenarios":"Thrown at client/firewall/nftables/router_linux.go:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry router initialization","Check kernel logs for chain creation rejection","Recreate the work table if it is in a bad state"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","contentChangedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}