I am trying to connect the hivemq ese to my postgres database and am getting the following error. The config file seems to match what you recommend. Here is the error list:
2023-07-30 23:13:49,812 INFO - Starting HiveMQ Enterprise Security Extension.
2023-07-30 23:13:49,826 INFO - Access log is written to /opt/hivemq/log/access/access.log.
2023-07-30 23:13:49,836 DEBUG - Loaded driver jar in /opt/hivemq/extensions/hivemq-enterprise-security-extension/drivers/jdbc/postgresql-42.6.0.jar
2023-07-30 23:13:49,839 DEBUG - Driver class org.postgresql.Driver found in Thread context class loader hse.aj.a@1034c6ff
2023-07-30 23:13:49,840 DEBUG - com.hivemq.extensions.ese.postgres.postgres-backend - configuration:
2023-07-30 23:13:49,841 DEBUG - allowPoolSuspension…false
2023-07-30 23:13:49,841 DEBUG - autoCommit…true
2023-07-30 23:13:49,841 DEBUG - catalog…none
2023-07-30 23:13:49,841 DEBUG - connectionInitSql…none
2023-07-30 23:13:49,841 DEBUG - connectionTestQuery…none
2023-07-30 23:13:49,841 DEBUG - connectionTimeout…9000
2023-07-30 23:13:49,842 DEBUG - dataSource…none
2023-07-30 23:13:49,842 DEBUG - dataSourceClassName…none
2023-07-30 23:13:49,842 DEBUG - dataSourceJNDI…none
2023-07-30 23:13:49,842 DEBUG - dataSourceProperties…{password=, socketTimeout=9}
2023-07-30 23:13:49,842 DEBUG - driverClassName…“org.postgresql.Driver”
2023-07-30 23:13:49,842 DEBUG - exceptionOverrideClassName…none
2023-07-30 23:13:49,842 DEBUG - healthCheckProperties…{}
2023-07-30 23:13:49,842 DEBUG - healthCheckRegistry…none
2023-07-30 23:13:49,842 DEBUG - idleTimeout…600000
2023-07-30 23:13:49,842 DEBUG - initializationFailTimeout…1
2023-07-30 23:13:49,843 DEBUG - isolateInternalQueries…false
2023-07-30 23:13:49,843 DEBUG - jdbcUrl…jdbc:postgresql://localhost:5432/hivemq
2023-07-30 23:13:49,843 DEBUG - keepaliveTime…0
2023-07-30 23:13:49,843 DEBUG - leakDetectionThreshold…0
2023-07-30 23:13:49,843 DEBUG - maxLifetime…1800000
2023-07-30 23:13:49,843 DEBUG - maximumPoolSize…10
2023-07-30 23:13:49,843 DEBUG - metricRegistry…com.codahale.metrics.MetricRegistry@1cbb3d3b
2023-07-30 23:13:49,843 DEBUG - metricsTrackerFactory…none
2023-07-30 23:13:49,843 DEBUG - minimumIdle…10
2023-07-30 23:13:49,843 DEBUG - password…
2023-07-30 23:13:49,843 DEBUG - poolName…“com.hivemq.extensions.ese.postgres.postgres-backend”
2023-07-30 23:13:49,843 DEBUG - readOnly…false
2023-07-30 23:13:49,843 DEBUG - registerMbeans…false
2023-07-30 23:13:49,843 DEBUG - scheduledExecutor…none
2023-07-30 23:13:49,843 DEBUG - schema…none
2023-07-30 23:13:49,843 DEBUG - threadFactory…internal
2023-07-30 23:13:49,843 DEBUG - transactionIsolation…default
2023-07-30 23:13:49,843 DEBUG - username…“hivemq”
2023-07-30 23:13:49,843 DEBUG - validationTimeout…5000
2023-07-30 23:13:49,844 INFO - com.hivemq.extensions.ese.postgres.postgres-backend - Starting…
2023-07-30 23:13:49,846 WARN - Registered driver with driverClassName=org.postgresql.Driver was not found, trying direct instantiation.
2023-07-30 23:13:49,846 DEBUG - Driver class org.postgresql.Driver found in Thread context class loader hse.aj.a@1034c6ff
2023-07-30 23:13:49,864 DEBUG - com.hivemq.extensions.ese.postgres.postgres-backend - Failed to create/setup connection: FATAL: Ident authentication failed for user “hivemq”
2023-07-30 23:13:49,864 DEBUG - com.hivemq.extensions.ese.postgres.postgres-backend - Cannot acquire connection from data source
org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:263)
at org.postgresql.Driver.makeConnection(Driver.java:443)
at org.postgresql.Driver.connect(Driver.java:297)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(Source.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(Source.java:359)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(Source.java:201)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(Source.java:470)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Source.java:561)
at com.zaxxer.hikari.pool.HikariPool.(Source.java:100)
at com.zaxxer.hikari.HikariDataSource.(Source.java:81)
at hse.aj.a.a(Source.java:135)
at hse.ah.a.h(Source.java:91)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at hmq.eL.f.run(Source.java:39)
at com.codahale.metrics.InstrumentedScheduledExecutorService$InstrumentedRunnable.run(Source.java:241)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Suppressed: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:267)
… 22 common frames omitted
2023-07-30 23:13:50,865 ERROR - com.hivemq.extensions.ese.postgres.postgres-backend - Exception during pool initialization.
org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:263)
at org.postgresql.Driver.makeConnection(Driver.java:443)
at org.postgresql.Driver.connect(Driver.java:297)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(Source.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(Source.java:359)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(Source.java:201)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(Source.java:470)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Source.java:561)
at com.zaxxer.hikari.pool.HikariPool.(Source.java:100)
at com.zaxxer.hikari.HikariDataSource.(Source.java:81)
at hse.aj.a.a(Source.java:135)
at hse.ah.a.h(Source.java:91)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at hmq.eL.f.run(Source.java:39)
at com.codahale.metrics.InstrumentedScheduledExecutorService$InstrumentedRunnable.run(Source.java:241)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Suppressed: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:267)
… 22 common frames omitted
2023-07-30 23:13:50,866 ERROR - Could not instantiate hikari connection jdbc:postgresql://localhost:5432/hivemq.
com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: Ident authentication failed for user “hivemq”
at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(Source.java:596)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Source.java:582)
at com.zaxxer.hikari.pool.HikariPool.(Source.java:100)
at com.zaxxer.hikari.HikariDataSource.(Source.java:81)
at hse.aj.a.a(Source.java:135)
at hse.ah.a.h(Source.java:91)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at hmq.eL.f.run(Source.java:39)
at com.codahale.metrics.InstrumentedScheduledExecutorService$InstrumentedRunnable.run(Source.java:241)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:263)
at org.postgresql.Driver.makeConnection(Driver.java:443)
at org.postgresql.Driver.connect(Driver.java:297)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(Source.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(Source.java:359)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(Source.java:201)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(Source.java:470)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Source.java:561)
… 13 common frames omitted
Suppressed: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user “hivemq”
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:267)
… 22 common frames omitted
2023-07-30 23:13:50,866 WARN - Could not create datasource for realm postgres-backend
2023-07-30 23:13:50,866 ERROR - The HiveMQ Enterprise Security Extension could not start because of a configuration error: No realm could be started.
2023-07-30 23:13:50,866 INFO - Startup of extension with id “hivemq-enterprise-security-extension” was prevented by the extension itself, reason: No realm could be started. Extension will be disabled.