{"record":{"id":"0f20194ae878ac3c","repo":"netbirdio/netbird","slug":"create-or-get-ipset-w-0f2019","errorCode":null,"errorMessage":"create or get ipset: %w","messagePattern":"create or get ipset: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/firewall/nftables/router_linux.go","lineNumber":483,"sourceCode":"\n\tif err := r.conn.Flush(); err != nil {\n\t\treturn nil, fmt.Errorf(flushError, err)\n\t}\n\n\tr.rules[string(ruleKey)] = rule\n\n\tlog.Debugf(\"added route rule: sources=%v, destination=%v, proto=%v, sPort=%v, dPort=%v, action=%v\", sources, destination, proto, sPort, dPort, action)\n\n\treturn ruleKey, nil\n}\n\nfunc (r *router) getIpSet(set firewall.Set, prefixes []netip.Prefix, isSource bool) ([]expr.Any, error) {\n\tref, err := r.ipsetCounter.Increment(set.HashedName(), setInput{\n\t\tset:      set,\n\t\tprefixes: prefixes,\n\t})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"create or get ipset: %w\", err)\n\t}\n\n\treturn r.getIpSetExprs(ref, isSource)\n}\n\nfunc (r *router) iptablesProto() iptables.Protocol {\n\tif r.af.tableFamily == nftables.TableFamilyIPv6 {\n\t\treturn iptables.ProtocolIPv6\n\t}\n\treturn iptables.ProtocolIPv4\n}\n\nfunc (r *router) hasRule(id string) bool {\n\t_, ok := r.rules[id]\n\treturn ok\n}\n\nfunc (r *router) hasDNATRule(id string) bool {","sourceCodeStart":465,"sourceCodeEnd":501,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/firewall/nftables/router_linux.go#L465-L501","documentation":"Error \"create or get ipset: %w\" thrown in netbirdio/netbird.","triggerScenarios":"Thrown at client/firewall/nftables/router_linux.go:483 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}