pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Postgresql Service Failed Error 2+ messages / 2 participants [nested] [flat]
* Postgresql Service Failed Error @ 2008-05-06 07:26 arpit jain <jain.arpit6@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: arpit jain @ 2008-05-06 07:26 UTC (permalink / raw) To: pgsql-admin 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: /usr/local/postgresql/bin/initdb -D /var/lib/pgsql/data/ The owner of my var/lib/pgsql/data directory is globus and owner of usr/local/postgresql/bin/initdb is root 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] Can anybody help?? Thanks in advance Arpit ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Postgresql Service Failed Error @ 2008-05-06 09:08 Shane Ambler <pgsql@Sheeky.Biz> parent: arpit jain <jain.arpit6@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Shane Ambler @ 2008-05-06 09:08 UTC (permalink / raw) To: arpit jain <jain.arpit6@gmail.com>; +Cc: pgsql-admin 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-05-06 09:08 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2008-05-06 07:26 Postgresql Service Failed Error arpit jain <jain.arpit6@gmail.com> 2008-05-06 09:08 ` Shane Ambler <pgsql@Sheeky.Biz>
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