pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jason L. Amerson <drjason@alphagenius.org>
Cc: PostgreSQL <pgsql-general@lists.postgresql.org>
Subject: Re: Remote Connection Help
Date: Fri, 22 Nov 2019 06:56:04 -0800
Message-ID: <da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com> (raw)
In-Reply-To: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAQvQm11sXiQYE+SPyhFDycAQAAAAA=@alphagenius.org>
References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org>
	<27323.1574360282@sss.pgh.pa.us>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAm2xSDZXS/SYox13KifmMdAQAAAAA=@alphagenius.org>
	<30565.1574365295@sss.pgh.pa.us>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADOEJI873oKRryLCsjPa3CMAQAAAAA=@alphagenius.org>
	<e3e3f445-b608-00c8-1ee5-8f6caa39b019@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABM2v1p8+7ITIOK7/K4ym/CAQAAAAA=@alphagenius.org>
	<f8e01e08-d2f3-b82a-149b-3e9c4ed9f425@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAQvQm11sXiQYE+SPyhFDycAQAAAAA=@alphagenius.org>

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 <adrian.klaver@aklaver.com>
> Sent: Thursday, November 21, 2019 04:32 PM
> To: Jason L. Amerson <drjason@alphagenius.org>
> Cc: 'Steve Crawford' <scrawford@pinpointresearch.com>; 'PostgreSQL' <pgsql-general@lists.postgresql.org>
> 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





view thread (37+ messages)  latest in thread

Message-ID: <da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com>
Permalink:  ../da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com/
Also on:    postgresql.org/message-id/da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, drjason@alphagenius.org
  Subject: Re: Remote Connection Help
  In-Reply-To: <da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com>
  References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org> <27323.1574360282@sss.pgh.pa.us> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAm2xSDZXS/SYox13KifmMdAQAAAAA=@alphagenius.org> <30565.1574365295@sss.pgh.pa.us> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADOEJI873oKRryLCsjPa3CMAQAAAAA=@alphagenius.org> <e3e3f445-b608-00c8-1ee5-8f6caa39b019@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABM2v1p8+7ITIOK7/K4ym/CAQAAAAA=@alphagenius.org> <f8e01e08-d2f3-b82a-149b-3e9c4ed9f425@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAQvQm11sXiQYE+SPyhFDycAQAAAAA=@alphagenius.org> <da7712de-60d4-a28a-82d1-642841f939fa@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox