dbTalk Databases Forums  

[ADMIN] server not starting

mailing.database.pgsql-admin mailing.database.pgsql-admin


Discuss [ADMIN] server not starting in the mailing.database.pgsql-admin forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Harper
 
Posts: n/a

Default [ADMIN] server not starting - 08-11-2012 , 09:26 PM






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

Reply With Quote
  #2  
Old   
umerasghar@gmail.com
 
Posts: n/a

Default Re: [ADMIN] server not starting - 08-11-2012 , 10:43 PM






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 (AT) gmail (DOT) com>
Sender: pgsql-admin-owner (AT) postgresql (DOT) orgDate: Sat, 11 Aug 2012 22:26:52
To: <pgsql-admin (AT) postgresql (DOT) 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

Reply With Quote
  #3  
Old   
Matheus de Oliveira
 
Posts: n/a

Default Re: [ADMIN] server not starting - 08-12-2012 , 07:38 AM



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

Reply With Quote
  #4  
Old   
Lou Picciano
 
Posts: n/a

Default Re: [ADMIN] server not starting - 08-12-2012 , 08:40 AM



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 (AT) gmail (DOT) com
To: "Richard Harper" <drrwharper (AT) gmail (DOT) com>, pgsql-admin-owner (AT) postgresql (DOT) org, pgsql-admin (AT) postgresql (DOT) 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 (AT) gmail (DOT) com>
Sender: pgsql-admin-owner (AT) postgresql (DOT) org
Date: Sat, 11 Aug 2012 22:26:52 -0400
To: <pgsql-admin (AT) postgresql (DOT) 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.