pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16017: Postgres does not respond non-local connections
3+ messages / 3 participants
[nested] [flat]

* BUG #16017: Postgres does not respond non-local connections
@ 2019-09-22 13:54  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Bug reporting form @ 2019-09-22 13:54 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: davidburcaa@gmail.com

The following bug has been logged on the website:

Bug reference:      16017
Logged by:          DBurca
Email address:      davidburcaa@gmail.com
PostgreSQL version: 11.0
Operating system:   Windows OS
Description:        

First thing's first, I actually have 2 versions of Postgres on my computer
(9.4 and 11) because when I check the task manager, postgresql-x64-11 is
stopped and refuses to be started, however, when I run pgAdmin 4, I can
connect to the servers and query stuff into them. I decided to try an
experiment and see if I could connect another device (RaspberryPi running
Raspbian (based on Debian Linux)) to the server on the Windows OS (Note that
I have already looked through the pg_hba.conf.sample and the
postgres.conf.sample (I'm not exactly sure why they're named .sample, Ill
just leave is as-is for now) and changed the settings so that they would
accept non-local connections. But when I try to connect from the RaspberryPi
, it says "psql: could not connect to server: connection timed out". I look
through the log files on the Windows OS device's log files, and as you can
imagine, it sees nothing wrong with this. (Note that both devices are
running on the same wifi connection) I have explored every nook and cranny,
including shutting off my firewall to see if that was the problem, and I
still get no answer. Is there something that I am missing? (More information
can be found at my stack overflow question:
https://stackoverflow.com/questions/58019474/connection-to-external-postgres-database-times-out)
Thanks in advance!



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16017: Postgres does not respond non-local connections
@ 2019-09-22 15:32  Francisco Olarte <folarte@peoplecall.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Francisco Olarte @ 2019-09-22 15:32 UTC (permalink / raw)
  To: PG Bug reporting form <noreply@postgresql.org>; +Cc: pgsql-bugs@lists.postgresql.org; davidburcaa@gmail.com

David:

On Sun, Sep 22, 2019 at 3:55 PM PG Bug reporting form
<noreply@postgresql.org> wrote:
> I have already looked through the pg_hba.conf.sample and the
> postgres.conf.sample (I'm not exactly sure why they're named .sample, Ill
> just leave is as-is for now) and changed the settings so that they would
> accept non-local connections. But when I try to connect from the RaspberryPi

They are named .sample because they are samples of something you could
put on the real files ( without the .sample ). Do you have those
right?


Francisco Olarte.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16017: Postgres does not respond non-local connections
@ 2019-09-22 20:14  Andrew Gierth <andrew@tao11.riddles.org.uk>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Andrew Gierth @ 2019-09-22 20:14 UTC (permalink / raw)
  To: davidburcaa@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org

>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:

 PG> (Note that I have already looked through the pg_hba.conf.sample and
 PG> the postgres.conf.sample (I'm not exactly sure why they're named
 PG> .sample, Ill just leave is as-is for now) and changed the settings
 PG> so that they would accept non-local connections.

The .sample files are badly named. They aren't samples, and you're not
expected to edit them (though you can if you know what you're doing);
what they really are is _templates_, which initdb uses to create the
real postgresql.conf and pg_hba.conf files. Nothing reads them except
initdb.

To actually enable remote connections, you need to edit the
listen_addresses setting in postgresql.conf (not .sample) for the
running server and restart it. Connecting locally and doing
"SHOW config_file;" should tell you where to find it.

-- 
Andrew (irc:RhodiumToad)





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-09-22 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-22 13:54 BUG #16017: Postgres does not respond non-local connections PG Bug reporting form <noreply@postgresql.org>
2019-09-22 15:32 ` Francisco Olarte <folarte@peoplecall.com>
2019-09-22 20:14 ` Andrew Gierth <andrew@tao11.riddles.org.uk>

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