Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [SOLVED] PostgreSQL Server isn't starting

  1. #11
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: [SOLVED] PostgreSQL Server isn't starting

    Quote Originally Posted by BrnN8r View Post
    I had the same problem:
    Code:
    root@mycroft:/home/drsmall# /etc/init.d/postgresql-8.2 status
    Use of uninitialized value in getpwuid at /usr/bin/pg_lsclusters line 28.
    Version Cluster   Port Status Owner    Data directory                     Log file
    8.2     main      5432 down   root     /var/lib/postgresql/8.2/main       /var/log/postgresql/postgresql-8.2-main.log
    It's basically saying it can't find the default PGDATA directory /var/lib/postgresql/8.2/main. It may be easier to just create the default PGDATA directory and then initdb /var/lib/postgresql/8.2/main. This would mean you wouldn't have to rewrite the init.d script too.
    Ah well. I'm not that smart. Thanks for sharing that though!
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  2. #12
    Join Date
    Feb 2007
    Beans
    42
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [SOLVED] PostgreSQL Server isn't starting

    Hi

    When i run:

    $ sudo /etc/init.d/postgresql-8.3 start

    I have face with this message:

    * Starting PostgreSQL 8.3 database server Error: /var/lib/postgresql/8.3/main is not accessible or does not exist
    [fail]

    What can i do?

    I also installed postgresql-8.4.0 but in init.d it is 8.3.
    Ubuntu mean Freedom.

  3. #13
    Join Date
    Feb 2007
    Beans
    42
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [SOLVED] PostgreSQL Server isn't starting

    After i replace my init.d/postgresql-8.3 with Dr Small s modified version from first page; i get this message:

    pg_ctl: another server might be running; trying to start server anyway
    pg_ctl: could not start server
    Examine the log output.
    Ubuntu mean Freedom.

  4. #14
    Join Date
    Dec 2007
    Beans
    10

    Re: [SOLVED] PostgreSQL Server isn't starting

    Hi, The problem seems to be a broken dependency issue. I posted a solution to this issue in the following thread:

    http://ubuntuforums.org/showthread.p...=1#post8389411

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •