{"record":{"id":"e47b7b9da5b268d2","repo":"dagger/dagger","slug":"failed-to-get-dagger-server-w","errorCode":null,"errorMessage":"failed to get Dagger server: %w","messagePattern":"failed to get Dagger server: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/schema/service.go","lineNumber":310,"sourceCode":"\t\texpandedArg, err := expandEnvVar(ctx, parent.Self(), arg, args.Expand)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\texpandedArgs[i] = expandedArg\n\t}\n\targs.Args = expandedArgs\n\n\treturn parent.Self().AsService(ctx, parent, args)\n}\n\nfunc (s *serviceSchema) containerUp(ctx context.Context, ctr dagql.ObjectResult[*core.Container], args struct {\n\tUpArgs\n\tcore.ContainerAsServiceArgs\n}) (res dagql.Nullable[core.Void], _ error) {\n\tsrv, err := core.CurrentDagqlServer(ctx)\n\tif err != nil {\n\t\treturn res, fmt.Errorf(\"failed to get Dagger server: %w\", err)\n\t}\n\n\tvar inputs []dagql.NamedInput\n\tif args.Args != nil {\n\t\tinputs = append(inputs, dagql.NamedInput{\n\t\t\tName:  \"args\",\n\t\t\tValue: dagql.ArrayInput[dagql.String](dagql.NewStringArray(args.Args...)),\n\t\t})\n\t}\n\tif args.UseEntrypoint {\n\t\tinputs = append(inputs, dagql.NamedInput{\n\t\t\tName:  \"useEntrypoint\",\n\t\t\tValue: dagql.Boolean(true),\n\t\t})\n\t}\n\tif args.ExperimentalPrivilegedNesting {\n\t\tinputs = append(inputs, dagql.NamedInput{\n\t\t\tName:  \"experimentalPrivilegedNesting\",","sourceCodeStart":292,"sourceCodeEnd":328,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/core/schema/service.go#L292-L328","documentation":"Fires in containerUp when the ctx carries no Dagger server. The up flow re-selects 'asService' through the current server to apply the caller's view; without a server in the context the service cannot be materialized. Indicates the API was invoked outside a normal call context.","triggerScenarios":"Thrown at core/schema/service.go:310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the context/server state problem","Retry the up call; report if it persists"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}