Problems starting database after windows 8 update

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

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.

The service is not in service list anymore :confused:
I will see if i can register the service again … maybe windows has lost its reference :confused:

Will keep you updated…

Regards,
Diego Garcia

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

We use a custom port - 9001

Ok now its working again Diego Garcia

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

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).

Yep … the good news is that now is running fine