Thanks Jorn,
Love the FizzBin.
So here’s an update.
I had a local copy of the same DB in metabase. I deleted it. Then went to add it back… guess what…
BTW the local copy is PG 10.1 and was added np with some 30.XX version of metabase before.
Looks similar, but seems the SSL error made this happen. I connect just fine using PgAdmin, no SSL.
Does metbase try SSL first, and if it fails try without ?
Error output:
08-24 13:48:34 e[1mERROR metabase.drivere[0m :: Failed to connect to database: org.postgresql.util.PSQLException: The server does not support SSL.
08-24 13:48:36 e[1mERROR metabase.middlewaree[0m :: POST /api/database 500 (2 s) (1 DB calls).
{:message
"ERROR: null value in column “id” violates not-null constraint\n Detail: Failing row contains (null, 2018-08-24 13:48:34.235-06, 2018-08-24 13:48:34.235-06, xxx, null, {“host”:“localhost”,“port”:2345,“dbname”:“desal_data-good”,“user…, postgres, f, t, null, null, 0 50 * * * ? *, 0 50 0 * * ? *, null, f, null).”,
:type org.postgresql.util.PSQLException,
:stacktrace
[“api.database$fn__44580.invokeStatic(database.clj:395)”
“api.database$fn__44580.invoke(database.clj:379)”
“middleware$enforce_authentication$fn__54666.invoke(middleware.clj:116)”
“api.routes$fn__54812.invokeStatic(routes.clj:64)”
“api.routes$fn__54812.invoke(routes.clj:64)”
“routes$fn__55606$fn__55607.doInvoke(routes.clj:108)”
“routes$fn__55606.invokeStatic(routes.clj:103)”
“routes$fn__55606.invoke(routes.clj:103)”
“middleware$catch_api_exceptions$fn__54795.invoke(middleware.clj:424)”
“middleware$log_api_call$fn__54772$fn__54774.invoke(middleware.clj:351)”
“middleware$log_api_call$fn__54772.invoke(middleware.clj:350)”
“middleware$add_security_headers$fn__54720.invoke(middleware.clj:253)”
“core$wrap_streamed_json_response$fn__56459.invoke(core.clj:67)”
“middleware$bind_current_user$fn__54671.invoke(middleware.clj:140)”
“middleware$maybe_set_site_url$fn__54724.invoke(middleware.clj:277)”],
:sql-exception-chain
[“PSQLException:”
“Message: ERROR: null value in column “id” violates not-null constraint”
"Detail: Failing row contains (null, 2018-08-24 13:48:34.235-06, 2018-08-24 13:48:34.235-06, xxx, null, {“host”:“localhost”,“port”:2345,“dbname”:“desal_data-good”,“user…, postgres, f, t, null, null, 0 50 * * * ? *, 0 50 0 * * ? *, null, f, null).”
“SQLState: 23502”
“Error Code: 0”]}
08-24 13:48:40 e[1mDEBUG metabase.middlewaree[0m :: GET /api/database 200 (3 s) (3 DB calls). Jetty threads: 8/50 (6 busy, 6 idle, 0 queued)