{"record":{"id":"49d6fbfa7b4a9dc5","repo":"juanfont/headscale","slug":"waiting-for-tailscaled-s-to-need-login-w","errorCode":null,"errorMessage":"waiting for tailscaled (%s) to need login: %w","messagePattern":"waiting for tailscaled \\((.+?)\\) to need login: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/scenario.go","lineNumber":631,"sourceCode":"\t\ttsic.WithCACert(cert),\n\t\ttsic.WithHeadscaleName(hostname),\n\t)\n\n\ttsClient, err := tsic.New(\n\t\ts.pool,\n\t\tversion,\n\t\topts...,\n\t)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"creating tailscale node: %w\",\n\t\t\terr,\n\t\t)\n\t}\n\n\terr = tsClient.WaitForNeedsLogin(integrationutil.PeerSyncTimeout())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"waiting for tailscaled (%s) to need login: %w\",\n\t\t\ttsClient.Hostname(),\n\t\t\terr,\n\t\t)\n\t}\n\n\treturn tsClient, nil\n}\n\n// CreateTailscaleNodesInUser creates and adds a new [TailscaleClient] to a\n// [User] in the [Scenario].\nfunc (s *Scenario) CreateTailscaleNodesInUser(\n\tuserStr string,\n\trequestedVersion string,\n\tcount int,\n\topts ...tsic.Option,\n) error {\n\tif user, ok := s.users[userStr]; ok {","sourceCodeStart":613,"sourceCodeEnd":649,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/scenario.go#L613-L649","documentation":"Error \"waiting for tailscaled (%s) to need login: %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/scenario.go:631 when the library encounters an invalid state.","commonSituations":"tailscaled inside the test container did not reach NeedsLogin in time. Check container logs and that the login server URL is reachable from the container.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (waiting for tailscaled () to need login); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (waiting for tailscaled () to need login); retry the operation after fixing the input, configuration, or environment.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"565fd254d06c4c7f9a8cad1714a43445c79ba420","analyzedAt":"2026-08-15T13:12:30.133Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}