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

  • SEARCH
  • Home
  • 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 8440253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:14:27+00:00 2026-06-10T08:14:27+00:00

Whenerver I start PostgreSQL using command: $ sudo /etc/init.d/postgresql start Pg doesn’t start up.

  • 0

Whenerver I start PostgreSQL using command:

$ sudo /etc/init.d/postgresql start

Pg doesn’t start up. The error reported is:

 * Starting PostgreSQL 8.4 database server
 * The PostgreSQL server failed to start. Please check the log output:
2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access
2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".

… and when I try to access psql as the postgres user with:

$ sudo su postgres
$ psql

it gives me an error:

 could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  • 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-10T08:14:28+00:00Added an answer on June 10, 2026 at 8:14 am

    I had solved it using ..

    1) Enter the relevant directory (use> locate server.key)

    2) Back up old server.key link.

    3) Copy ssl-cert-snakeoil.key to server.key

    4-5) Change its owner & group to postgres

    6) Ensure the permissions are 700 or 740 (as requested by error message)

    Recipe for my Ubuntu 12.04 & postgresql-8.3:

    sudo cd /var/lib/postgresql/8.3/main/
    sudo mv server.key server.key-0
    sudo cp /etc/ssl/private/ssl-cert-snakeoil.key server.key
    sudo chown postgres server.key
    sudo chgrp postgres server.key
    sudo chmod 740 server.key
    sudo /etc/init.d/postgres-8.3 start
    

    And now its working !
    Thanks for support.

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

Sidebar

Related Questions

Whenever I start a shell in vim using :sh, it doesn't source my ~/.bashrc
Whenever I try installing anything using gem, I get this error - murtaza@murtaza-dev:~$ sudo
On JBoss 5.1.0 I have Datasource (PostgreSQL 8.3.11) configured using *-ds.xml (standard jboss DS).
Whenever i start my tomcat 5, the following error occur, log4j:WARN No appenders could
i am using following webservices for retrieving data from server server side:.net client side:ksoap2
Whenever I start my cpan using perl -MCPAN -eshell I get the following message
I'm using IBM RAD with a WAS 7.0 application server. I'm developing a JSF
I have a rails app and get this warning whenever I start the server
Nine times out of ten, whenever I start either the default rails webrick server,
below error message pop-ups whenever i start any solutions .....of VS2010 what should i

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.