Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    5

    Default postgresql has failed

    Hello,

    I have read many other threads on a similar topic to this but none of them have helped.

    A few days ago I started receiving the following email notification every 10 minutes:
    "postgresql failed @ Wed Oct 13 16:42:56 2004. A restart was attempted automagicly."

    When I try to restart postgresql manually using WHM 9.9.0 I get the following error message:
    "postgresql has failed, please contact the sysadmin (result was "postmaster is not running"). "

    The contents of my /etc/chkserv.d are:
    service[postgresql]=x,x,x,/scripts/restartsrv postgresql,postmaster,pgsql|postgres|root

    I have read somewhere that I might be able to solve the problem by finding the 'postmaster.pid' file somewhere in a postgres data directory and delete it.

    The only problem is that I can't even find where postgress is installed - I've searched all partitions for 'postgresql', 'postgres', and 'pgsql' but all I can find are the docs and install files but not the actual installation.

    Can someone please tell me where I might find the installation of postgress, or tell me another solution to the problem.

    Thank you,
    Jason.

  2. #2
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    What do you want to do? Uninstall it to make the message go away or fix it to make the message go away? Either way, the answer is here on the forums.

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    5

    Default

    Hello Casey,

    Thank you for your reply.

    What I want to do is fix postgresql so that it works properly and makes the message go away.

    I spent several hours searching through the forums here and I have not found the answer - please point me in the right direction if you can.

    Thank you,
    Jason.

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Quote Originally Posted by jason32
    I spent several hours searching through the forums here and I have not found the answer - please point me in the right direction if you can.
    Type this line from your original post into a search and spend a few minutes more :

    postgresql has failed please contact the sysadmin



    You can leave out 'has', 'please' and 'the' if you would like. cPanel search sees those as noise words.

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    5

    Default

    Thank you SarcNBit,

    With your help I did find a new thread that I hadn't previously read, and now I'm starting to suspect that Postgres is not installed.

    For example when I look where I think it should be this is what happens:

    ls -l /var/lib/pgsql
    /var/lib/pgsql: No such file or directory

    In fact I have nothing in /var/lib/ that looks like postgres.

    Can anyone please tell me if this means it's not installed, or let me know a definitive way to find out if it is or not?

    Thank you,
    Jason.

  6. #6
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    /scripts/reinstallpostgres

    expect to loose any db's if you had any to begin with. ... you may have already lost them.. I dont know.

    Sheldon
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  7. #7
    Ben
    Ben is offline
    Member
    Join Date
    Aug 2002
    Posts
    77

    Default

    Or, if you don't want pgsql at all, just uncheck it from the service manager and run

    service chkservd restart

    from the command line.

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    5

    Default

    Thank you for the follow-ups, but I'm still not sure if postgres is actaully installed.

    If it is, I'll fix it. If it isn't then I'll remove it from the service manager.

    Can someone please tell me how to confirm whether or not Postgres is installed?

    Thank you,
    Jason.

  9. #9
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    If there are no folders on your server entitled pgsql then it is not installed.

  10. #10
    Member
    Join Date
    Oct 2004
    Posts
    5

    Default

    Thank you casey,

    I do have some pgsql directories but they are either empty or seem to include only source files - the directories are:

    /usr/lib/pgsql <- one subdir but no files
    /usr/include/pgsql <- seems to include only source files
    /usr/local/cpanel/3rdparty/interchange/foundation/dbconf/pgsql/ <- seems to include only Cpanel config files.

    Does this mean postgres is not installed?

    Thanks in advance,
    Jason.

  11. #11
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Regardless, run the following:
    /scripts/installpostgres

  12. #12
    Member webJ's Avatar
    Join Date
    Apr 2003
    Posts
    25

    Default

    I'm having this same problem, but I have no /scripts/reinstallpostgres. I do have a /scripts/installpostgres but that prouduces errors and does not finish successfully. Should I uninstall postgre then run it? If so how to uninstall?

Similar Threads & Tags
Similar threads

  1. postgresql failed
    By remshad in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-15-2011, 11:00 PM
  2. postgresql failed
    By rederick in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-05-2006, 10:07 PM
  3. postgresql failed
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-06-2005, 09:37 PM
  4. postgresql failed
    By coolbluenet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-23-2004, 02:08 AM
  5. postgresql failed
    By Infopro in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-23-2004, 01:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube