From: Shane Ambler <pgsql@Sheeky.Biz>
To: arpit jain <jain.arpit6@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgresql Service Failed Error
Date: Tue, 06 May 2008 18:38:56 +0930
Message-ID: <48202028.6040003@Sheeky.Biz> (raw)
In-Reply-To: <a729baf0805060026t2231628dhe06b30d884523fe3@mail.gmail.com>
References: <a729baf0805060026t2231628dhe06b30d884523fe3@mail.gmail.com>
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 @ http://Sheeky.Biz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pgsql@Sheeky.Biz, jain.arpit6@gmail.com
Subject: Re: Postgresql Service Failed Error
In-Reply-To: <48202028.6040003@Sheeky.Biz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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