Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9468FB5DC26 for ; Wed, 3 Aug 2011 22:16:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 63285-06 for ; Thu, 4 Aug 2011 01:16:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [96.126.97.249]) by mail.postgresql.org (Postfix) with ESMTP id 4DF55B5DC08 for ; Wed, 3 Aug 2011 22:16:52 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 5AAF648; Wed, 3 Aug 2011 21:16:51 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kArtULuErJEP; Wed, 3 Aug 2011 21:16:50 -0400 (EDT) Received: from mail.postnewspapers.com.au (office1.postnewspapers.com.au [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 4449447; Wed, 3 Aug 2011 21:16:50 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 4B9C7AE38F; Thu, 4 Aug 2011 09:16:49 +0800 (WST) X-Amavis-Modified: Mail body modified (using disclaimer) - mail.postnewspapers.com.au X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9AraVB8Ox8Di; Thu, 4 Aug 2011 09:16:44 +0800 (WST) Received: from [10.1.1.8] (124-169-181-228.dyn.iinet.net.au [124.169.181.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 025A7AE5A3; Thu, 4 Aug 2011 09:16:43 +0800 (WST) Message-ID: <4E39F2F9.6040300@postnewspapers.com.au> Date: Thu, 04 Aug 2011 09:16:41 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Steve Boyd CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6140: PostgreSQL Server Service Not Starting References: <201108021201.p72C1nDx013168@wwwmaster.postgresql.org> <4E388620.4040503@postnewspapers.com.au> In-Reply-To: <4E388620.4040503@postnewspapers.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.616 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.716 X-Spam-Level: X-Archive-Number: 201108/36 X-Sequence-Number: 30848 On 3/08/2011 7:20 AM, Craig Ringer wrote: > On 2/08/2011 8:01 PM, Steve Boyd wrote: > >> "could not open process token: error code 5" >> >> The service account is in the local administrators group and has full >> control over the data directory. > > AFAIK PostgreSQL service account should *NOT* be part of the local > administrators group. > > That said, the fact that it fails so ungracefully is definitely a bug > that bears investigation. An on-list follow-up: Removing the Pg service account from local admins resolved Steve's problem. Pg should really fail more gracefully and informatively - or not fail to launch at all - in this case. It involves Win32 API programming, though.... -- Craig Ringer POST Newspapers 276 Onslow Rd, Shenton Park Ph: 08 9381 3088 Fax: 08 9388 2258 ABN: 50 008 917 717 http://www.postnewspapers.com.au/