# Unable to connect dremio on localhost of wls

**URL:** <https://community.dremio.com/t/unable-to-connect-dremio-on-localhost-of-wls/10962>\
**Category:** Uncategorized\
**Created:** [September 3, 2023, 7:25pm UTC](https://community.dremio.com/t/unable-to-connect-dremio-on-localhost-of-wls/10962 "2023-09-03T19:25:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alandrebraga](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/alandrebraga/32/5137_2.png) [@alandrebraga](https://community.dremio.com/u/alandrebraga)\
**Post date:** [September 3, 2023, 7:25pm UTC](https://community.dremio.com/t/unable-to-connect-dremio-on-localhost-of-wls/10962/1 "2023-09-03T19:25:19Z")

</div>

Helllo!

I’m new to Dremio and i’m testing it. I installed the dremio on wsl2 (ubuntu 22.04) and was able to start dremio application, but when i try to connect on localhost of postgres i encoutered a password problem.  
By default my postgres user is andrebmallmann and password is admin.

Log:

2023-09-03 19:06:13,819 [start-postgres] ERROR c.d.e.s.jdbc.JdbcSchemaFetcherImpl - Connection is not valid.  
java.sql.SQLException: Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user “andrebmallmann”)  
at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2327)  
at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2056)  
at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)  
at com.dremio.exec.store.jdbc.CloseableDataSource$DatasourceWrapper.getConnection(CloseableDataSource.java:94)  
at com.dremio.exec.store.jdbc.JdbcSchemaFetcherImpl.getState(JdbcSchemaFetcherImpl.java:629)  
at com.dremio.exec.store.jdbc.JdbcStoragePlugin.getState(JdbcStoragePlugin.java:340)  
at com.dremio.exec.catalog.ManagedStoragePlugin.initPlugin(ManagedStoragePlugin.java:1018)  
at com.dremio.exec.catalog.ManagedStoragePlugin.setLocals(ManagedStoragePlugin.java:994)  
at com.dremio.exec.catalog.ManagedStoragePlugin.lambda$newStartSupplier$2(ManagedStoragePlugin.java:598)  
at com.dremio.exec.catalog.ManagedStoragePlugin.lambda$nameSupplier$4(ManagedStoragePlugin.java:667)  
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)  
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:829)  
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user “andrebmallmann”  
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:646)  
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:180)  
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:235)  
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)  
at org.postgresql.jdbc.PgConnection.(PgConnection.java:247)  
at org.postgresql.Driver.makeConnection(Driver.java:434)  
at org.postgresql.Driver.connect(Driver.java:291)  
at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)  
at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:260)  
at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2337)  
at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2323)  
… 13 common frames omitted  
2023-09-03 19:06:13,821 [start-postgres] WARN c.d.e.catalog.ManagedStoragePlugin - Error starting new source: postgres  
java.lang.Exception: Unavailable:  
at com.dremio.exec.catalog.ManagedStoragePlugin.lambda$newStartSupplier$2(ManagedStoragePlugin.java:603)  
at com.dremio.exec.catalog.ManagedStoragePlugin.lambda$nameSupplier$4(ManagedStoragePlugin.java:667)  
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)  
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:829)  
2023-09-03 19:06:13,821 [start-postgres] INFO c.d.s.s.LocalSchedulerService - Cancelling task metadata-refresh-wakeup-postgres  
2023-09-03 19:06:13,821 [qtp669297356-230] ERROR c.d.e.store.jdbc.JdbcStoragePlugin - JDBC source postgres has not been started.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [September 6, 2023, 8:25pm UTC](https://community.dremio.com/t/unable-to-connect-dremio-on-localhost-of-wls/10962/2 "2023-09-06T20:25:22Z")

</div>

@alandrebraga Does the Postgres log tell you anything, seems to be incorrect credentials. One way to make sure that the error message is correct is to install psql on the coordinator (Dremio) and connect from there
