Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id ED6EEB5DC19 for ; Tue, 2 Aug 2011 20:20:17 -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 30059-10 for ; Tue, 2 Aug 2011 23:20:11 +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 50085B5DC0A for ; Tue, 2 Aug 2011 20:20:11 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 1112F10D; Tue, 2 Aug 2011 19:20:10 -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 RwWU9SFvYNqg; Tue, 2 Aug 2011 19:20:08 -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 6166B47; Tue, 2 Aug 2011 19:20:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 1FD19AE753; Wed, 3 Aug 2011 07:20:07 +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 DE0r8DE3I-A9; Wed, 3 Aug 2011 07:20:02 +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 D85C1AE75C; Wed, 3 Aug 2011 07:20:01 +0800 (WST) Message-ID: <4E388620.4040503@postnewspapers.com.au> Date: Wed, 03 Aug 2011 07:20:00 +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> In-Reply-To: <201108021201.p72C1nDx013168@wwwmaster.postgresql.org> 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.706 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.806 X-Spam-Level: X-Archive-Number: 201108/18 X-Sequence-Number: 30830 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. > Not sure what has changed. I even > re-entered the password to confirm that the "logon as a service right" was > granted. The service account won't have been created as a local admin originally, so something has been changed. > I was going to try to upgrade to 8.3.15 but since pgdumpall won't work if > the service is not running, that's not an option. If you can't get it working normally, one option you have is to copy the datadir to a normal user account (or change its permissions), then run an instance of PostgreSQL against it manually under that user account using pg_ctl - rather than launching it as a service under the service account. That'll at least get you a running instance to dump. Given the state of the system, be sure to delete the postgres service account after uninstalling 8.3 and before updating. -- 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/