# Problems starting database after windows 8 update

**URL:** https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648
**Category:** Discussion
**Created:** [December 30, 2012, 6:33am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648 "2012-12-30T06:33:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [December 30, 2012, 6:33am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/1 "2012-12-30T06:33:31Z")

</div>

Hi guys I've upgraded my windows 7 to windows 8 and now the postgree sql doesnt starts ...

here is the continua log:

23:00 : Starting

- 23:01 : Creating Application Setup.
- 23:01 : Creating Application instance.
- 23:01 : Starting
- 23:01 : Setting up Loggers
- 23:01 : Migrating Database
- 23:01 : Could not initialise database: Failed to establish a connection to '127.0.0.1'. Check the eventlog for more info.
- 23:01 : Starting Application instance.

I've checked the eventlog and nothing is there ...

Reinstaled the continua keeping the configurations, restarted the computer and tryed to access it again ... same error happens.

Any tips what can I do to not lost my build settings and make it work again ?

Regards

Diego Garcia

---

<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: [December 30, 2012, 10:28am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/2 "2012-12-30T10:28:23Z")

</div>

Does the Postgresql service actually start? I haven’t looked at windows 8 for a while, but I did install continua ci on it a while back and it ran without problems. We’ll test it again when we get back to work on Wed.

---

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [December 30, 2012, 11:45am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/3 "2012-12-30T11:45:48Z")

</div>

The service is not in service list anymore 😕  
 I will see if i can register the service again … maybe windows has lost its reference 😕   
  
 Will keep you updated…   
  
 Regards,   
 Diego Garcia

---

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [December 31, 2012, 1:12am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/4 "2012-12-31T01:12:11Z")

</div>

So I’ve started the postgre database using the command:   
 pg\_ctl -D “C:\ProgramData\Vsoft\ContinuaCI\PostgreSQLDB” start   
  
 Postgre was up and running, so after that I’ve restarted the continua service and same error happens. Double check if any firewall was blocking it, disabled the windows firewall and mcaffe firewall to. Restarted again both services, and same error …   
  
 But now looking at windows event log the error is there:   
 Could not initialise database:   
  
 Npgsql.NpgsqlException:   
 Failed to establish a connection to ‘127.0.0.1’.   
 em Npgsql.NpgsqlClosedState.Open(NpgsqlConnector context)   
 em Npgsql.NpgsqlConnector.Open()   
 em Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection)   
 em Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection)   
 em Npgsql.NpgsqlConnectorPool.RequestPooledConnector(NpgsqlConnection Connection)   
 em Npgsql.NpgsqlConnection.Open()   
 em FluentMigrator.Runner.Processors.Postgres.PostgresProcessor…ctor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, IDbFactory factory)   
 em FluentMigrator.Runner.Processors.Postgres.PostgresProcessorFactory.Create(String connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)   
 em FluentMigrator.Runner.Initialization.TaskExecutor.InitializeProcessor(String assemblyLocation)   
 em FluentMigrator.Runner.Initialization.TaskExecutor.Initialize()   
 em FluentMigrator.Runner.Initialization.TaskExecutor.Execute()   
 em Continua.Migrations.Runner.Execute(String database, String connectionString, String fileName)   
 em Continua.Server.Service.Migrator.Begin()   
 Exiting…   
  
 As I could see the connection is not working …   
  
 I’ve performed an netstat -an and the default postgree port is listening, are you guys using the default one ? or a custom one ?   
  
 Regards,   
 Diego Garcia

---

<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: [December 31, 2012, 1:19am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/5 "2012-12-31T01:19:51Z")

</div>

We use a custom port - 9001

---

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [December 31, 2012, 1:44am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/6 "2012-12-31T01:44:38Z")

</div>

Ok now its working again Diego Garcia

---

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [December 31, 2012, 1:59am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/7 "2012-12-31T01:59:43Z")

</div>

Just for future reference, here is the command to register the service:   
 C:\Program Files\VSoft Technologies\ContinuaCI\Server\PostgreSQL\bin\>pg\_ctl register -N “ContinuaCI PostgreSQL” -U machinename\user -P yourpass -S auto -o “-p 9001” -D “C:\ProgramData\VSoft\ContinuaCI\PostgreSQLDB”   
  
 Regards,   
 Diego Garcia

---

<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: [January 1, 2013, 4:25am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/8 "2013-01-01T04:25:17Z")

</div>

Hmm… strange that the windows 8 upgrade process de-registers the service. I suspect it may mark it as incompatible for whatever reason (who knows with Microsoft these days).

---

<div class="post-metadata">

### Author: ![diegogarcia](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/diegogarcia/32/105_2.png) [@diegogarcia](https://www.finalbuilder.com/forums/u/diegogarcia)
#### Post date: [January 1, 2013, 4:27am UTC](https://www.finalbuilder.com/forums/t/problems-starting-database-after-windows-8-update/5648/9 "2013-01-01T04:27:21Z")

</div>

Yep … the good news is that now is running fine
