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 1gQpx8-0006UO-S6 for pgsql-admin@arkaria.postgresql.org; Sun, 25 Nov 2018 08:39:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gQpx7-0003TA-Ho for pgsql-admin@arkaria.postgresql.org; Sun, 25 Nov 2018 08:39:41 +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 1gQpx7-0003T2-8q for pgsql-admin@lists.postgresql.org; Sun, 25 Nov 2018 08:39:41 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gQpx3-0003WM-Vx for pgsql-admin@lists.postgresql.org; Sun, 25 Nov 2018 08:39:40 +0000 Received: from hercules.internal.net (hercules.internal.net [10.9.200.8]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id wAP8dZu8025689 for ; Sun, 25 Nov 2018 10:39:35 +0200 Received: from [10.9.251.9] (dcmchgw.internal.net [10.9.0.1]) by hercules.internal.net (Postfix) with ESMTPS id CD1A61350AB5 for ; Sun, 25 Nov 2018 10:39:33 +0200 (EET) Subject: Re: could not connect to server, in order to operate pgAdmin/PostgreSQL To: pgsql-admin@lists.postgresql.org References: <1882688338.3266.1543087934594@wamui-napoleon.atl.sa.earthlink.net> <9f4234f2-da51-d174-56d3-c4229e8ad342@matrix.gatewaynet.com> From: Achilleas Mantzios Message-ID: <28682ea4-e07a-962e-bf2a-7c78c831a17d@matrix.gatewaynet.com> Date: Sun, 25 Nov 2018 10:39:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <9f4234f2-da51-d174-56d3-c4229e8ad342@matrix.gatewaynet.com> Content-Type: multipart/alternative; boundary="------------965F397521A3BDE4B68AC4A2" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-25.9 required=5.0 tests=ALL_TRUSTED,DYN_HAM_IT, DYN_HAM_IT_PARTNERS,HTML_MESSAGE,TW_PG autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------965F397521A3BDE4B68AC4A2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 25/11/18 10:37 π.μ., Achilleas Mantzios wrote: > > > On 24/11/18 9:32 μ.μ., Anne Marie Harm wrote: >> Oddly enough I did not receive Ricardo Martin Gomez's response >> directly -- just received it with Ron's response. >>> Regarding: >>> >>> > You must be check postgres.conf file in order to see the >>> particular port. >>> > Sometimes postgres is running but in another port 5433, 5434, etc. >> Where do I find that postgres. conf file; where and how do I look? (I >> have tried plenty of searching and trying what's suggested, to no avail.) > > > It depends who > oops I meant how > ps aux | egrep -e 'postgres \-D' > > and look at the dir after -D . Usually postgresql.conf (and > postgresql.auto.conf ) are in there. > > If you are running debian look in /etc/postgresql/ major version>//postgresql.conf > > You could find those out also by : > > postgres@achill-XPS-15-9550:~$ psql > psql (10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)) > Type "help" for help. > > postgres=# show data_directory ; >        data_directory > ----------------------------- >  /var/lib/postgresql/10/main > (1 row) > > postgres=# show config_file ; >                config_file > ----------------------------------------- >  /etc/postgresql/10/main/postgresql.conf > (1 row) > > postgres=# > > >> >> Not sure what to do with this, so I'll keep it in mind for future >> reference: >> >> > By default??? >> >> -----Original Message----- >> From: Ron >> Sent: Nov 24, 2018 1:10 PM >> To: "pgsql-admin@lists.postgresql.org" >> Subject: Re: could not connect to server, in order to operate >> pgAdmin/PostgreSQL >> >> By default??? >> >> On 11/24/2018 06:16 AM, Ricardo Martin Gomez wrote: >>> Hello, >>> You must be check postgres.conf file in order to see the >>> particular port. >>> Sometimes postgres is running but in another port 5433, 5434, etc. >>> >>> >>> Obtener Outlook para Android >>> >>> ------------------------------------------------------------------------ >>> *From:* Ron >>> *Sent:* Saturday, November 24, 2018 3:25:02 AM >>> *To:* pgsql-admin@lists.postgresql.org >>> *Subject:* Re: could not connect to server, in order to operate >>> pgAdmin/PostgreSQL >>> On 11/23/2018 08:31 PM, Anne Marie Harm wrote: >>>> Hello, >>>> >>>> Unfortunately I'm unable to operate pgAdmin/PostgreSQL; first >>>> of all I can only install version 9.5 (tried versions 11, 10, >>>> and 9.6 -- but cannot install). >>> >>> How come.  (Are you running a really old distro version?) >>> >>>> When I launch pgAdmin in order to try to use PostgreSGL 9.5, >>>> here is the full text of the error message I receive (also, >>>> screenshot attached): >>>> >>>> could not connect to server: Connection refused >>>> (0x0000274D/10061) Is the server running on host "localhost" >>>> (::1) and accepting TCP/IP connections on port 5432? could not >>>> connect to server: Connection refused (0x0000274D/10061) Is the >>>> server running on host "localhost" (127.0.0.1) and accepting >>>> TCP/IP connections on port 5432? >>> >>> Well, *is* Postgres running?  You installed Pg but did you start >>> it?  These two commands will tell you: >>> >>> pg_ctl status # when logged in as user postgres >>> sudo netstat -an | grep 5432 >>> >>> -- >>> Angular momentum makes the world go 'round. >> >> -- >> Angular momentum makes the world go 'round. >> >> >> ---------------------------- >> Anne Marie Harm >> (312) 563-9397 >> amharm@earthlink.net >> https://www.linkedin.com/in/annemarieharm/ >> >> >> >> ---------------------------- >> Anne Marie Harm >> (312) 563-9397 >> amharm@earthlink.net >> https://www.linkedin.com/in/annemarieharm/ >> >> >> >> ---------------------------- >> Anne Marie Harm >> (312) 563-9397 >> amharm@earthlink.net >> https://www.linkedin.com/in/annemarieharm/ >> >> --------------965F397521A3BDE4B68AC4A2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit


On 25/11/18 10:37 π.μ., Achilleas Mantzios wrote:


On 24/11/18 9:32 μ.μ., Anne Marie Harm wrote:
Oddly enough I did not receive Ricardo Martin Gomez's response directly -- just received it with Ron's response.
Regarding:

> You must be check postgres.conf file in order to see the particular port.
> Sometimes postgres is running but in another port 5433, 5434, etc.
Where do I find that postgres. conf file; where and how do I look? (I have tried plenty of searching and trying what's suggested, to no avail.)


It depends who


oops I meant how


ps aux | egrep -e 'postgres \-D'

and look at the dir after -D . Usually postgresql.conf (and postgresql.auto.conf ) are in there.

If you are running debian look in /etc/postgresql/<insert your pgsql major version>/<your cluster name>/postgresql.conf

You could find those out also by :

postgres@achill-XPS-15-9550:~$ psql
psql (10.6 (Ubuntu 10.6-0ubuntu0.18.04.1))
Type "help" for help.

postgres=# show data_directory ;
       data_directory       
-----------------------------
 /var/lib/postgresql/10/main
(1 row)

postgres=# show config_file ;
               config_file              
-----------------------------------------
 /etc/postgresql/10/main/postgresql.conf
(1 row)

postgres=#



Not sure what to do with this, so I'll keep it in mind for future reference:

> By default???

-----Original Message-----
From: Ron
Sent: Nov 24, 2018 1:10 PM
To: "pgsql-admin@lists.postgresql.org"
Subject: Re: could not connect to server, in order to operate pgAdmin/PostgreSQL

By default???

On 11/24/2018 06:16 AM, Ricardo Martin Gomez wrote:
Hello,
You must be check postgres.conf file in order to see the particular port.
Sometimes postgres is running but in another port 5433, 5434, etc.



From: Ron <ronljohnsonjr@gmail.com>
Sent: Saturday, November 24, 2018 3:25:02 AM
To: pgsql-admin@lists.postgresql.org
Subject: Re: could not connect to server, in order to operate pgAdmin/PostgreSQL
 
On 11/23/2018 08:31 PM, Anne Marie Harm wrote:
Hello, 

Unfortunately I'm unable to operate pgAdmin/PostgreSQL; first of all I can only install version 9.5 (tried versions 11, 10, and 9.6 -- but cannot install).

How come.  (Are you running a really old distro version?)

When I launch pgAdmin in order to try to use PostgreSGL 9.5, here is the full text of the error message I receive (also, screenshot attached):

could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

Well, is Postgres running?  You installed Pg but did you start it?  These two commands will tell you:

pg_ctl status # when logged in as user postgres
sudo netstat -an | grep 5432

--
Angular momentum makes the world go 'round.

--
Angular momentum makes the world go 'round.

----------------------------
Anne Marie Harm
(312) 563-9397
amharm@earthlink.net
https://www.linkedin.com/in/annemarieharm/



----------------------------
Anne Marie Harm
(312) 563-9397
amharm@earthlink.net
https://www.linkedin.com/in/annemarieharm/



----------------------------
Anne Marie Harm
(312) 563-9397
amharm@earthlink.net
https://www.linkedin.com/in/annemarieharm/


--------------965F397521A3BDE4B68AC4A2--