{"record":{"id":"59f98d514b7b008c","repo":"netbirdio/netbird","slug":"initialize-tables-v","errorCode":null,"errorMessage":"initialize tables: %v","messagePattern":"initialize tables: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/firewall/nftables/router_linux.go","lineNumber":283,"sourceCode":"\t\tHooknum:  nftables.ChainHookPrerouting,\n\t\tPriority: nftables.ChainPriorityMangle,\n\t\tType:     nftables.ChainTypeFilter,\n\t})\n\n\tr.chains[chainNameMangleForward] = r.conn.AddChain(&nftables.Chain{\n\t\tName:     chainNameMangleForward,\n\t\tTable:    r.workTable,\n\t\tHooknum:  nftables.ChainHookForward,\n\t\tPriority: nftables.ChainPriorityMangle,\n\t\tType:     nftables.ChainTypeFilter,\n\t})\n\n\tinsertReturnTrafficRule(r.conn, r.workTable, r.chains[chainNameRoutingFw])\n\n\tr.addPostroutingRules()\n\n\tif err := r.conn.Flush(); err != nil {\n\t\treturn fmt.Errorf(\"initialize tables: %v\", err)\n\t}\n\n\tif err := r.addMSSClampingRules(); err != nil {\n\t\tlog.Errorf(\"failed to add MSS clamping rules: %s\", err)\n\t}\n\n\tif err := r.acceptForwardRules(); err != nil {\n\t\tlog.Errorf(\"failed to add accept rules for the forward chain: %s\", err)\n\t}\n\n\tif err := firewalld.TrustInterface(r.wgIface.Name()); err != nil {\n\t\tlog.Warnf(\"failed to trust interface in firewalld: %v\", err)\n\t}\n\n\tif err := r.refreshRulesMap(); err != nil {\n\t\tlog.Errorf(\"failed to refresh rules: %s\", err)\n\t}\n","sourceCodeStart":265,"sourceCodeEnd":301,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/firewall/nftables/router_linux.go#L265-L301","documentation":"Committing the router's chain initialization batch (all routing, mangle, and nat chains plus the initial rules) failed at the final Flush. The whole table setup was rejected in one transaction, leaving the work table without its chains.","triggerScenarios":"Thrown at client/firewall/nftables/router_linux.go:283 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry router init after clearing the half-built table","Check kernel logs for which chain/rule in the batch was rejected","Ensure hook priorities do not conflict with existing chains"],"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"}