Skip to content

Instantly share code, notes, and snippets.

@marciuz
Created March 5, 2021 13:55
Show Gist options
  • Save marciuz/862850e1d228b3e641892259a32a7cff to your computer and use it in GitHub Desktop.
Save marciuz/862850e1d228b3e641892259a32a7cff to your computer and use it in GitHub Desktop.
[cda8ce5f-16c4-4f7d-8d04-12aefcbbad3f] 2021-03-05T14:53:56+01:00 ERROR metabase.sync.util Error fingerprinting Table 154 'widget_tracker_dett'
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:692)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at metabase.driver.sql_jdbc.execute$fn__77477.invokeStatic(execute.clj:155)
at metabase.driver.sql_jdbc.execute$fn__77477.invoke(execute.clj:153)
at clojure.lang.MultiFn.invoke(MultiFn.java:239)
at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:387)
at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)
at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
at metabase.driver.sql_jdbc$fn__79102.invokeStatic(sql_jdbc.clj:54)
at metabase.driver.sql_jdbc$fn__79102.invoke(sql_jdbc.clj:52)
at clojure.lang.MultiFn.invoke(MultiFn.java:244)
at metabase.query_processor.context$executef.invokeStatic(context.clj:59)
at metabase.query_processor.context$executef.invoke(context.clj:48)
at metabase.query_processor.context.default$default_runf.invokeStatic(default.clj:68)
at metabase.query_processor.context.default$default_runf.invoke(default.clj:66)
at metabase.query_processor.context$runf.invokeStatic(context.clj:45)
at metabase.query_processor.context$runf.invoke(context.clj:39)
at metabase.query_processor.reducible$pivot.invokeStatic(reducible.clj:34)
at metabase.query_processor.reducible$pivot.invoke(reducible.clj:31)
at metabase.query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46414.invoke(mbql_to_native.clj:25)
at metabase.query_processor.middleware.check_features$check_features$fn__45666.invoke(check_features.clj:41)
at metabase.query_processor.middleware.limit$limit$fn__46400.invoke(limit.clj:37)
at metabase.query_processor.middleware.cache$maybe_return_cached_results$fn__45324.invoke(cache.clj:211)
at metabase.query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46579.invoke(optimize_datetime_filters.clj:133)
at metabase.query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44470.invoke(auto_parse_filter_values.clj:43)
at metabase.query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40787.invoke(wrap_value_literals.clj:147)
at metabase.query_processor.middleware.annotate$add_column_info$fn__40650.invoke(annotate.clj:582)
at metabase.query_processor.middleware.permissions$check_query_permissions$fn__45541.invoke(permissions.clj:75)
at metabase.query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47102.invoke(pre_alias_aggregations.clj:40)
at metabase.query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45739.invoke(cumulative_aggregations.clj:60)
at metabase.query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47415.invoke(resolve_joined_fields.clj:94)
at metabase.query_processor.middleware.resolve_joins$resolve_joins$fn__47720.invoke(resolve_joins.clj:178)
at metabase.query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__44064.invoke(add_implicit_joins.clj:181)
at metabase.query_processor.middleware.large_int_id$convert_id_to_string$fn__46375.invoke(large_int_id.clj:44)
at metabase.query_processor.middleware.format_rows$format_rows$fn__46355.invoke(format_rows.clj:74)
at metabase.query_processor.middleware.desugar$desugar$fn__45805.invoke(desugar.clj:21)
at metabase.query_processor.middleware.binning$update_binning_strategy$fn__44830.invoke(binning.clj:228)
at metabase.query_processor.middleware.resolve_fields$resolve_fields$fn__45348.invoke(resolve_fields.clj:24)
at metabase.query_processor.middleware.add_dimension_projections$add_remapping$fn__43694.invoke(add_dimension_projections.clj:316)
at metabase.query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43925.invoke(add_implicit_clauses.clj:146)
at metabase.query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48150.invoke(upgrade_field_literals.clj:45)
at metabase.query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44217.invoke(add_source_metadata.clj:122)
at metabase.query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47299.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)
at metabase.query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44417.invoke(auto_bucket_datetimes.clj:139)
at metabase.query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45395.invoke(resolve_source_table.clj:45)
at metabase.query_processor.middleware.parameters$substitute_parameters$fn__47084.invoke(parameters.clj:111)
at metabase.query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45447.invoke(resolve_referenced.clj:79)
at metabase.query_processor.middleware.expand_macros$expand_macros$fn__46061.invoke(expand_macros.clj:155)
at metabase.query_processor.middleware.add_timezone_info$add_timezone_info$fn__44226.invoke(add_timezone_info.clj:15)
at metabase.query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48086.invoke(splice_params_in_response.clj:32)
at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47310$fn__47314.invoke(resolve_database_and_driver.clj:31)
at metabase.driver$do_with_driver.invokeStatic(driver.clj:60)
at metabase.driver$do_with_driver.invoke(driver.clj:56)
at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47310.invoke(resolve_database_and_driver.clj:25)
at metabase.query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46301.invoke(fetch_source_query.clj:274)
at metabase.query_processor.middleware.store$initialize_store$fn__48095$fn__48096.invoke(store.clj:11)
at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:42)
at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
at metabase.query_processor.middleware.store$initialize_store$fn__48095.invoke(store.clj:10)
at metabase.query_processor.middleware.validate$validate_query$fn__48157.invoke(validate.clj:10)
at metabase.query_processor.middleware.normalize_query$normalize$fn__46427.invoke(normalize_query.clj:22)
at metabase.query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__44082.invoke(add_rows_truncated.clj:35)
at metabase.query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48071.invoke(results_metadata.clj:143)
at metabase.query_processor.reducible$async_qp$qp_STAR___37428$thunk__37429.invoke(reducible.clj:103)
at metabase.query_processor.reducible$async_qp$qp_STAR___37428.invoke(reducible.clj:109)
at metabase.query_processor.reducible$sync_qp$qp_STAR___37437$fn__37440.invoke(reducible.clj:135)
at metabase.query_processor.reducible$sync_qp$qp_STAR___37437.invoke(reducible.clj:134)
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:667)
at clojure.core$apply.invoke(core.clj:660)
at metabase.query_processor$process_query.invokeStatic(query_processor.clj:146)
at metabase.query_processor$process_query.doInvoke(query_processor.clj:140)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at clojure.lang.Var.invoke(Var.java:388)
at metabase.db.metadata_queries$fn__59283$table_rows_sample__59292$fn__59295.invoke(metadata_queries.clj:144)
at metabase.db.metadata_queries$fn__59283$table_rows_sample__59292.invoke(metadata_queries.clj:131)
at metabase.sync.analyze.fingerprint$fn__59348$fingerprint_table_BANG___59353$fn__59354.invoke(fingerprint.clj:66)
at metabase.sync.analyze.fingerprint$fn__59348$fingerprint_table_BANG___59353.invoke(fingerprint.clj:46)
at metabase.sync.analyze.fingerprint$fn__59524$fingerprint_fields_BANG___59529$fn__59530$fn__59531.invoke(fingerprint.clj:180)
at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:146)
at metabase.sync.util$do_with_error_handling.invoke(util.clj:139)
at metabase.sync.analyze.fingerprint$fn__59524$fingerprint_fields_BANG___59529$fn__59530.invoke(fingerprint.clj:178)
at metabase.sync.analyze.fingerprint$fn__59524$fingerprint_fields_BANG___59529.invoke(fingerprint.clj:174)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568$fn__59571$fn__59572$fn__59573.invoke(fingerprint.clj:204)
at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
at clojure.core$reduce.invokeStatic(core.clj:6827)
at clojure.core$reduce.invoke(core.clj:6810)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568$fn__59571$fn__59572.invoke(fingerprint.clj:200)
at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:44)
at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568$fn__59571.invoke(fingerprint.clj:197)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568.invoke(fingerprint.clj:186)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568$fn__59569.invoke(fingerprint.clj:191)
at metabase.sync.analyze.fingerprint$fn__59559$fingerprint_fields_for_db_BANG__STAR___59568.invoke(fingerprint.clj:186)
at metabase.sync.analyze.fingerprint$fn__59601$fingerprint_fields_for_db_BANG___59606$fn__59607.invoke(fingerprint.clj:218)
at metabase.sync.analyze.fingerprint$fn__59601$fingerprint_fields_for_db_BANG___59606.invoke(fingerprint.clj:212)
at metabase.sync.analyze$make_analyze_steps$fn__59758.invoke(analyze.clj:104)
at metabase.sync.util$fn__39392$run_step_with_metadata__39397$fn__39401$fn__39403.invoke(util.clj:342)
at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
at metabase.sync.util$with_start_and_finish_debug_logging.invokeStatic(util.clj:116)
at metabase.sync.util$with_start_and_finish_debug_logging.invoke(util.clj:113)
at metabase.sync.util$fn__39392$run_step_with_metadata__39397$fn__39401.invoke(util.clj:339)
at metabase.sync.util$fn__39392$run_step_with_metadata__39397.invoke(util.clj:334)
at metabase.sync.util$fn__39584$run_sync_operation__39589$fn__39590$fn__39591.invoke(util.clj:427)
at clojure.core$mapv$fn__8445.invoke(core.clj:6912)
at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
at clojure.core$reduce.invokeStatic(core.clj:6827)
at clojure.core$mapv.invokeStatic(core.clj:6903)
at clojure.core$mapv.invoke(core.clj:6903)
at metabase.sync.util$fn__39584$run_sync_operation__39589$fn__39590.invoke(util.clj:427)
at metabase.sync.util$fn__39584$run_sync_operation__39589.invoke(util.clj:421)
at metabase.sync.analyze$fn__59770$analyze_db_BANG___59775$fn__59776$fn__59777.invoke(analyze.clj:121)
at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:146)
at metabase.sync.util$do_with_error_handling.invoke(util.clj:139)
at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:142)
at metabase.sync.util$do_with_error_handling.invoke(util.clj:139)
at clojure.core$partial$fn__5839.invoke(core.clj:2623)
at metabase.driver$fn__29098.invokeStatic(driver.clj:527)
at metabase.driver$fn__29098.invoke(driver.clj:527)
at clojure.lang.MultiFn.invoke(MultiFn.java:239)
at metabase.sync.util$sync_in_context$fn__39304.invoke(util.clj:135)
at metabase.sync.util$with_db_logging_disabled$fn__39301.invoke(util.clj:126)
at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
at metabase.sync.util$with_start_and_finish_logging$fn__39290.invoke(util.clj:111)
at metabase.sync.util$with_sync_events$fn__39285.invoke(util.clj:85)
at metabase.sync.util$with_duplicate_ops_prevented$fn__39276.invoke(util.clj:64)
at metabase.sync.util$do_sync_operation.invokeStatic(util.clj:161)
at metabase.sync.util$do_sync_operation.invoke(util.clj:158)
at metabase.sync.analyze$fn__59770$analyze_db_BANG___59775$fn__59776.invoke(analyze.clj:118)
at metabase.sync.analyze$fn__59770$analyze_db_BANG___59775.invoke(analyze.clj:113)
at metabase.api.database$fn__62304$fn__62306.invoke(database.clj:622)
at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1507)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:758)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:685)
... 140 more
Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=43717)(type=master) : Socket fail to connect to host:localhost, port:43717. Connection refused
at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:192)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1372)
at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:635)
at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:150)
at org.mariadb.jdbc.Driver.connect(Driver.java:89)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at metabase.connection_pool$proxy_data_source$reify__34149.getConnection(connection_pool.clj:29)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:161)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:147)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:202)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163)
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
Caused by: java.sql.SQLNonTransientConnectionException: Socket fail to connect to host:localhost, port:43717. Connection refused
at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:183)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createSocket(AbstractConnectProtocol.java:255)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:512)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1367)
... 14 more
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:589)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
at java.base/java.net.Socket.connect(Socket.java:648)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createSocket(AbstractConnectProtocol.java:250)
... 16 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment