-
Notifications
You must be signed in to change notification settings - Fork 461
Open
Labels
Description
On the newest artifactory-cpp-ce-107.125.4, jfrog is not being able to connect to my external Database, with the following error in the logs:
2025-11-04T12:35:06.257Z [jfmd ] [ERROR] [ ] [database_bearer.go:137 ] [main ] - Could not initialize database (db config: {postgresql jdbc:postgresql://REDACTED}): failed to connect to (REDACTED): failed to write startup message: write failed: tls: failed to parse certificate from server: x509: SAN dNSName is malformed
error connecting to database. giving up
jfrog.com/metadata/v7/services/common/db.(*databaseBearer).init
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:218
jfrog.com/metadata/v7/services/common/db.NewDatabaseBearer
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:135
main.main
jfrog.com/metadata/[email protected]/metadata.go:43
runtime.main
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/proc.go:285
runtime.goexit
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/asm_amd64.s:1693
goroutine 1 [running]:
runtime/debug.Stack()
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/debug/stack.go:26 +0x5e
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc0008b8190, {0x3394d68, 0xc0007b8030}, {0x2cd60c1, 0x32}, {0xc00090ba20, 0x2, 0x2})
goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:101 +0xbf
jfrog.com/metadata/v7/services/common/db.NewDatabaseBearer({0x3394d68, 0xc0007b8030}, {0x339d9a0, 0xc0005bcaf0}, {0x339d8c8, 0xc000940960}, {0x3389028, 0x4d1db00}, {0x33714e0, 0xc000b0ad50}, ...)
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:137 +0x2bd
main.main()
jfrog.com/metadata/[email protected]/metadata.go:43 +0x485
[database]
panic: Could not initialize database (db config: postgresql jdbc:postgresql://REDACTED: failed to write startup message: write failed: tls: failed to parse certificate from server: x509: SAN dNSName is malformed
error connecting to database. giving up
jfrog.com/metadata/v7/services/common/db.(*databaseBearer).init
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:218
jfrog.com/metadata/v7/services/common/db.NewDatabaseBearer
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:135
main.main
jfrog.com/metadata/[email protected]/metadata.go:43
runtime.main
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/proc.go:285
runtime.goexit
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/asm_amd64.s:1693
goroutine 1 [running]:
runtime/debug.Stack()
/var/jenkins_home/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.25.2/src/runtime/debug/stack.go:26 +0x5e
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc0008b8190, {0x3394d68, 0xc0007b8030}, {0x2cd60c1, 0x32}, {0xc00090ba20, 0x2, 0x2})
goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:101 +0xbf
jfrog.com/metadata/v7/services/common/db.NewDatabaseBearer({0x3394d68, 0xc0007b8030}, {0x339d9a0, 0xc0005bcaf0}, {0x339d8c8, 0xc000940960}, {0x3389028, 0x4d1db00}, {0x33714e0, 0xc000b0ad50}, ...)
jfrog.com/metadata/[email protected]/services/common/db/database_bearer.go:137 +0x2bd
main.main()
jfrog.com/metadata/[email protected]/metadata.go:43 +0x485
This seems to be related to this go bug, which is the same version running in this jfrog deployment: golang/go#75828