Unable to connect remotely

From: Shay Gover <shay(at)kapotamar(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Unable to connect remotely
Date: 2014-10-17 22:12:43
Message-ID: 5441945B.6010000@kapotamar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<html style="direction: ltr;">
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bgcolor="#FFFFFF" text="#000066">
<font face="David CLM">Hello everybody,<br>
<br>
I've just installed PostgreSQL and I'm unable to connect to it
remotely from my main desktop (I'm trying to connect with pgAdmin
3).<br>
<br>
My setup:<br>
Ubuntu Server 14.04 x64 (Azure Cloud)<br>
PostgreSQL v9.3.5-0ubuntu0.14.04.1<br>
contrib package is also installed.<br>
PostgreSQL is started on boot using Upstart. I've modified this
script: <a class="moz-txt-link-freetext" href="https://gist.github.com/haad/6020401">https://gist.github.com/haad/6020401</a> (just version
numbers)<br>
<br>
My Problems:<br>
1) For some reason, when I've installed pg, /var/run/postgresql
was missing. I've manually created this folder and gave my pg user
write permissions. Is that a bug?<br>
2) I've tried to change the log config in
/etc/postgresql/9.3/main/postgresql.conf but it won't work. I
think that pg is ignoring that file. I also have no idea where is
pg log file (I tried /var/log/postgresql - not there). I tried
starting the DB manually with pg_ctl -l but the log does say much:<br>
    LOG:  database system is ready to accept connections<br>
    LOG:  autovacuum launcher started<br>
    LOG:  received SIGHUP, reloading configuration files<br>
    LOG:  received smart shutdown request<br>
    LOG:  autovacuum launcher shutting down<br>
    LOG:  shutting down<br>
    LOG:  database system is shut down<br>
    LOG:  database system was shut down at 2014-10-17 21:22:11 UTC<br>
    LOG:  database system is ready to accept connections<br>
    LOG:  autovacuum launcher started<br>
This log contains a single DB run.<br>
3) I'm unable to connect from my main desktop. Server is listening
according to netstat. There is no firewall on the server and I've
created an Azure endpoint for port 5432. Ideas?<br>
<br>
Can you help me? <br>
<br>
Thanks,<br>
<br>
</font>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
<meta name="generator" content="LibreOffice 4.3.0.4 (Windows)">
<meta name="created" content="00:00:00">
<meta name="changed" content="2014-08-23T05:53:57.511000000">
<style type="text/css">
p { direction: inherit; color: #000066 }
</style>
<p><font face="Liberation Serif, serif"><span lang="en-US"><font
face="Times New Roman"><font style="font-size: 14pt"
size="4">Shay
Gover<br>
IT Consultant<br>
<a href="www.kapot-tamar.com">Kapot Tamar</a>
</font></font></span></font>
</p>
</div>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 3.1 KB

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Raghu Ram 2014-10-18 02:23:54 Re: Unable to connect remotely
Previous Message Payal Singh 2014-10-15 19:57:55 Re: WAL Archive Cleanup on Master/Standby