Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:55:34+00:00 2026-06-13T12:55:34+00:00

I am attempting to set up a Windows XP Test Agent running Ruby on

  • 0

I am attempting to set up a Windows XP Test Agent running Ruby on Rails against a PostgreSQL Database. I’ve installed PostgreSQL 9.2 for Windows, with default settings. However, when I attempt to start the service from the Service Control Panel, the following error message appears(irrelevantly of which User I attempt to set it to):

   The postgres-9.2 -PostgreSQL Server 9.2 service on Local Computer started and then stopped. Some services 
   stop automatically if they have work to do, for example, the Performance Logs and Alerts service.

If I attempt to launch it from the command line (whether cmd.exe or git bash doesn’t matter with):

   E:\PostgreSQL\9.2\bin\pg_ctl.exe start  -D E:\PostgreSQL\9.2\data

It will claim:

   server starting

However it will fail to start (rake db:migrate will report the server as not running, the postgresql process is missing from Task Manager, the Service is listed as down in the Service List, and

  E:\PostgreSQL\9.2\bin\pg_ctl.exe stop  -D E:\PostgreSQL\9.2\data

Will report

  pg_ctl: PID file "E:/PostgreSQL/9.2/data/postmaster.pid" does not exist Is server running?

While attempting to start it as a server through pg_ctl:

  E:\PostgreSQL\9.2\bin\pg_ctl.exe runservice  -D E:\PostgreSQL\9.2\data

Fails with:

  pg_ctl: could not start service PostgreSQL: error code 1063

EDIT:

the contents of pg_hba:

 # TYPE  DATABASE        USER            ADDRESS                 METHOD
 local   all             all                all                  trust
 # IPv4 local connections:
 host    all             all                all                  trust
 host    all             all             127.0.0.1/32            trust
 # IPv6 local connections:
 #host    all             all             ::1/128                trust
 # Allow replication connections from localhost, by a user with the
 # replication privilege.
 #host    replication     all                all                 trust
 #host    replication     postgres        127.0.0.1/32           trust
 #host    replication     postgres        ::1/128                trust

Checking in pg_log as per comments below:

 2012-10-28 22:47:44 PDT LOG:  local connections are not supported by this build
 2012-10-28 22:47:44 PDT CONTEXT:  line 78 of configuration file "E:/PostgreSQL/9.2/data/pg_hba.conf"
 2012-10-28 22:47:44 PDT FATAL:  could not load pg_hba.conf

Line 78 is

 local   all             all                all                  trust

The same error still occurs when running as a service (whether through pg_ctl runservice or from the services control panel). However pg_ctl start now starts postgres without incident.

I’ll go with “good enough”

PS: The Event Log entries merely say “Timed out waiting for server startup”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:55:35+00:00Added an answer on June 13, 2026 at 12:55 pm

    UPDATE After edits to question:

    Delete the lines from pg_hba.conf that begin with local. They relate to UNIX socket connections, which PostgreSQL does not support. Then, unless something else is also wrong, you should be able to start PostgreSQL. Most likely you copied and pasted a pg_hba.conf from a site that talks about PostgreSQL on Mac OS X or Linux, where local connections are supported.

    If Pg still fails to start after fixing pg_hba.conf, check the logs again and see what else it’s complaining about.

    By the way, in general I don’t recommend trying to run PostgreSQL both as a service and via pg_ctl from the same data directory. You’re likely to land up with file systems permissions problems that are difficult and annoying to resolve, especially on Windows.


    In addition to @mvp’s suggestions, it’s possible that you are trying to start PostgreSQL under a user that is a member of the Administrators group. This is not permitted and will fail. I disagree with that policy, but that’s how it is at the moment.

    By default 9.2 is set up to run under the NetworkService, so that should not be a problem. If you configured it to run under a different user account this could be your problem, and it could be the problem when running it manually too.

    It’s more likely that when starting it manually you just don’t have file system permissions to the data directory.

    BTW, if E:\ is FAT32, there’s your problem. FAT32 is not supported. You must use NTFS.

    Rather than stab in the dark, you should really be looking at the server logs in E:\PostgreSQL\9.2\data\pg_log and the event viewer to see what’s causing it to fail to start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to set up a windows-based FTP server using Apache FTPServer, however I
I am attempting to set up a web service that uses windows authentication and
I'm running Windows 7 64-bit. I'm attempting to host a WCF service which will
I'm attempting to set up a build system named Waf with a test C++
I've installed MySQL as part of XAMPP. While attempting to set up replication ,
I am attempting to connect to SQL Server running on Windows XP system from
I'm attempting to set up basic logging to the windows event log in .net
I am attempting to set up RabbitMQ for a pair of Windows Services I
Attempting to set up an automated texting service for customers, where people can text
I'm attempting to set up Pinned Site features for my project. The trouble is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.