Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDSr8-0008D6-R6 for pgsql-admin@arkaria.postgresql.org; Wed, 12 Feb 2014 05:59:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDSr7-0000rn-Ab for pgsql-admin@arkaria.postgresql.org; Wed, 12 Feb 2014 05:59:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDSr5-0000re-1h for pgsql-admin@postgresql.org; Wed, 12 Feb 2014 05:59:31 +0000 Received: from malena.theo-andreou.org ([37.247.48.150]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDSr2-0005se-7c for pgsql-admin@postgresql.org; Wed, 12 Feb 2014 05:59:30 +0000 Received: from localhost (localhost [127.0.0.1]) by malena.theo-andreou.org (Postfix) with ESMTP id 079F9844F8 for ; Wed, 12 Feb 2014 07:59:26 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=theo-andreou.org; h=content-transfer-encoding:content-type:content-type:subject :subject:to:mime-version:user-agent:from:from:date:date :message-id; s=dkim; t=1392184764; x=1393048764; bh=0TApflLJz7vR JsSYXrvsmfEFCs7UgIhhqAG6VEV42vQ=; b=sgPFsz0X7r7JC495aF3ME/+hg5rV oM/mLYaAvwvzqKRYriiZe3V943QTJqz4kyr/WjeMMW6FdkytdA/qta9tKP+qr+Go MAMjzmLoHPIljL2O2iIKku1+miucq/Eau1OJ5MpbbGSxWapnxAg8X5rEqbrVa036 89kx1B7APEBjBno= X-Virus-Scanned: Debian amavisd-new at malena.theo-andreou.org Received: from malena.theo-andreou.org ([127.0.0.1]) by localhost (malena.theo-andreou.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxdZm3IX1zEE for ; Wed, 12 Feb 2014 07:59:24 +0200 (EET) Received: from [192.168.5.30] (unknown [78.158.142.251]) by malena.theo-andreou.org (Postfix) with ESMTPA id 29E6480620 for ; Wed, 12 Feb 2014 07:59:22 +0200 (EET) Message-ID: <52FB0DBA.2010907@theo-andreou.org> Date: Wed, 12 Feb 2014 07:59:22 +0200 From: Theodotos Andreou User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Error: pid file is invalid, please manually kill the stale server process. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi all, I am using postgres on Ubuntu 12.04 64 bit server. The version is 9.1.10 and I used the stock postgres from Ubuntu repos. I have a weird problem. Sometimes when the machine is restarted, there is no $PGDATA/postmaster.pid file. So when I try to restart postgres (service postgresql restart) I get the following error: Error: pid file is invalid, please manually kill the stale server process. An even scarier side-effect of this is that the data, when this happens, are older than the most recent data in the database. It may be important to know that postgres runs under monit non sysv init or upstart. Also postgres is installed on a customer appliance that may experience frequent reboots and even abrupt poweroffs! Is postgres in general ideal for this situation? Is there an optimal configuration for this scenario? Regards theo -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin