Fedora Linux Support Community & Resources Center
  #1  
Old 18th April 2011, 03:53 PM
scorpio2002 Offline
Registered User
 
Join Date: Feb 2005
Posts: 212
linuxchrome
Postgres won't start

Hi there,
I installed postgres but I can't start it:


Code:
# service postgresql start
Starting postgresql (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [FAILED]
Now, I checked some logs and there is nothing. The systemctl command just gives me useless info:

Code:
# systemctl --failed
UNIT                      LOAD   ACTIVE SUB    JOB DESCRIPTION
postgresql.service        loaded failed failed     SYSV: PostgreSQL database server.

This looks scary: error messages should be shown clearly, not hidden carefully. Where can I find thee actual error? xD

---------- Post added at 06:53 AM ---------- Previous post was at 05:50 AM ----------

I solved the problem by running:

Code:
initdb -D /var/lib/pgsql/data/
  #2  
Old 19th April 2011, 12:09 AM
AdamW's Avatar
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,761
linuxfirefox
Re: Postgres won't start

systemctl status postgresql.service would give you more details. systemctl --failed is just a summary view of failed services.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #3  
Old 19th April 2011, 01:24 AM
jvillain Offline
Registered User
 
Join Date: Aug 2008
Posts: 226
linuxfirefox
Re: Postgres won't start

You need to initialize the database first. I think the command is initdb. If you don't want to use all the defaults make sure you change them before running initdb. If you do a

rpm -ql postgresql-server

you should see it listed in there some where. I think it is some where down in /var/lib or just /lib.
  #4  
Old 27th April 2011, 03:04 PM
drunkahol Offline
Registered User
 
Join Date: Jun 2004
Location: Norwich
Posts: 638
linuxfirefox
Re: Postgres won't start

Had the same problem - fixed in the same way.

Don't the startup scripts check for initialisation and run if necessary? I thought it used to?

Cheers

Duncan
__________________
Supermicro X5DA8 2x Xeon 2.8GHz 6Gb RAM: Fedora 15
Thinkpad T40p: Fedora 16
HP Pavilion dv9000: Fedora 14
Advent 4211: Fedora 16
 

Tags
postgres, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postgres vvnrichards Using Fedora 1 24th August 2007 06:23 PM
Need Postgres 8.1, not 8.0 km4hr Installation and Live Media 6 9th January 2007 05:37 PM
Postgres 8 radman44 Using Fedora 2 9th June 2005 02:15 PM


Current GMT-time: 22:32 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat