On a Win32 platform, the Start-Service PostgreSQL is launching the x64 service which does not exist.

zosrothko's Avatar

zosrothko

23 Sep, 2017 07:06 AM

Hi

Below, a snippet of the AppVeyor log from this job: https://ci.appveyor.com/project/zosrothko/poco/build/build%20vs140-...

Starting MySQL 5.7
Starting MongoDB
Starting PostgreSQL 9.4
Start-Service : Cannot find any service with service name 'postgresql-x64-9.4'.
At line:1 char:1
+ Start-Service 'postgresql-x64-9.4' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (postgresql-x64-9.4:String) [Start-Service], ServiceCommandException + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StartServiceCommand

  1. Support Staff 1 Posted by Ilya Finkelshte... on 26 Sep, 2017 03:18 AM

    Ilya Finkelshteyn's Avatar

    We use 64-bit OS regardless of what platform is set to. This setting affects build behavior (32-bit binaries will be built), but OS stays the same.

    Actual problem is that Visual Studio 2017 build worker image does not have PostgreSQL 9.4 installed, as described here. If you need to stay with this PostgreSQL version, but still need to use Visual Studio 2017 build worker image, you have to install this PostgreSQL version on-the-fly, and I see that you already have that code in your YAML.

  2. 2 Posted by zosrothko on 26 Sep, 2017 06:51 AM

    zosrothko's Avatar

    Thanks for the pointer on PostgreSQL version. One will switch to PostgreSQL 9.6

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Oct, 2017 04:20 AM
21 Oct, 2017 07:26 PM
21 Oct, 2017 10:08 AM
21 Oct, 2017 07:59 AM
21 Oct, 2017 01:48 AM