Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Postgresql ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 4960 of 5407
Post > Topic >>

Re: Postgresql Service Failed Error

by pgsql@[EMAIL PROTECTED] (Shane Ambler) May 6, 2008 at 06:38 PM

arpit jain wrote:
> Hii
> 
> 
> I have installed postgresql-8.2.6 in /usr/local/postgresql/ directory.
> I have also created the data dictionary in /var/lib/pgsql/data directory
> using following commands:

What OS?

> /usr/local/postgresql/bin/initdb -D /var/lib/pgsql/data/
> 
> The owner of my var/lib/pgsql/data directory is globus 

Is this the same user that is running the postgresql service?

check /etc/init.d/postgresql to see what username the service is being 
started as (usually postgres or pgsql) This user should be the only one 
that can access the data dir (apart from root)
Bad data dir permissions will prevent postgresql from starting.

> and owner of usr/local/postgresql/bin/initdb is root

That's OK

> I have also edited the following files in
> /var/lib/pgsql/data/postgresql.conf  by adding listen_addresses='*' and
> /var/lib/pgsql/data/pg_hba.conf by adding
> 
> host rftDatabase "globus" "140.221.8.31" 255.255.255.255 md5
> 
> 
> Now when I am trying to run /etc/init.d/postgresql  restart : It gives
me
> following error:
> 
> Stopping postgresql service:                               [FAILED]
> Starting postgresql service:                               [FAILED]
> 

Is postgres already running? are you running the postgresql restart as
root?

In your data dir you should find serverlog that should give more info - 
also try system or console logs


-- 

Shane Ambler
pgSQL (at) Sheeky (dot) Biz

Get Sheeky @[EMAIL PROTECTED]
 http://Sheeky.Biz

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 2 Posts in Topic:
Postgresql Service Failed Error
jain.arpit6@[EMAIL PROTEC  2008-05-06 12:56:11 
Re: Postgresql Service Failed Error
pgsql@[EMAIL PROTECTED]   2008-05-06 18:38:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:25:22 CDT 2008.