You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Sprintf("unable to connect to DB, tried default DB names: %v", strings.Join(defaultDatabaseNames, ",")),
)
}
Errors from the loop of trying different default DB names are ignored - instead a static string error is returned. Ideally this message would also include the Last error (or all of the errors) -- this would of made it more obvious I had misconfigured TLS.
The text was updated successfully, but these errors were encountered:
pquerna
changed the title
SQL Connect errors are hard to debug in autosetup
SQL Connect errors are hard to debug in autosetup with Postgres
May 27, 2021
Expected Behavior
When SQL connection is misconfigured, show a more accurate error message.
Actual Behavior
I had misconfigured TLS client certificates when using the autosetup container, using Postgres
This was difficult to debug, because the container would log like this:
Steps to Reproduce the Problem
When
temporal-sql-tool
is invoked with create, it sets the DatabaseName to "", and then invokes tryConnect/sqlx.Connect:temporal/common/persistence/sql/sqlplugin/postgresql/plugin.go
Lines 117 to 138 in 2e3332f
Errors from the loop of trying different default DB names are ignored - instead a static string error is returned. Ideally this message would also include the Last error (or all of the errors) -- this would of made it more obvious I had misconfigured TLS.
The text was updated successfully, but these errors were encountered: