Cannot start Postgres after moving DB
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    14

    Default Cannot start Postgres after moving DB

    So, I moved my DB following the steps:
    here

    I also assigned permissions as described:
    here

    I am getting the 127.0.0.1 error and cannot get postgres to start. I have tried to fix it as described here. The file included 127.0.0.1 [localhost] as desired. However, there was a # at the beginning of the line. I cannot save changes to this file, even as Admin.

    What am I missing? I have Win7, latest HEM release on Postgres 8.4.

  2. #2
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    This is usually a firewall or windows update issue.

    First try to reboot.

    If no help, try this:

    Start > Programs > PostgreSQL > 8.x > Stop Service

    Start > Programs > PostgreSQL > 8.x > Start Service

    If that doesnt help delete the \postgresql\8.x\data\postmaster.pid file, if you see it. And reboot.


    If that doesn't help you will have to reinstall PostgreSQL completely

    When you reinstall SQL, if it still auto-detects your old folder (and only wants to install to the OLD location) there still are references to the old location in your system registry.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    14

    Default

    Reboot did not work.

    Tried to stop and start from Start/Programs/Postgres menu... both returned an error <2> message.

    I do not have a postmaster.pid file in that directory. There IS a postmaster.opts file.

    I did an uninstall and re-install. Same symptoms (with a duplicate postgres directory). I did a system restore to back-up to pre-installation and reinstalled again. The duplicate postgres directory is gone, but still the same problem not being able to start the service.

  4. #4
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    Is your secondary login running? The secondary logon service is a standard windows service which is available on every windows computer. In the latest versions it is not started automatically. You need to start it via control panel > administrative tools > services. Starting it once should insure it works in the future also.


    Download 8.4.6, 9.0.2 and 8.2 from PostgreSQL: The world's most advanced open source database

    click on Start and go to Programs -> Accessories -> Command Prompt

    * If you are on Vista, rightclick and choose "Run as Administrator".


    A black box should appear. Type 'net user postgres /del' (without the quotes) and press enter.

    The user is now deleted and you can (re)install PostgreSQL.



    Then install 8.4.6 to port 5432, try 9.0.2 to port 5433 and 8.2 to port 5434
    8.2 should ALWAYS work.

    8.4/9.0 not running: add postgres.exe and pg_ctl.exe to the exceptions list of the firewall.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

Similar Threads

  1. Moving DB from Postgres 8.2.3 to...?
    By mrmondo in forum Manager General
    Replies: 1
    Last Post: 10-30-2009, 01:23 AM
  2. Moving database (postgres question)
    By Dzsenaj in forum Manager General
    Replies: 2
    Last Post: 05-20-2009, 01:25 PM
  3. Moving from postgres 8.2 to 8.3
    By Pureman in forum Manager General
    Replies: 6
    Last Post: 04-12-2009, 04:30 PM
  4. Moving Postgres Folder
    By Jagsti in forum Manager General
    Replies: 4
    Last Post: 12-27-2008, 10:46 AM
  5. Moving Postgres database
    By RLOG in forum Manager General
    Replies: 12
    Last Post: 10-13-2008, 01:06 PM

Posting Permissions

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