Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvlrN-0000K4-CA for pgsql-general@arkaria.postgresql.org; Sun, 16 Oct 2016 13:52:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bvlrM-00047j-VV for pgsql-general@arkaria.postgresql.org; Sun, 16 Oct 2016 13:52:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bvlp2-0008JE-UQ for pgsql-general@postgresql.org; Sun, 16 Oct 2016 13:49:53 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bvlp0-0000i2-0g for pgsql-general@postgresql.org; Sun, 16 Oct 2016 13:49:52 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3253E2067A; Sun, 16 Oct 2016 09:49:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sun, 16 Oct 2016 09:49:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=xaH6HMLXRmcfITu3BGyaPFQfWN8=; b=iTwhM1 vrkHm+GPB2HL4tS5+owXah82qjYJDQ4jWR4npIzY/WdRtbc79FVkc29D0/uAt9WS I7r6PHdZ3GGOMSFINu15MFnwdk9Ds/Io1Gg7jy/Zmmde5qU+ZhqBfyWvFUv1dBMs SD8VUCIHyA5Bd+5D6ikHDcyL37UL18ORdEsDg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xaH6HMLXRmcfITu 3BGyaPFQfWN8=; b=chNvoviHikCd5QcKQ+XNMhFaZakJeF2XripOuNqMjbhghiU 5nv26RqTQCSOyZBT/2ilHek1pDYn3x5Y2mzgFDVrb/ybp1SDX6PBsxHpYvBub/3C qULts6m27907QFlwdqC5d+PWZRC+sOIYu/q8HjxTGWuF0UQnuA1hCgzcHJAU= X-Sasl-enc: 0CqkTg/RM/BvaZUWT5NJWN5bjQRSWEJEct9HuNZU8pD8 1476625787 Received: from [192.168.1.2] (174-21-191-61.tukw.qwest.net [174.21.191.61]) by mail.messagingengine.com (Postfix) with ESMTPA id 9893CF29D3; Sun, 16 Oct 2016 09:49:47 -0400 (EDT) Subject: Re: could not connect to server To: Antonio Silva References: Cc: pgsql-general@postgresql.org From: Adrian Klaver Message-ID: Date: Sun, 16 Oct 2016 06:49:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 10/15/2016 09:09 PM, Antonio Silva wrote: > Dear Adrian and Tom, thanks for your attention. > > I did an upgrade on Friday. I use to do this every week. > > Log file informed: > > 2016-10-15 06:15:20 BRT [995-1] FATAL: data directory > "/var/lib/postgresql/9.5/main" has group or world access > 2016-10-15 06:15:20 BRT [995-2] DETAIL: Permissions should be u=rwx (0700). > > The problem with permissions was already indicated to .pgpass > > So I did a "sudo chmod 0700 main" at /var/lib/postgresql/9.5/ directory > and I could connect postgres again! > > A cannot understand what happened. How an upgrade changes the > permissions of files an folders? I work with more two desktops with the > same framework (I7, 8 GB, Ubuntu 16.04, PostgreSQL, ...) and it did not > happen. I would look in the the /var/log/apt/history.log.* files that cover Friday and see what upgraded. That may offer a clue. > > Well, but I have my database available now. Thanks. > > Best regards, > > Antônio Olinto > > 2016-10-15 14:28 GMT-03:00 Adrian Klaver >: > > On 10/15/2016 10:11 AM, Antonio Silva wrote: > > Hello > > I'm using postgres 9.5 on Ubuntu 16.04. I have worked with pg in my > notebook for almost a month but today postgres did not connected. I > tryed both PGAdmin and psql. > > > Did you do an apt-get upgrade in the interim? > > > I also tried to login using my own user and postgres but I > received the > messages: > > Server doesn't listen > The server doesn't accept connections: the connection library > reports > could not connect to server: Conexão recusada (connection > refused) Is > the server running on host "127.0.0.1" and accepting TCP/IP > connections > on port 5432? > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general