Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iYAM9-0008Kx-7v for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2019 14:56:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iYAM7-0007JA-Ot for pgsql-general@arkaria.postgresql.org; Fri, 22 Nov 2019 14:56:19 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iYAM6-0007In-7o for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2019 14:56:19 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iYALx-0007JE-QQ for pgsql-general@lists.postgresql.org; Fri, 22 Nov 2019 14:56:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9892B9FF; Fri, 22 Nov 2019 09:56:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 22 Nov 2019 09:56:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=N CXH3otyrQ6XViUuG31XiXLf1i5f1/7pxDwaiKKMk40=; b=L0o+Bdn7WOBNGFiHX eLL3v8nwLT8dt76iInXvruxcArbTdgV/34GqNFA/CA2f4d+X+JotoLqzYjh4BE/r l4mB901zgchQ2lBA+UZ4603ON9D9dxMduDi1EB26IgM5X0DfVq2taCRNkiN6p50O 0zPw6jM+l6AZH6UZcbOif0EoQiQRXCvLgRWNTfKqPxLhAorqIBLnE2knHKbWfR/m gbVQtKvwdeI1YjxUymb4cv5khV5+hha4TT4yX2K77AgDqe92RhZiq4RUSWmpTtBJ gF4WpA7CsSFiY2xFv/fvjSCkWt/5uQl/Fu1gpeNhAaHeZqqMg0Fjy5To4XBjpfN+ 3jFsA== DKIM-Signature: v=1; a=rsa-sha256; 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-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=NCXH3otyrQ6XViUuG31XiXLf1i5f1/7pxDwaiKKMk 40=; b=DkmFrZVTvdBpB5DN1XuEys7i//xC4KWrDfzzzo7xYB71+YHJqfmFQ+4gb qSXsgJ4KbRh4fzbN/o8TnH4qJp+gnXZT0Xki6H7/pzkG877aNefVmGGVdqYhKxqf 11KJ43KqdqZQN6ksbDI7H8+sYgpxkeigRiMsmj0Rk1uGQHxUsLERz7hgYMLunH9f vDSfl4V26JyIk7voC7sihfCd4XOp4eqPms0gYGJvs9f/0wrJ9W63H91JgmQl9FkP j0q2rPa+gKmAiMqp0ehAbE9F9FPiAImPvTw8FHVLpYsYexY+J+7C275jI968EAiC Druy2Zn6Rw7YrdnhFiZoc+oiKMlnA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudehgedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudeffedrud dukeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.133.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 6EE8F80063; Fri, 22 Nov 2019 09:56:05 -0500 (EST) Subject: Re: Remote Connection Help To: "Jason L. Amerson" Cc: 'PostgreSQL' References: <27323.1574360282@sss.pgh.pa.us> <30565.1574365295@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Fri, 22 Nov 2019 06:56:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/22/19 5:40 AM, Jason L. Amerson wrote: > Adrian, > > I originally did install PostgreSQL 12 from the repository. Then I removed it and decided to do it from source. I do have two postgresql.conf files and two pg_hba.conf files in Well from your previous post "/etc/postgresql/9.4/main." That would indicate there is also a 9.4 package installed or at least its conf files. At the command line do: pg_lsclusters two different locations. I guess I need to know which one to keep. When I enter SHOW config_file;, I get the location /usr/local/pgsql/data/postgresql.conf. There is a pg_hba.conf file in there too. Anyways, the version that I installed from source is version 12. The setting in postgresql.conf is listen_addresses = ‘*’ and the port is 5432. listen_addresses is uncommented but port is commented out. What do you see if in psql you do?: select version(); In your screenshot for pg_settings the value for listen_addresses is 'localhost' and the source is default. That would indicate to me either listen_addresses is not uncommented or the server was not restarted. In any case that would be why you cannot connect remotely. Also the sourcefile is NULL. This is either because the value is not coming from a file or because you where not a superuser when you did the select on pg_settings. Can you run the select as a superuser? > > Jason L. Amerson > > > -----Original Message----- > From: Adrian Klaver > Sent: Thursday, November 21, 2019 04:32 PM > To: Jason L. Amerson > Cc: 'Steve Crawford' ; 'PostgreSQL' > Subject: Re: Remote Connection Help > > On 11/21/19 1:14 PM, Jason L. Amerson wrote: >> 1) I have attached a screenshot of the output of "ps ax | grep post" on the Ubuntu machine. > > What program are you using to SSH into the remote machine? > It should allow you to copy 'n' paste the screen output without resorting to screenshots. Text is a lot handier and easy to read. > >> >> 2) Since I was new to PostgreSQL, I followed a tutorial online. I did install from source which I already knew how to do. I got the source package from PostgreSQL. I basically followed these instructions: > > One of your previous posts showed: > > "/etc/postgresql/9.4/main." > > which would indicate that Postgres was also installed using deb packaging. This is something you probably want to follow up on as different Postgres instances from different sources can be an issue in and of itself. > > In the meantime as to your issue: > > 1) What Postgres version did you install from source? > > 2) In /usr/local/pgsql/data what is the exact setting for listen_addresses and port in postgresql.conf > > >> >> sudo ./configure > > -- Adrian Klaver adrian.klaver@aklaver.com