pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
server not starting
4+ messages / 4 participants
[nested] [flat]

* server not starting
@ 2012-08-12 02:26 Richard Harper <drrwharper@gmail.com>
  2012-08-12 03:43 ` Re: server not starting umerasghar@gmail.com
  0 siblings, 1 reply; 4+ messages in thread

From: Richard Harper @ 2012-08-12 02:26 UTC (permalink / raw)
  To: pgsql-admin

Since I upgraded to 9.1, the server has not been starting.  psql works, and
pg_ctl status indicates that no server is connected.
If I run the command:  sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl
start -D /usr/local/pgsql/data
it says the server is ready to accept connections.
The command sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl status -D
/usr/local/pgsql/data
gives:
pg_ctl: server is running (PID:1751)
/usr/lib/postgresql/9.1/bin/postgres "-D" "/usr/local/pgsql/data"
However, netstat indicates no connection to port 5432, and I still cannot
connect.
I am unable to figure out where the LISTEN_ADDRESSES is assigned, perhaps
that is the problem.  I am obviously new to administration.

Thanks for any help,
Dick

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

* Re: server not starting
  2012-08-12 02:26 server not starting Richard Harper <drrwharper@gmail.com>
@ 2012-08-12 03:43 ` umerasghar@gmail.com
  2012-08-12 12:38   ` Re: server not starting Matheus de Oliveira <matioli.matheus@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: umerasghar@gmail.com @ 2012-08-12 03:43 UTC (permalink / raw)
  To: Richard Harper <drrwharper@gmail.com>; pgsql-admin-owner@postgresql.org; pgsql-admin

Did you allow ip addresses in pg_hba.conf. Perhaps you might need to allow IP's in that file.
Sent from my BlackBerry® Smartphone provided by Ufone

-----Original Message-----
From: Richard Harper <drrwharper@gmail.com>
Sender: pgsql-admin-owner@postgresql.orgDate: Sat, 11 Aug 2012 22:26:52 
To: <pgsql-admin@postgresql.org>
Subject: [ADMIN] server not starting

Since I upgraded to 9.1, the server has not been starting.  psql works, and
pg_ctl status indicates that no server is connected.
If I run the command:  sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl
start -D /usr/local/pgsql/data
it says the server is ready to accept connections.
The command sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl status -D
/usr/local/pgsql/data
gives:
pg_ctl: server is running (PID:1751)
/usr/lib/postgresql/9.1/bin/postgres "-D" "/usr/local/pgsql/data"
However, netstat indicates no connection to port 5432, and I still cannot
connect.
I am unable to figure out where the LISTEN_ADDRESSES is assigned, perhaps
that is the problem.  I am obviously new to administration.

Thanks for any help,
Dick



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

* Re: server not starting
  2012-08-12 02:26 server not starting Richard Harper <drrwharper@gmail.com>
  2012-08-12 03:43 ` Re: server not starting umerasghar@gmail.com
@ 2012-08-12 12:38   ` Matheus de Oliveira <matioli.matheus@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Matheus de Oliveira @ 2012-08-12 12:38 UTC (permalink / raw)
  To: umerasghar@gmail.com; +Cc: pgsql-admin@postgresql.org, pgsql-admin-owner@postgresql.org, Richard Harper <drrwharper@gmail.com>

He also nerds to change the listen_address to * at postgresql.conf.

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

* Re: server not starting
@ 2012-08-12 13:40 Lou Picciano <loupicciano@comcast.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Lou Picciano @ 2012-08-12 13:40 UTC (permalink / raw)
  To: pgsql-admin; pgsql-admin-owner@postgresql.org


Also, in your postgresql.conf file, be sure you have LISTEN_ADDRESSES set to '*' - for testing, at least. 


You sure server is running? What does $ ps -af | grep postgres tell you? 


Do you have any useful output in PG's logs? Even a failed attempt, if it's traversing your network, will usually be logged (again, postgresql.conf must be set to log connections) 


Can you connect using psql from the _same_ machine, using a socket connection? 


Lou Picciano 

----- Forwarded Message -----
From: umerasghar@gmail.com 
To: "Richard Harper" <drrwharper@gmail.com>, pgsql-admin-owner@postgresql.org, pgsql-admin@postgresql.org 
Sent: Saturday, August 11, 2012 11:43:00 PM 
Subject: Re: [ADMIN] server not starting 

Did you allow ip addresses in pg_hba.conf. Perhaps you might need to allow IP's in that file. 
Sent from my BlackBerry® Smartphone provided by Ufone 

From: Richard Harper <drrwharper@gmail.com> 
Sender: pgsql-admin-owner@postgresql.org 
Date: Sat, 11 Aug 2012 22:26:52 -0400 
To: <pgsql-admin@postgresql.org> 
Subject: [ADMIN] server not starting 

Since I upgraded to 9.1, the server has not been starting. psql works, and pg_ctl status indicates that no server is connected. 
If I run the command: sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl start -D /usr/local/pgsql/data 
it says the server is ready to accept connections. 
The command sudo -u postgres /user/lib/postgresql/9.1/bin/pg_ctl status -D /usr/local/pgsql/data 
gives: 


pg_ctl: server is running (PID:1751) 
/usr/lib/postgresql/9.1/bin/postgres "-D" "/usr/local/pgsql/data" 
However, netstat indicates no connection to port 5432, and I still cannot connect. 
I am unable to figure out where the LISTEN_ADDRESSES is assigned, perhaps that is the problem. I am obviously new to administration. 


Thanks for any help, 
Dick

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


end of thread, other threads:[~2012-08-12 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-12 02:26 server not starting Richard Harper <drrwharper@gmail.com>
2012-08-12 03:43 ` umerasghar@gmail.com
2012-08-12 12:38   ` Matheus de Oliveira <matioli.matheus@gmail.com>
2012-08-12 13:40 Re: server not starting Lou Picciano <loupicciano@comcast.net>

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