Getting Error

Hello ,
For the first time if i want to ask any question , i am getting the below error after selecting the any table and hit on Get Answer.

Jul 05 11:04:31 WARN metabase.query-processor.middleware.process-userland-query :: Query failure {:status :failed,
:class java.sql.SQLNonTransientConnectionException,
:error “(conn=8557750) Connection reset”,
:stacktrace
(“org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:234)”
“org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)”
“org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:238)”
“org.mariadb.jdbc.MariaDbStatement.executeInternal(MariaDbStatement.java:356)”
“org.mariadb.jdbc.MariaDbStatement.executeQuery(MariaDbStatement.java:530)”
“org.mariadb.jdbc.MariaDbConnection.getTransactionIsolation(MariaDbConnection.java:951)”
“com.mchange.v2.c3p0.impl.NewProxyConnection.getTransactionIsolation(NewProxyConnection.java:277)”
“clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:790)”
“clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)”
“clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:834)”
“clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)”
“clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:782)”
“clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)”
“–> driver.sql_jdbc.execute$do_in_transaction.invokeStatic(execute.clj:243)”
“driver.sql_jdbc.execute$do_in_transaction.invoke(execute.clj:242)”
“driver.sql_jdbc.execute$run_query_without_timezone.invokeStatic(execute.clj:260)”
“driver.sql_jdbc.execute$run_query_without_timezone.invoke(execute.clj:259)”
“driver.sql_jdbc.execute$run_query_with_timezone.invokeStatic(execute.clj:272)”
“driver.sql_jdbc.execute$run_query_with_timezone.invoke(execute.clj:262)”
“driver.sql_jdbc.execute$execute_query$fn__62556.invoke(execute.clj:289)”
“driver.sql_jdbc.execute$do_with_try_catch.invokeStatic(execute.clj:219)”
“driver.sql_jdbc.execute$do_with_try_catch.invoke(execute.clj:213)”
“driver.sql_jdbc.execute$execute_query.invokeStatic(execute.clj:286)”
“driver.sql_jdbc.execute$execute_query.invoke(execute.clj:280)”
“driver.sql_jdbc$fn__62799.invokeStatic(sql_jdbc.clj:48)”
“driver.sql_jdbc$fn__62799.invoke(sql_jdbc.clj:47)”
“query_processor$fn__40378$execute_query__40383$fn__40384.invoke(query_processor.clj:61)”
“query_processor$fn__40378$execute_query__40383.invoke(query_processor.clj:55)”
“query_processor.middleware.mbql_to_native$mbql__GT_native$fn__34658.invoke(mbql_to_native.clj:36)”
“query_processor.middleware.annotate$result_rows_maps__GT_vectors$fn__32695.invoke(annotate.clj:368)”
“query_processor.middleware.annotate$add_column_info$fn__32600.invoke(annotate.clj:303)”
“query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__34138.invoke(cumulative_aggregations.clj:57)”
“query_processor.middleware.limit$limit$fn__34631.invoke(limit.clj:19)”
“query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__40243.invoke(results_metadata.clj:86)”
“query_processor.middleware.format_rows$format_rows$fn__34619.invoke(format_rows.clj:26)”
“query_processor.middleware.add_dimension_projections$add_remapping$fn__31752.invoke(add_dimension_projections.clj:236)”
“query_processor.middleware.add_row_count_and_status$add_row_count_and_status$fn__32146.invoke(add_row_count_and_status.clj:16)”
“query_processor.middleware.driver_specific$process_query_in_context$fn__34380.invoke(driver_specific.clj:12)”
“query_processor.middleware.resolve_driver$resolve_driver$fn__37209.invoke(resolve_driver.clj:15)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550$fn__33551.invoke(bind_effective_timezone.clj:9)”
“util.date$call_with_effective_timezone.invokeStatic(date.clj:88)”
“util.date$call_with_effective_timezone.invoke(date.clj:77)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550.invoke(bind_effective_timezone.clj:8)”
“query_processor.middleware.store$initialize_store$fn__40268$fn__40269.invoke(store.clj:11)”
“query_processor.store$do_with_new_store.invokeStatic(store.clj:35)”
“query_processor.store$do_with_new_store.invoke(store.clj:31)”
“query_processor.middleware.store$initialize_store$fn__40268.invoke(store.clj:10)”
“query_processor.middleware.async$async__GT_sync$fn__33146.invoke(async.clj:19)”
“query_processor.middleware.async_wait$runnable$fn__33277.invoke(async_wait.clj:71)”),
:query
{:constraints {:max-results 10000, :max-results-bare-rows 2000},
:type :query,
:middleware {:userland-query? true},
:info
{:executed-by 93,
:context :question,
:card-id 257,
:dashboard-id nil,
:query-hash [118, 112, -48, -128, 64, 16, -59, -95, -114, -89, 115, -32, -33, 105, -16, -5, 41, -20, -58, 41, -26, -33, -16, 41, -102, 1, -98, 34, -89, 10, 10, -107]},
:query
{:source-table 2982,
:filter [:and [:= [:field-id 33485] “Tally.ERP9”] [:!= [:field-id 33488] 0] [:!= [:field-id 33493] 762843780 715000005 732798216]],
:aggregation [[:count] [:distinct [:fk-> [:field-id 33493] [:field-id 33388]]]],
:breakout [[:field-id 33488]],
:order-by [[:asc [:field-id 33488]]]},
:parameters [{:type “date/all-options”, :target [“dimension” [“field-id” 33497]], :value “past1days”}],
:async? true,
:cache-ttl 1570},
:preprocessed
{:constraints {:max-results 10000, :max-results-bare-rows 2000},
:settings {:report-timezone “Asia/Calcutta”},
:type :query,
:middleware {:userland-query? true},
:info
{:executed-by 93,
:context :question,
:card-id 257,
:query-hash [118, 112, -48, -128, 64, 16, -59, -95, -114, -89, 115, -32, -33, 105, -16, -5, 41, -20, -58, 41, -26, -33, -16, 41, -102, 1, -98, 34, -89, 10, 10, -107]},
:database 2,
:driver :mysql,
:query
{:source-table 2982,
:filter

I am in Metabase 0.32.7
Connecting to Mariadb
Centos 8
Running jar

Hi @sushant.naik
I’m pretty sure you’re seeing this issue. There’s no work-around, but it should only be a problem for the first connection between Metabase and the database.
https://github.com/metabase/metabase/issues/9989