{"record":{"id":"a6e278964228b144","repo":"googleapis/mcp-toolbox","slug":"unable-to-create-pool-w-a6e278","errorCode":null,"errorMessage":"unable to create pool: %w","messagePattern":"unable to create pool: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/singlestore/singlestore.go","lineNumber":73,"sourceCode":"\tHost             string            `yaml:\"host\" validate:\"required\"`\n\tPort             string            `yaml:\"port\" validate:\"required\"`\n\tUser             string            `yaml:\"user\" validate:\"required\"`\n\tPassword         string            `yaml:\"password\" validate:\"required\"`\n\tDatabase         string            `yaml:\"database\" validate:\"required\"`\n\tQueryTimeout     string            `yaml:\"queryTimeout\"`\n\tConnectionParams map[string]string `yaml:\"connectionParams\"`\n}\n\n// SourceConfigType returns the type of the source configuration.\nfunc (r Config) SourceConfigType() string {\n\treturn SourceType\n}\n\n// Initialize sets up the SingleStore connection pool and returns a Source.\nfunc (r Config) Initialize(ctx context.Context, tracer trace.Tracer) (sources.Source, error) {\n\tpool, err := initSingleStoreConnectionPool(ctx, tracer, r)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to create pool: %w\", err)\n\t}\n\n\terr = pool.PingContext(ctx)\n\tif err != nil {\n\t\tpool.Close()\n\t\treturn nil, fmt.Errorf(\"unable to connect successfully: %w\", err)\n\t}\n\n\ts := &Source{\n\t\tConfig: r,\n\t\tPool:   pool,\n\t}\n\treturn s, nil\n}\n\nvar _ sources.Source = &Source{}\n\n// Source represents a SingleStore database source and holds its connection pool.","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/singlestore/singlestore.go#L55-L91","documentation":"The SingleStore connection pool could not be created during source Initialize — the DSN built from host/port/user/password/database was rejected or the server was unreachable.","triggerScenarios":"Thrown at internal/sources/singlestore/singlestore.go:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify host, port, credentials and database in the source config","Confirm network reachability of the SingleStore server","Check TLS requirements and connectionParams values"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}