LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-20-2006, 11:31 AM   #1
HeyAZ
LQ Newbie
 
Registered: Aug 2006
Posts: 29

Rep: Reputation: 15
file not found: pg_database


Installing with yum, Fedora core 5. Get error: "could not open file "global/pg_database": No such file or directory." The file exists however, in /var/lib/pgsql/data/global and contains 3 lines:
“postgres” 10793 1663 499 499
“template” 1 1663 499 499
“template0” 10792 1663 499 499

From the user-comments in manual, chapter 17.1: “If you get an error like psql: FATAL: could not open file "global/pg_database": No such file or directory make sure that in your init.d postgresql file (if you have one) or in the env variables for the shell that runs your server process that PGDATA is set properly. Then try to restart the server. If the server will not restart, check for an already running server process (sudo ps -af | grep postgres). Sometimes they can hang around, secretly, and screw things up.” [http://www.postgresql.org/docs/8.1/i...e-config.html]

Reluctant to start editing the init.d file. If I su to root:

# sudo ps -af | grep postgres
root 348 332 0 09:20 pts/2 00:00:00 grep postgres
Does this mean there is indeed a server process already running? If so, how to get rid of it?

Ideas appreciated, thanks.
 
Old 08-21-2006, 09:29 PM   #2
HeyAZ
LQ Newbie
 
Registered: Aug 2006
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks everybody, fixed: had to completely reinstall fedora core 5, but working now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - file not found Linkiboy Slackware - Installation 1 05-03-2006 07:16 PM
Wine: File not found reh_42 Linux - Software 1 01-30-2006 08:52 AM
file not found by glob? - file exists? rgdatit Linux - Newbie 2 07-29-2005 02:16 AM
qt file not found poboy975 Linux - Software 8 01-06-2005 10:56 AM
snmpd installed, see file, but get error file not found PCHelper Slackware 0 11-06-2003 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration