# ContinuaCI cannot initialise PostgresSql

**URL:** https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650
**Category:** Discussion
**Created:** [June 12, 2016, 2:59am UTC](https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650 "2016-06-12T02:59:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![j\_kour](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@j\_kour](https://www.finalbuilder.com/forums/u/j_kour)
#### Post date: [June 12, 2016, 2:59am UTC](https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650/1 "2016-06-12T02:59:58Z")

</div>

Hi,&nbsp;  
  
I have the following installation:  
  
On Mac: PostgresSQL (neContinuaCI database)  
  
on Win10 Virtual Machine: ContinuaCI installed and the connection string properly configured.&nbsp;  
  
When I try to access ContinuaCI from a browser, I get the following error:  
  
Log Name: &nbsp; &nbsp; &nbsp;Application  
Source: &nbsp; &nbsp; &nbsp; &nbsp;Continua  
Date: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;12-Jun-16 1:21:31 AM  
Event ID: &nbsp; &nbsp; &nbsp;0  
Task Category: None  
Level: &nbsp; &nbsp; &nbsp; &nbsp; Error  
Keywords: &nbsp; &nbsp; &nbsp;Classic  
User: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;N/A  
Computer: &nbsp; &nbsp; &nbsp;NE-BUILD-SERVER  
Description:  
Could not initialise database:  
  
Npgsql.NpgsqlException:  
no pg\_hba.conf entry for host “192.168.1.65”, user “administrator”, database “neContinuaCI”, SSL off  
Severity: FATAL  
Code: 28000  
&nbsp; &nbsp;at Npgsql.NpgsqlState.d\_\_0.MoveNext()  
&nbsp; &nbsp;at Npgsql.NpgsqlState.ProcessAndDiscardBackendResponses(NpgsqlConnector context)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnector.Open()  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnection.Open()  
&nbsp; &nbsp;at FluentMigrator.Runner.Processors.GenericProcessorBase.EnsureConnectionIsOpen()  
&nbsp; &nbsp;at FluentMigrator.Runner.Processors.Postgres.PostgresProcessor.Exists(String template, Object[] args)  
&nbsp; &nbsp;at FluentMigrator.Runner.VersionLoader.LoadVersionInfo()  
&nbsp; &nbsp;at FluentMigrator.Runner.MigrationRunner…ctor(Assembly assembly, IRunnerContext runnerContext, IMigrationProcessor processor)  
&nbsp; &nbsp;at FluentMigrator.Runner.Initialization.TaskExecutor.Initialize()  
&nbsp; &nbsp;at FluentMigrator.Runner.Initialization.TaskExecutor.Execute()  
&nbsp; &nbsp;at Continua.Migrations.Runner.Execute(String database, String connectionString, String fileName)  
&nbsp; &nbsp;at Continua.Server.Service.Migrator.Begin()  
Exiting…  
Event Xml:  
  
&nbsp;   
&nbsp; &nbsp;   
&nbsp; &nbsp; 0  
&nbsp; &nbsp; 2  
&nbsp; &nbsp; 0  
&nbsp; &nbsp; 0x80000000000000  
&nbsp; &nbsp;   
&nbsp; &nbsp; 622  
&nbsp; &nbsp; Application  
&nbsp; &nbsp; NE-BUILD-SERVER  
&nbsp; &nbsp;   
&nbsp;   
&nbsp;   
&nbsp; &nbsp; Could not initialise database:  
  
Npgsql.NpgsqlException:  
no pg\_hba.conf entry for host “192.168.1.65”, user “administrator”, database “neContinuaCI”, SSL off  
Severity: FATAL  
Code: 28000  
&nbsp; &nbsp;at Npgsql.NpgsqlState.&lt;ProcessBackendResponses&gt;d\_\_0.MoveNext()  
&nbsp; &nbsp;at Npgsql.NpgsqlState.ProcessAndDiscardBackendResponses(NpgsqlConnector context)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnector.Open()  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection)  
&nbsp; &nbsp;at Npgsql.NpgsqlConnection.Open()  
&nbsp; &nbsp;at FluentMigrator.Runner.Processors.GenericProcessorBase.EnsureConnectionIsOpen()  
&nbsp; &nbsp;at FluentMigrator.Runner.Processors.Postgres.PostgresProcessor.Exists(String template, Object[] args)  
&nbsp; &nbsp;at FluentMigrator.Runner.VersionLoader.LoadVersionInfo()  
&nbsp; &nbsp;at FluentMigrator.Runner.MigrationRunner…ctor(Assembly assembly, IRunnerContext runnerContext, IMigrationProcessor processor)  
&nbsp; &nbsp;at FluentMigrator.Runner.Initialization.TaskExecutor.Initialize()  
&nbsp; &nbsp;at FluentMigrator.Runner.Initialization.TaskExecutor.Execute()  
&nbsp; &nbsp;at Continua.Migrations.Runner.Execute(String database, String connectionString, String fileName)  
&nbsp; &nbsp;at Continua.Server.Service.Migrator.Begin()  
Exiting…  
&nbsp;   
  
  
The pg\_hba file on mac has the following entry:  
  
host &nbsp; &nbsp;all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0/0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trust  
  
  
and I have added listen\_addresses=’\*'  
  
Now, what does this “cannot initialise database” mean? That Continua can’t connect to postgressql or that after it connects there is another problem?  
  
What do you think?  
  
Thanks  
  
  
John&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 12, 2016, 3:32am UTC](https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650/2 "2016-06-12T03:32:29Z")

</div>

It looks to me like it’s connecting. Did you restart postgresql after changing the pg\_hba.conf ( or run SELECT pg\_reload\_conf(); ). Also, I would not use trust, it allows anyone to connect without specifiying a password, totall insecure.

---

<div class="post-metadata">

### Author: ![j\_kour](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@j\_kour](https://www.finalbuilder.com/forums/u/j_kour)
#### Post date: [June 12, 2016, 4:43am UTC](https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650/3 "2016-06-12T04:43:46Z")

</div>

Yes I have restarted the server but still the same. I know about “trust”. I’ll change it after Continua connects. I was thinking of something else; are database names and user names case-sensitive in Postgresql?

---

<div class="post-metadata">

### Author: ![j\_kour](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@j\_kour](https://www.finalbuilder.com/forums/u/j_kour)
#### Post date: [June 12, 2016, 5:53am UTC](https://www.finalbuilder.com/forums/t/continuaci-cannot-initialise-postgressql/5650/4 "2016-06-12T05:53:36Z")

</div>

After hours of digging and experimenting, the connection string holds case sensitive values (databasename, username, etc.) and in my setup with VMs, the IP of mac needs to be entered in the pg\_hba.conf file.   
  
 I think I’ve moved one step further.
